1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
33
34 /*!
35 * ======== Settings ========
36 * Dsplink ipc Settings.
37 */
38 @Template("./Ipc.xdt")
39
40 metaonly module Ipc inherits ti.sdo.ce.ipc.IIpc {
41
42 /*!
43 * ======== maxTimeout ========
44 * Maximum timeout allowed.
45 *
46 * Users can specify a value here to indicate a 'cap' on the time
47 * which the IPC APIs in this package will wait before timing out.
48 * If the 'maxTimeout' value is encountered in a running system, it
49 * is treated as a system error. Resources will be unlocked (e.g.
50 * MSGQ_pend() will return, releasing any DSP Link resources), and
51 * the thread that exceeded its maxTimeout will spin forever, never
52 * returning. It will need to be deleted by another "monitor process".
53 *
54 * This can be used in a system to detect if a remote processor has
55 * become unresponsive.
56 *
57 * The default is 0xffffffff, which indicates that there is no cap and
58 * the underyling APIs can wait forever if so instructed.
59 */
60 config UInt32 maxTimeout = 0xffffffff;
61
62 /*!
63 * ======== armCommMsgSize ========
64 * Default size for the Arm-DSP communication messages (MSGQ messages).
65 */
66 config UInt32 armCommMsgSize = 4 * 1024;
67
68 /*!
69 * ======== armCommNumMsgs ========
70 * Number of <commMsgSize>-sized messages used for Arm-DSP communication.
71 */
72 config UInt32 armCommNumMsgs = 64;
73
74 /*!
75 * ======== commLocateRetries ========
76 * number of times to retry Comm_locate() -- to find DSP server's MSGQ --
77 * before giving up.
78 */
79 config int commLocateRetries = 20;
80
81 /*!
82 * ======== useLinkArbiter ========
83 * Control flag to indicate if Codec Engine should use the Link Arbiter
84 * Daemon (LAD) to arbitrate DSPLINK APIs that need arbitration. Set to
85 * false means LAD should not be used; set to true means LAD should be
86 * used.
87 *
88 * This feature may not be available on all devices.
89 */
90 config Bool useLinkArbiter = false;
91
92 /*!
93 * ======== usePowerManagement ========
94 * If set to true, will attempt to include power-management code
95 * where applicable. If left undefined, an appropriate default value
96 * will be assigned based on the device type.
97 *
98 * This feature may not be available on all devices.
99 */
100 config bool usePowerManagement;
101
102
103 /*!
104 * ======== debug ========
105 * Enable the debug profile of the dsplink ipc module.
106 */
107 config Bool debug = false;
108 }
109 110 111 112
113