1 /*****************************************************************************
3 (c) Cambridge Silicon Radio Limited 2011
4 All rights reserved and confidential information of CSR
6 Refer to LICENSE.txt included with this source for details
9 *****************************************************************************/
10 #ifndef CSR_WIFI_LIB_H__
11 #define CSR_WIFI_LIB_H__
13 #include "csr_wifi_fsm_event.h"
20 /*----------------------------------------------------------------------------*
24 * Macro to initialise the members of a CsrWifiFsmEvent.
25 *----------------------------------------------------------------------------*/
26 #define CsrWifiFsmEventInit(evt, p_primtype, p_msgtype, p_dst, p_src) \
27 (evt)->primtype = p_primtype; \
28 (evt)->type = p_msgtype; \
29 (evt)->destination = p_dst; \
33 /*----------------------------------------------------------------------------*
37 * Generic message creator.
38 * Allocates and fills in a message with the signature CsrWifiEvent
40 *----------------------------------------------------------------------------*/
41 CsrWifiFsmEvent* CsrWifiEvent_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src);
45 CsrWifiFsmEvent common;
47 } CsrWifiEventCsrUint8;
49 /*----------------------------------------------------------------------------*
50 * CsrWifiEventCsrUint8_struct
53 * Generic message creator.
54 * Allocates and fills in a message with the signature CsrWifiEventCsrUint8
56 *----------------------------------------------------------------------------*/
57 CsrWifiEventCsrUint8* CsrWifiEventCsrUint8_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, u8 value);
61 CsrWifiFsmEvent common;
63 } CsrWifiEventCsrUint16;
65 /*----------------------------------------------------------------------------*
66 * CsrWifiEventCsrUint16_struct
69 * Generic message creator.
70 * Allocates and fills in a message with the signature CsrWifiEventCsrUint16
72 *----------------------------------------------------------------------------*/
73 CsrWifiEventCsrUint16* CsrWifiEventCsrUint16_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, u16 value);
77 CsrWifiFsmEvent common;
79 } CsrWifiEventCsrUint32;
81 /*----------------------------------------------------------------------------*
82 * CsrWifiEventCsrUint32_struct
85 * Generic message creator.
86 * Allocates and fills in a message with the signature CsrWifiEventCsrUint32
88 *----------------------------------------------------------------------------*/
89 CsrWifiEventCsrUint32* CsrWifiEventCsrUint32_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, u32 value);
93 CsrWifiFsmEvent common;
96 } CsrWifiEventCsrUint16CsrUint8;
98 /*----------------------------------------------------------------------------*
99 * CsrWifiEventCsrUint16CsrUint8_struct
102 * Generic message creator.
103 * Allocates and fills in a message with the signature CsrWifiEventCsrUint16CsrUint8
105 *----------------------------------------------------------------------------*/
106 CsrWifiEventCsrUint16CsrUint8* CsrWifiEventCsrUint16CsrUint8_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, u16 value16, u8 value8);
112 #endif /* CSR_WIFI_LIB_H__ */