Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00104 #ifndef ti_ipc_Notify__include
00105 #define ti_ipc_Notify__include
00106
00107 #if defined (__cplusplus)
00108 extern "C" {
00109 #endif
00110
00111
00112
00113
00114
00115
00120 #define Notify_S_BUSY 2
00121
00126 #define Notify_S_ALREADYSETUP 1
00127
00132 #define Notify_S_SUCCESS 0
00133
00138 #define Notify_E_FAIL -1
00139
00144 #define Notify_E_INVALIDARG -2
00145
00150 #define Notify_E_MEMORY -3
00151
00156 #define Notify_E_ALREADYEXISTS -4
00157
00162 #define Notify_E_NOTFOUND -5
00163
00168 #define Notify_E_TIMEOUT -6
00169
00174 #define Notify_E_INVALIDSTATE -7
00175
00180 #define Notify_E_OSFAILURE -8
00181
00186 #define Notify_E_ALREADYSETUP -9
00187
00192 #define Notify_E_RESOURCE -10
00193
00198 #define Notify_E_RESTART -11
00199
00204 #define Notify_E_BUSY -12
00205
00210 #define Notify_E_DRIVERNOTREGISTERED -13
00211
00216 #define Notify_E_EVTNOTREGISTERED -14
00217
00222 #define Notify_E_EVTDISABLED -15
00223
00228 #define Notify_E_NOTINITIALIZED -16
00229
00234 #define Notify_E_EVTRESERVED -17
00235
00236
00237
00238
00239
00240
00245 #define Notify_MAXEVENTS (UInt16)32
00246
00251 #define Notify_MAX_INTLINES 4u
00252
00259 #define Notify_SYSTEMKEY ((UInt16)0xC1D2)
00260
00261
00262
00263
00264
00265
00277 typedef Void (*Notify_FnNotifyCbck)(UInt16 , UInt16, UInt32, UArg, UInt32);
00278
00279
00280
00281
00282
00283
00309 Int Notify_attach(UInt16 remoteProcId, Ptr sharedAddr);
00310
00334 UInt Notify_disable(UInt16 procId, UInt16 lineId);
00335
00359 Void Notify_disableEvent(UInt16 procId, UInt16 lineId, UInt32 eventId);
00360
00379 Void Notify_enableEvent(UInt16 procId, UInt16 lineId, UInt32 eventId);
00380
00407 Bool Notify_eventAvailable(UInt16 procId, UInt16 lineId, UInt32 eventId);
00408
00424 Bool Notify_intLineRegistered(UInt16 procId, UInt16 lineId);
00425
00436 UInt16 Notify_numIntLines(UInt16 procId);
00437
00451 SizeT Notify_sharedMemReq(UInt16 procId, Ptr sharedAddr);
00452
00485 Int Notify_registerEvent(UInt16 procId,
00486 UInt16 lineId,
00487 UInt32 eventId,
00488 Notify_FnNotifyCbck fnNotifyCbck,
00489 UArg cbckArg);
00490
00517 Int Notify_registerEventSingle(UInt16 procId,
00518 UInt16 lineId,
00519 UInt32 eventId,
00520 Notify_FnNotifyCbck fnNotifyCbck,
00521 UArg cbckArg);
00522
00538 Void Notify_restore(UInt16 procId, UInt16 lineId, UInt key);
00539
00586 Int Notify_sendEvent(UInt16 procId,
00587 UInt16 lineId,
00588 UInt32 eventId,
00589 UInt32 payload,
00590 Bool waitClear);
00591
00615 Int Notify_unregisterEvent(UInt16 procId, UInt16 lineId, UInt32 eventId,
00616 Notify_FnNotifyCbck fnNotifyCbck, UArg cbckArg);
00617
00635 Int Notify_unregisterEventSingle(UInt16 procId, UInt16 lineId, UInt32 eventId);
00636
00637 #if defined (__cplusplus)
00638 }
00639 #endif
00640 #endif
00641
00642
00643
00644
00645
00646
00647
00648
00649