Commit | Line | Data |
---|---|---|
635d2b00 GKH |
1 | /***************************************************************************** |
2 | ||
3 | (c) Cambridge Silicon Radio Limited 2011 | |
4 | All rights reserved and confidential information of CSR | |
5 | ||
6 | Refer to LICENSE.txt included with this source for details | |
7 | on the license terms. | |
8 | ||
9 | *****************************************************************************/ | |
10 | ||
11 | #ifndef CSR_WIFI_FSM_EVENT_H | |
12 | #define CSR_WIFI_FSM_EVENT_H | |
13 | ||
635d2b00 GKH |
14 | #include "csr_prim_defs.h" |
15 | #include "csr_sched.h" | |
16 | ||
17 | /** | |
18 | * @brief | |
19 | * FSM event header. | |
20 | * | |
21 | * @par Description | |
22 | * All events MUST have this struct as the FIRST member. | |
23 | * The next member is used internally for linked lists | |
24 | */ | |
25 | typedef struct CsrWifiFsmEvent | |
26 | { | |
27 | CsrPrim type; | |
8c87f69a | 28 | u16 primtype; |
635d2b00 GKH |
29 | CsrSchedQid destination; |
30 | CsrSchedQid source; | |
31 | ||
32 | /* Private pointer to allow an optimal Event list */ | |
33 | /* NOTE: Ignore this pointer. | |
34 | * Do not waste code initializing OR freeing it. | |
35 | * The pointer is used internally in the CsrWifiFsm code | |
36 | * to avoid a second malloc when queuing events. | |
37 | */ | |
38 | struct CsrWifiFsmEvent *next; | |
39 | } CsrWifiFsmEvent; | |
40 | ||
635d2b00 GKH |
41 | #endif /* CSR_WIFI_FSM_EVENT_H */ |
42 |