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
00098 #ifndef ti_ipc_Notify__include
00099 #define ti_ipc_Notify__include
00100
00101 #if defined (__cplusplus)
00102 extern "C" {
00103 #endif
00104
00105
00106
00107
00108
00109
00114 #define Notify_S_BUSY 2
00115
00120 #define Notify_S_ALREADYSETUP 1
00121
00126 #define Notify_S_SUCCESS 0
00127
00132 #define Notify_E_FAIL -1
00133
00138 #define Notify_E_INVALIDARG -2
00139
00144 #define Notify_E_MEMORY -3
00145
00150 #define Notify_E_ALREADYEXISTS -4
00151
00156 #define Notify_E_NOTFOUND -5
00157
00162 #define Notify_E_TIMEOUT -6
00163
00168 #define Notify_E_INVALIDSTATE -7
00169
00174 #define Notify_E_OSFAILURE -8
00175
00180 #define Notify_E_ALREADYSETUP -9
00181
00186 #define Notify_E_RESOURCE -10
00187
00192 #define Notify_E_RESTART -11
00193
00198 #define Notify_E_BUSY -12
00199
00204 #define Notify_E_DRIVERNOTREGISTERED -13
00205
00210 #define Notify_E_EVTNOTREGISTERED -14
00211
00216 #define Notify_E_EVTDISABLED -15
00217
00222 #define Notify_E_NOTINITIALIZED -16
00223
00228 #define Notify_E_EVTRESERVED -17
00229
00230
00231
00232
00233
00234
00239 #define Notify_MAXEVENTS (UInt16)32
00240
00245 #define Notify_MAX_INTLINES 4u
00246
00253 #define Notify_SYSTEMKEY ((UInt16)0xC1D2)
00254
00255
00256
00257
00258
00259
00271 typedef Void (*Notify_FnNotifyCbck)(UInt16 , UInt16, UInt32, UArg, UInt32);
00272
00273
00274
00275
00276
00277
00295 UInt Notify_disable(UInt16 procId, UInt16 lineId);
00296
00317 Void Notify_disableEvent(UInt16 procId, UInt16 lineId, UInt32 eventId);
00318
00333 Void Notify_enableEvent(UInt16 procId, UInt16 lineId, UInt32 eventId);
00334
00361 Bool Notify_eventAvailable(UInt16 procId, UInt16 lineId, UInt32 eventId);
00362
00378 Bool Notify_intLineRegistered(UInt16 procId, UInt16 lineId);
00379
00393 SizeT Notify_sharedMemReq(UInt16 procId, Ptr sharedAddr);
00394
00426 Int Notify_registerEvent(UInt16 procId,
00427 UInt16 lineId,
00428 UInt32 eventId,
00429 Notify_FnNotifyCbck fnNotifyCbck,
00430 UArg cbckArg);
00431
00458 Int Notify_registerEventSingle(UInt16 procId,
00459 UInt16 lineId,
00460 UInt32 eventId,
00461 Notify_FnNotifyCbck fnNotifyCbck,
00462 UArg cbckArg);
00463
00479 Void Notify_restore(UInt16 procId, UInt16 lineId, UInt key);
00480
00515 Int Notify_sendEvent(UInt16 procId,
00516 UInt16 lineId,
00517 UInt32 eventId,
00518 UInt32 payload,
00519 Bool waitClear);
00520
00546 Int Notify_attach(UInt16 remoteProcId, Ptr sharedAddr);
00547
00571 Int Notify_unregisterEvent(UInt16 procId, UInt16 lineId, UInt32 eventId,
00572 Notify_FnNotifyCbck fnNotifyCbck, UArg cbckArg);
00573
00591 Int Notify_unregisterEventSingle(UInt16 procId, UInt16 lineId, UInt32 eventId);
00592
00593 #if defined (__cplusplus)
00594 }
00595 #endif
00596 #endif
00597
00598
00599
00600
00601
00602
00603
00604