1 /* ----------------------------------------------------------------------------- 2 * Copyright (c) 2011 Ozmo Inc 3 * Released under the GNU General Public License Version 2 (GPLv2). 4 * ----------------------------------------------------------------------------- 5 */ 6 #ifndef _OZEVENTDEF_H 7 #define _OZEVENTDEF_H 8 9 #define OZ_EVT_RX_FRAME 0 10 #define OZ_EVT_RX_PROCESS 1 11 #define OZ_EVT_TX_FRAME 2 12 #define OZ_EVT_TX_ISOC 3 13 #define OZ_EVT_URB_SUBMIT 4 14 #define OZ_EVT_URB_DONE 5 15 #define OZ_EVT_URB_CANCEL 6 16 #define OZ_EVT_CTRL_REQ 7 17 #define OZ_EVT_CTRL_CNF 8 18 #define OZ_EVT_CTRL_LOCAL 9 19 #define OZ_EVT_CONNECT_REQ 10 20 #define OZ_EVT_CONNECT_RSP 11 21 #define OZ_EVT_EP_CREDIT 12 22 #define OZ_EVT_EP_BUFFERING 13 23 #define OZ_EVT_TX_ISOC_DONE 14 24 #define OZ_EVT_TX_ISOC_DROP 15 25 #define OZ_EVT_TIMER_CTRL 16 26 #define OZ_EVT_TIMER 17 27 #define OZ_EVT_PD_STATE 18 28 #define OZ_EVT_SERVICE 19 29 #define OZ_EVT_DEBUG 20 30 31 struct oz_event { 32 unsigned long jiffies; 33 unsigned char evt; 34 unsigned char ctx1; 35 unsigned short ctx2; 36 void *ctx3; 37 unsigned ctx4; 38 }; 39 40 #define OZ_EVT_LIST_SZ 64 41 struct oz_evtlist { 42 int count; 43 int missed; 44 struct oz_event evts[OZ_EVT_LIST_SZ]; 45 }; 46 47 #endif /* _OZEVENTDEF_H */ 48