1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276 |
- #ifndef _HTT_ISOC_H_
- #define _HTT_ISOC_H_
- #include <a_types.h> /* A_UINT32, A_UINT8 */
- #include <a_osapi.h> /* A_COMPILE_TIME_ASSERT */
- #ifdef ATHR_WIN_NWF
- #pragma warning( disable:4214 ) //bit field types other than int
- #endif
- #include "htt_common.h"
- typedef enum htt_isoc_t2h_msg_type {
-
-
- HTT_ISOC_T2H_MSG_TYPE_PEER_INFO = 0x1,
-
- HTT_ISOC_T2H_MSG_TYPE_PEER_UNMAP = 0x2,
-
- HTT_ISOC_T2H_MSG_TYPE_RX_ADDBA = 0x3,
-
- HTT_ISOC_T2H_MSG_TYPE_RX_DELBA = 0x4,
-
- HTT_ISOC_T2H_MSG_TYPE_TX_COMPL_IND = 0x5,
-
- HTT_ISOC_T2H_MSG_TYPE_SEC_IND = 0x6,
-
- HTT_ISOC_T2H_MSG_TYPE_PEER_TX_READY = 0x7,
-
- HTT_ISOC_T2H_MSG_TYPE_RX_ERR = 0x8,
-
- HTT_ISOC_T2H_MSG_TYPE_NLO_MATCH = 0x9,
-
- HTT_ISOC_T2H_MSG_TYPE_NLO_SCAN_END = 0xA,
-
- HTT_ISOC_T2H_NUM_MSGS
- } htt_isoc_t2h_msg_type;
- #define HTT_ISOC_T2H_MSG_TYPE_M 0xff
- #define HTT_ISOC_T2H_MSG_TYPE_S 0
- #define HTT_ISOC_T2H_MSG_TYPE_SET(msg_addr, msg_type) \
- (*((A_UINT8 *) msg_addr) = (msg_type))
- #define HTT_ISOC_T2H_MSG_TYPE_GET(msg_addr) \
- (*((A_UINT8 *) msg_addr))
- #ifndef INLINE
- #ifdef QCA_SUPPORT_INTEGRATED_SOC
- #define INLINE inline
- #else
- #define INLINE __inline
- #endif
- #define HTT_ISOC_INLINE_DEF
- #endif /* INLINE */
- static INLINE void
- htt_isoc_t2h_field_set(
- A_UINT32 *msg_addr32,
- unsigned offset32,
- unsigned mask,
- unsigned shift,
- unsigned value)
- {
-
-
- msg_addr32 += offset32;
-
- *msg_addr32 &= ~mask;
-
- *msg_addr32 |= (value << shift);
- }
- #ifdef HTT_ISOC_INLINE_DEF
- #undef HTT_ISOC_INLINE_DEF
- #undef INLINE
- #endif
- #define HTT_ISOC_T2H_FIELD_GET(msg_addr32, offset32, mask, shift) \
- (((*(msg_addr32 + offset32)) & mask) >> shift)
- typedef enum {
-
- HTT_ISOC_T2H_PEER_TYPE_ASSOC = 0x0,
-
- HTT_ISOC_T2H_PEER_TYPE_SELF = 0x1,
-
- HTT_ISOC_T2H_PEER_TYPE_BSSID = 0x2,
-
- HTT_ISOC_T2H_PEER_TYPE_BCAST = 0x3
- } HTT_ISOC_T2H_PEER_TYPE_ENUM;
- enum {
- HTT_ISOC_NON_QOS = 0,
- HTT_ISOC_QOS = 1
- };
- enum {
- HTT_ISOC_RMF_DISABLED = 0,
- HTT_ISOC_RMF_ENABLED = 1
- };
- enum {
- HTT_ISOC_TID_MGMT = 7
- };
- typedef struct htt_isoc_t2h_peer_info_s {
-
- A_UINT32
- msg_type: 8,
- dpu_idx: 8,
- bcast_dpu_idx: 8,
- mgmt_dpu_idx: 8;
-
- A_UINT32
- peer_id: 11,
- dpu_sig: 7,
- bcast_dpu_sig: 7,
- mgmt_dpu_sig: 7;
-
- A_UINT32
- peer_type: 6,
- rmf_enabled: 1,
- reserved0: 1,
- vdev_id: 8,
- mac_addr_l16: 16;
-
- A_UINT32 mac_addr_u32;
- } htt_isoc_t2h_peer_info_t;
- #define HTT_ISOC_T2H_PEER_INFO_DPU_IDX_OFFSET32 0
- #define HTT_ISOC_T2H_PEER_INFO_DPU_IDX_M 0x0000ff00
- #define HTT_ISOC_T2H_PEER_INFO_DPU_IDX_S 8
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_OFFSET32 0
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_M 0x00ff0000
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_S 16
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_OFFSET32 0
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_M 0xff000000
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_S 24
- #define HTT_ISOC_T2H_PEER_INFO_PEER_ID_OFFSET32 1
- #define HTT_ISOC_T2H_PEER_INFO_PEER_ID_M 0x000007ff
- #define HTT_ISOC_T2H_PEER_INFO_PEER_ID_S 0
- #define HTT_ISOC_T2H_PEER_INFO_DPU_SIG_OFFSET32 1
- #define HTT_ISOC_T2H_PEER_INFO_DPU_SIG_M 0x0003f800
- #define HTT_ISOC_T2H_PEER_INFO_DPU_SIG_S 11
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_OFFSET32 1
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_M 0x01fc0000
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_S 18
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_SIG_OFFSET32 1
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_SIG_M 0xfe000000
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_SIG_S 25
- #define HTT_ISOC_T2H_PEER_INFO_PEER_TYPE_OFFSET32 2
- #define HTT_ISOC_T2H_PEER_INFO_PEER_TYPE_M 0x0000003f
- #define HTT_ISOC_T2H_PEER_INFO_PEER_TYPE_S 0
- #define HTT_ISOC_T2H_PEER_INFO_RMF_ENABLED_OFFSET32 2
- #define HTT_ISOC_T2H_PEER_INFO_RMF_ENABLED_M 0x00000040
- #define HTT_ISOC_T2H_PEER_INFO_RMF_ENABLED_S 6
- #define HTT_ISOC_T2H_PEER_INFO_VDEV_ID_OFFSET32 2
- #define HTT_ISOC_T2H_PEER_INFO_VDEV_ID_M 0x0000ff00
- #define HTT_ISOC_T2H_PEER_INFO_VDEV_ID_S 8
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_L16_OFFSET32 2
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_L16_M 0xffff0000
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_L16_S 16
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_U32_OFFSET32 3
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_U32_M 0xffffffff
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_U32_S 0
- #define HTT_ISOC_T2H_PEER_INFO_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_PEER_INFO_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_PEER_INFO_ ## field ## _M, \
- HTT_ISOC_T2H_PEER_INFO_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_PEER_INFO_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_PEER_INFO_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_PEER_INFO_ ## field ## _M, \
- HTT_ISOC_T2H_PEER_INFO_ ## field ## _S)
- #define HTT_ISOC_T2H_PEER_INFO_DPU_IDX_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(DPU_IDX, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_DPU_IDX_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(DPU_IDX, msg_addr)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_M_Size_Check, \
- (HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_M >> HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_S)\
- <= ((A_UINT8)~((A_UINT8)0)));
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(BCAST_DPU_IDX, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_IDX_GET(msg_addr) \
- (A_UINT8)(HTT_ISOC_T2H_PEER_INFO_FIELD_GET(BCAST_DPU_IDX, msg_addr))
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_M_Size_Check,\
- (HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_M >> HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_S) \
- <= ((A_UINT8)~((A_UINT8)0)));
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(MGMT_DPU_IDX, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_IDX_GET(msg_addr) \
- (A_UINT8)(HTT_ISOC_T2H_PEER_INFO_FIELD_GET(MGMT_DPU_IDX, msg_addr))
- #define HTT_ISOC_T2H_PEER_INFO_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_PEER_ID_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(PEER_ID, msg_addr)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_PEER_INFO_DPU_SIG_M_Size_Check,\
- (HTT_ISOC_T2H_PEER_INFO_DPU_SIG_M >> HTT_ISOC_T2H_PEER_INFO_DPU_SIG_S)\
- <= ((A_UINT8)~((A_UINT8)0)));
- #define HTT_ISOC_T2H_PEER_INFO_DPU_SIG_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(DPU_SIG, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_DPU_SIG_GET(msg_addr) \
- (A_UINT8)(HTT_ISOC_T2H_PEER_INFO_FIELD_GET(DPU_SIG, msg_addr))
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_M_Size_Check,\
- (HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_M >> HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_S)\
- <= ((A_UINT8)~((A_UINT8)0)));
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(BCAST_DPU_SIG, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_BCAST_DPU_SIG_GET(msg_addr) \
- (A_UINT8)(HTT_ISOC_T2H_PEER_INFO_FIELD_GET(BCAST_DPU_SIG, msg_addr))
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_SIG_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(MGMT_DPU_SIG, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_MGMT_DPU_SIG_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(MGMT_DPU_SIG, msg_addr)
- #define HTT_ISOC_T2H_PEER_INFO_PEER_TYPE_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(PEER_TYPE, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_PEER_TYPE_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(PEER_TYPE, msg_addr)
- #define HTT_ISOC_T2H_PEER_INFO_QOS_CAPABLE_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(QOS_CAPABLE, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_QOS_CAPABLE_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(QOS_CAPABLE, msg_addr)
- #define HTT_ISOC_T2H_PEER_INFO_RMF_ENABLED_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(RMF_ENABLED, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_RMF_ENABLED_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(RMF_ENABLED, msg_addr)
- #define HTT_ISOC_T2H_PEER_INFO_VDEV_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(VDEV_ID, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_VDEV_ID_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(VDEV_ID, msg_addr)
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_L16_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(MAC_ADDR_L16, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_L16_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(MAC_ADDR_L16, msg_addr)
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_U32_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_SET(MAC_ADDR_U32, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_INFO_MAC_ADDR_U32_GET(msg_addr) \
- HTT_ISOC_T2H_PEER_INFO_FIELD_GET(MAC_ADDR_U32, msg_addr)
- typedef struct htt_isoc_t2h_peer_unmap_s {
-
- A_UINT32
- msg_type: 8,
- peer_id: 11,
- reserved0: 13;
- } htt_isoc_t2h_peer_unmap_t;
- #define HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_OFFSET32 0
- #define HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_M 0x0007ff00
- #define HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_S 8
- #define HTT_ISOC_T2H_PEER_UNMAP_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_PEER_UNMAP_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_PEER_UNMAP_ ## field ## _M, \
- HTT_ISOC_T2H_PEER_UNMAP_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_PEER_UNMAP_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_PEER_UNMAP_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_PEER_UNMAP_ ## field ## _M, \
- HTT_ISOC_T2H_PEER_UNMAP_ ## field ## _S)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_M_Size_Check,\
- (HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_M >> HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_S)\
- < ((A_UINT16)~((A_UINT16)0)));
- #define HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_UNMAP_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_UNMAP_PEER_ID_GET(msg_addr) \
- (A_UINT16)(HTT_ISOC_T2H_PEER_UNMAP_FIELD_GET(PEER_ID, msg_addr))
- enum {
- htt_isoc_addba_success = 0,
-
- htt_isoc_addba_fail = 1,
- };
- typedef struct htt_isoc_t2h_addba_s {
-
- A_UINT32 msg_type: 8,
- win_size: 8,
- tid: 4,
- peer_id: 12;
-
- A_UINT32 start_seq_num: 12,
- status: 1,
- reserved0: 19;
- } htt_isoc_t2h_addba_t;
- #define HTT_ISOC_T2H_ADDBA_WIN_SIZE_OFFSET32 0
- #define HTT_ISOC_T2H_ADDBA_WIN_SIZE_M 0x0000ff00
- #define HTT_ISOC_T2H_ADDBA_WIN_SIZE_S 8
- #define HTT_ISOC_T2H_ADDBA_TID_OFFSET32 0
- #define HTT_ISOC_T2H_ADDBA_TID_M 0x000f0000
- #define HTT_ISOC_T2H_ADDBA_TID_S 16
- #define HTT_ISOC_T2H_ADDBA_PEER_ID_OFFSET32 0
- #define HTT_ISOC_T2H_ADDBA_PEER_ID_M 0xfff00000
- #define HTT_ISOC_T2H_ADDBA_PEER_ID_S 20
- #define HTT_ISOC_T2H_ADDBA_START_SEQ_NUM_OFFSET32 1
- #define HTT_ISOC_T2H_ADDBA_START_SEQ_NUM_M 0x00000fff
- #define HTT_ISOC_T2H_ADDBA_START_SEQ_NUM_S 0
- #define HTT_ISOC_T2H_ADDBA_STATUS_OFFSET32 1
- #define HTT_ISOC_T2H_ADDBA_STATUS_M 0x00001000
- #define HTT_ISOC_T2H_ADDBA_STATUS_S 12
- #define HTT_ISOC_T2H_ADDBA_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_ADDBA_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_ADDBA_ ## field ## _M, \
- HTT_ISOC_T2H_ADDBA_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_ADDBA_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_ADDBA_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_ADDBA_ ## field ## _M, \
- HTT_ISOC_T2H_ADDBA_ ## field ## _S)
- #define HTT_ISOC_T2H_ADDBA_WIN_SIZE_SET(msg_addr, value) \
- HTT_ISOC_T2H_ADDBA_FIELD_SET(WIN_SIZE, msg_addr, value)
- #define HTT_ISOC_T2H_ADDBA_WIN_SIZE_GET(msg_addr) \
- HTT_ISOC_T2H_ADDBA_FIELD_GET(WIN_SIZE, msg_addr)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_ADDBA_TID_M_Size_Check,\
- (HTT_ISOC_T2H_ADDBA_TID_M >> HTT_ISOC_T2H_ADDBA_TID_S) \
- < ((A_UINT8)~((A_UINT8)0)));
- #define HTT_ISOC_T2H_ADDBA_TID_SET(msg_addr, value) \
- HTT_ISOC_T2H_ADDBA_FIELD_SET(TID, msg_addr, value)
- #define HTT_ISOC_T2H_ADDBA_TID_GET(msg_addr) \
- (A_UINT8)(HTT_ISOC_T2H_ADDBA_FIELD_GET(TID, msg_addr))
- #define HTT_ISOC_T2H_ADDBA_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_ADDBA_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_ADDBA_PEER_ID_GET(msg_addr) \
- HTT_ISOC_T2H_ADDBA_FIELD_GET(PEER_ID, msg_addr)
- #define HTT_ISOC_T2H_ADDBA_START_SEQ_NUM_SET(msg_addr, value) \
- HTT_ISOC_T2H_ADDBA_FIELD_SET(START_SEQ_NUM, msg_addr, value)
- #define HTT_ISOC_T2H_ADDBA_START_SEQ_NUM_GET(msg_addr) \
- HTT_ISOC_T2H_ADDBA_FIELD_GET(START_SEQ_NUM, msg_addr)
- #define HTT_ISOC_T2H_ADDBA_STATUS_SET(msg_addr, value) \
- HTT_ISOC_T2H_ADDBA_FIELD_SET(STATUS, msg_addr, value)
- #define HTT_ISOC_T2H_ADDBA_STATUS_GET(msg_addr) \
- HTT_ISOC_T2H_ADDBA_FIELD_GET(STATUS, msg_addr)
- typedef struct htt_isoc_t2h_delba_s {
-
- A_UINT32
- msg_type: 8,
- status: 1,
- reserved0: 7,
- tid: 4,
- peer_id: 12;
- } htt_isoc_t2h_delba_t;
- #define HTT_ISOC_T2H_DELBA_TID_OFFSET32 0
- #define HTT_ISOC_T2H_DELBA_TID_M 0x000f0000
- #define HTT_ISOC_T2H_DELBA_TID_S 16
- #define HTT_ISOC_T2H_DELBA_PEER_ID_OFFSET32 0
- #define HTT_ISOC_T2H_DELBA_PEER_ID_M 0xfff00000
- #define HTT_ISOC_T2H_DELBA_PEER_ID_S 20
- #define HTT_ISOC_T2H_DELBA_STATUS_OFFSET32 0
- #define HTT_ISOC_T2H_DELBA_STATUS_M 0x00000100
- #define HTT_ISOC_T2H_DELBA_STATUS_S 8
- #define HTT_ISOC_T2H_DELBA_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_DELBA_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_DELBA_ ## field ## _M, \
- HTT_ISOC_T2H_DELBA_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_DELBA_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_DELBA_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_DELBA_ ## field ## _M, \
- HTT_ISOC_T2H_DELBA_ ## field ## _S)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_DELBA_TID_M_Size_Check,\
- (HTT_ISOC_T2H_DELBA_TID_M >> HTT_ISOC_T2H_DELBA_TID_S) \
- < ((A_UINT8)~((A_UINT8)0)));
- #define HTT_ISOC_T2H_DELBA_TID_SET(msg_addr, value) \
- HTT_ISOC_T2H_DELBA_FIELD_SET(TID, msg_addr, value)
- #define HTT_ISOC_T2H_DELBA_TID_GET(msg_addr) \
- (A_UINT8)HTT_ISOC_T2H_DELBA_FIELD_GET(TID, msg_addr)
- #define HTT_ISOC_T2H_DELBA_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_DELBA_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_DELBA_PEER_ID_GET(msg_addr) \
- HTT_ISOC_T2H_DELBA_FIELD_GET(PEER_ID, msg_addr)
- #define HTT_ISOC_T2H_DELBA_STATUS_SET(msg_addr, value) \
- HTT_ISOC_T2H_DELBA_FIELD_SET(STATUS, msg_addr, value)
- #define HTT_ISOC_T2H_DELBA_STATUS_GET(msg_addr) \
- HTT_ISOC_T2H_DELBA_FIELD_GET(STATUS, msg_addr)
- typedef struct htt_isoc_t2h_sec_ind_s {
-
- A_UINT32
- msg_type: 8,
- peer_id: 8,
- sec_type: 8,
- is_unicast: 8;
-
- A_UINT32 mic_key1;
-
- A_UINT32 mic_key2;
-
- A_UINT32 status;
- } htt_isoc_t2h_sec_ind_t;
- #define HTT_ISOC_T2H_SEC_IND_PEER_ID_OFFSET32 0
- #define HTT_ISOC_T2H_SEC_IND_PEER_ID_M 0x0000ff00
- #define HTT_ISOC_T2H_SEC_IND_PEER_ID_S 8
- #define HTT_ISOC_T2H_SEC_IND_SEC_TYPE_OFFSET32 0
- #define HTT_ISOC_T2H_SEC_IND_SEC_TYPE_M 0x00ff0000
- #define HTT_ISOC_T2H_SEC_IND_SEC_TYPE_S 16
- #define HTT_ISOC_T2H_SEC_IND_IS_UNICAST_OFFSET32 0
- #define HTT_ISOC_T2H_SEC_IND_IS_UNICAST_M 0xff000000
- #define HTT_ISOC_T2H_SEC_IND_IS_UNICAST_S 24
- #define HTT_ISOC_T2H_SEC_IND_MIC1_OFFSET32 1
- #define HTT_ISOC_T2H_SEC_IND_MIC1_M 0xffffffff
- #define HTT_ISOC_T2H_SEC_IND_MIC1_S 0
- #define HTT_ISOC_T2H_SEC_IND_MIC2_OFFSET32 2
- #define HTT_ISOC_T2H_SEC_IND_MIC2_M 0xffffffff
- #define HTT_ISOC_T2H_SEC_IND_MIC2_S 0
- #define HTT_ISOC_T2H_SEC_IND_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_SEC_IND_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_SEC_IND_ ## field ## _M, \
- HTT_ISOC_T2H_SEC_IND_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_SEC_IND_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_SEC_IND_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_SEC_IND_ ## field ## _M, \
- HTT_ISOC_T2H_SEC_IND_ ## field ## _S)
- #define HTT_ISOC_T2H_SEC_IND_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_SEC_IND_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_SEC_IND_PEER_ID_GET(msg_addr) \
- HTT_ISOC_T2H_SEC_IND_FIELD_GET(PEER_ID, msg_addr)
- #define HTT_ISOC_T2H_SEC_IND_SEC_TYPE_SET(msg_addr, value) \
- HTT_ISOC_T2H_SEC_IND_FIELD_SET(SEC_TYPE, msg_addr, value)
- #define HTT_ISOC_T2H_SEC_IND_SEC_TYPE_GET(msg_addr) \
- HTT_ISOC_T2H_SEC_IND_FIELD_GET(SEC_TYPE, msg_addr)
- #define HTT_ISOC_T2H_SEC_IND_IS_UNICAST_SET(msg_addr, value) \
- HTT_ISOC_T2H_SEC_IND_FIELD_SET(IS_UNICAST, msg_addr, value)
- #define HTT_ISOC_T2H_SEC_IND_IS_UNICAST_GET(msg_addr) \
- HTT_ISOC_T2H_SEC_IND_FIELD_GET(IS_UNICAST, msg_addr)
- #define HTT_ISOC_T2H_SEC_IND_MIC1_SET(msg_addr, value) \
- HTT_ISOC_T2H_SEC_IND_FIELD_SET(MIC1, msg_addr, value)
- #define HTT_ISOC_T2H_SEC_IND_MIC1_GET(msg_addr) \
- HTT_ISOC_T2H_SEC_IND_FIELD_GET(MIC1, msg_addr)
- #define HTT_ISOC_T2H_SEC_IND_MIC2_SET(msg_addr, value) \
- HTT_ISOC_T2H_SEC_IND_FIELD_SET(MIC2, msg_addr, value)
- #define HTT_ISOC_T2H_SEC_IND_MIC2_GET(msg_addr) \
- HTT_ISOC_T2H_SEC_IND_FIELD_GET(MIC2, msg_addr)
- typedef struct htt_isoc_t2h_peer_tx_ready_s {
-
- A_UINT32
- msg_type: 8,
- peer_id: 11,
- reserved0: 13;
- } htt_isoc_t2h_peer_tx_ready_t;
- #define HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_OFFSET32 0
- #define HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_M 0x0007ff00
- #define HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_S 8
- #define HTT_ISOC_T2H_PEER_TX_READY_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_PEER_TX_READY_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_PEER_TX_READY_ ## field ## _M, \
- HTT_ISOC_T2H_PEER_TX_READY_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_PEER_TX_READY_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_PEER_TX_READY_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_PEER_TX_READY_ ## field ## _M, \
- HTT_ISOC_T2H_PEER_TX_READY_ ## field ## _S)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_M_Size_Check, (HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_M >> HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_S) < ((A_UINT16)~((A_UINT16)0)));
- #define HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_PEER_TX_READY_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_PEER_TX_READY_PEER_ID_GET(msg_addr) \
- ((A_UINT16)(HTT_ISOC_T2H_PEER_TX_READY_FIELD_GET(PEER_ID, msg_addr)))
- typedef struct htt_isoc_t2h_rx_err_s {
-
- A_UINT32
- msg_type: 8,
- rx_err_type: 8,
- peer_id: 16;
-
- A_UINT32
- ext_tid: 5,
- reserved1: 1,
- mcast: 1,
- l2_hdr_is_80211: 1,
- l2_hdr_bytes: 8,
- sec_hdr_bytes: 8,
- rx_err_cnt: 8;
-
-
- } htt_isoc_t2h_rx_err_t;
- #define HTT_ISOC_T2H_RX_ERR_BASE_BYTES 20
- #define HTT_ISOC_T2H_RX_ERR_TYPE_OFFSET32 0
- #define HTT_ISOC_T2H_RX_ERR_TYPE_M 0x0000ff00
- #define HTT_ISOC_T2H_RX_ERR_TYPE_S 8
- #define HTT_ISOC_T2H_RX_ERR_PEER_ID_OFFSET32 0
- #define HTT_ISOC_T2H_RX_ERR_PEER_ID_M 0xffff0000
- #define HTT_ISOC_T2H_RX_ERR_PEER_ID_S 16
- #define HTT_ISOC_T2H_RX_ERR_EXT_TID_OFFSET32 1
- #define HTT_ISOC_T2H_RX_ERR_EXT_TID_M 0x0000001f
- #define HTT_ISOC_T2H_RX_ERR_EXT_TID_S 0
- #define HTT_ISOC_T2H_RX_ERR_MCAST_OFFSET32 1
- #define HTT_ISOC_T2H_RX_ERR_MCAST_M 0x00000040
- #define HTT_ISOC_T2H_RX_ERR_MCAST_S 6
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_IS_80211_OFFSET32 1
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_IS_80211_M 0x00000080
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_IS_80211_S 7
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_BYTES_OFFSET32 1
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_BYTES_M 0x0000ff00
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_BYTES_S 8
- #define HTT_ISOC_T2H_RX_ERR_SEC_HDR_BYTES_OFFSET32 1
- #define HTT_ISOC_T2H_RX_ERR_SEC_HDR_BYTES_M 0x00ff0000
- #define HTT_ISOC_T2H_RX_ERR_SEC_HDR_BYTES_S 16
- #define HTT_ISOC_T2H_RX_ERR_CNT_OFFSET32 1
- #define HTT_ISOC_T2H_RX_ERR_CNT_M 0xff000000
- #define HTT_ISOC_T2H_RX_ERR_CNT_S 24
- #define HTT_ISOC_T2H_RX_ERR_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_RX_ERR_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_RX_ERR_ ## field ## _M, \
- HTT_ISOC_T2H_RX_ERR_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_RX_ERR_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_RX_ERR_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_RX_ERR_ ## field ## _M, \
- HTT_ISOC_T2H_RX_ERR_ ## field ## _S)
- #define HTT_ISOC_T2H_RX_ERR_TYPE_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(TYPE, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_TYPE_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(TYPE, msg_addr)
- A_COMPILE_TIME_ASSERT(HTT_ISOC_T2H_RX_ERR_PEER_ID_M_Size_Check, (HTT_ISOC_T2H_RX_ERR_PEER_ID_M >> HTT_ISOC_T2H_RX_ERR_PEER_ID_S) <= ((A_UINT16)~((A_UINT16)0)));
- #define HTT_ISOC_T2H_RX_ERR_PEER_ID_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(PEER_ID, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_PEER_ID_GET(msg_addr) \
- ((A_UINT16)HTT_ISOC_T2H_RX_ERR_FIELD_GET(PEER_ID, msg_addr))
- #define HTT_ISOC_T2H_RX_ERR_EXT_TID_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(EXT_TID, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_EXT_TID_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(EXT_TID, msg_addr)
- #define HTT_ISOC_T2H_RX_ERR_MCAST_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(MCAST, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_MCAST_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(MCAST, msg_addr)
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_IS_80211_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(L2_HDR_IS_80211, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_IS_80211_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(L2_HDR_IS_80211, msg_addr)
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_BYTES_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(L2_HDR_BYTES, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_L2_HDR_BYTES_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(L2_HDR_BYTES, msg_addr)
- #define HTT_ISOC_T2H_RX_ERR_SEC_HDR_BYTES_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(SEC_HDR_BYTES, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_SEC_HDR_BYTES_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(SEC_HDR_BYTES, msg_addr)
- #define HTT_ISOC_T2H_RX_ERR_CNT_SET(msg_addr, value) \
- HTT_ISOC_T2H_RX_ERR_FIELD_SET(CNT, msg_addr, value)
- #define HTT_ISOC_T2H_RX_ERR_CNT_GET(msg_addr) \
- HTT_ISOC_T2H_RX_ERR_FIELD_GET(CNT, msg_addr)
- typedef struct htt_isoc_t2h_tx_compl_s {
-
- A_UINT32
- msg_type: 8,
- status: 11,
- reserved0: 13;
- } htt_isoc_t2h_tx_compl_t;
- #define HTT_ISOC_T2H_TX_COMPL_IND_STATUS_OFFSET32 0
- #define HTT_ISOC_T2H_TX_COMPL_IND_STATUS_M 0x0007ff00
- #define HTT_ISOC_T2H_TX_COMPL_IND_STATUS_S 8
- #define HTT_ISOC_T2H_TX_COMPL_IND_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_TX_COMPL_IND_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_TX_COMPL_IND_ ## field ## _M, \
- HTT_ISOC_T2H_TX_COMPL_IND_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_TX_COMPL_IND_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_TX_COMPL_IND_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_TX_COMPL_IND_ ## field ## _M, \
- HTT_ISOC_T2H_TX_COMPL_IND_ ## field ## _S)
- #define HTT_ISOC_T2H_TX_COMPL_IND_STATUS_SET(msg_addr, value) \
- HTT_ISOC_T2H_TX_COMPL_IND_FIELD_SET(STATUS, msg_addr, value)
- #define HTT_ISOC_T2H_TX_COMPL_IND_STATUS_GET(msg_addr) \
- HTT_ISOC_T2H_TX_COMPL_IND_FIELD_GET(STATUS, msg_addr)
- #define HTT_TX_COMPL_IND_STAT_OK 0
- #define HTT_TX_COMPL_IND_STAT_DISCARD 1
- #define HTT_TX_COMPL_IND_STAT_NO_ACK 2
- #define HTT_TX_COMPL_IND_STAT_POSTPONE 3
- typedef struct htt_isoc_t2h_nlo_ind_s {
-
- A_UINT32
- msg_type: 8,
- vdev_id: 8,
- reserved0: 16;
- } htt_isoc_t2h_nlo_ind_t;
- #define HTT_ISOC_T2H_NLO_IND_VDEVID_OFFSET32 0
- #define HTT_ISOC_T2H_NLO_IND_VDEVID_M 0x0000ff00
- #define HTT_ISOC_T2H_NLO_IND_VDEVID_S 8
- #define HTT_ISOC_T2H_NLO_IND_FIELD_SET(field, msg_addr, value) \
- htt_isoc_t2h_field_set( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_NLO_IND_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_NLO_IND_ ## field ## _M, \
- HTT_ISOC_T2H_NLO_IND_ ## field ## _S, \
- value)
- #define HTT_ISOC_T2H_NLO_IND_FIELD_GET(field, msg_addr) \
- HTT_ISOC_T2H_FIELD_GET( \
- ((A_UINT32 *) msg_addr), \
- HTT_ISOC_T2H_NLO_IND_ ## field ## _OFFSET32, \
- HTT_ISOC_T2H_NLO_IND_ ## field ## _M, \
- HTT_ISOC_T2H_NLO_IND_ ## field ## _S)
- #define HTT_ISOC_T2H_NLO_IND_VDEVID_SET(msg_addr, value) \
- HTT_ISOC_T2H_NLO_IND_FIELD_SET(VDEVID, msg_addr, value)
- #define HTT_ISOC_T2H_NLO_IND_VDEVID_GET(msg_addr) \
- HTT_ISOC_T2H_NLO_IND_FIELD_GET(VDEVID, msg_addr)
- #endif /* _HTT_ISOC_H_ */
|