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