123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- #ifndef _HTT_COMMON_H_
- #define _HTT_COMMON_H_
- #include <htt_deps.h> /* A_UINT32 */
- enum htt_sec_type {
- htt_sec_type_none,
- htt_sec_type_wep128,
- htt_sec_type_wep104,
- htt_sec_type_wep40,
- htt_sec_type_tkip,
- htt_sec_type_tkip_nomic,
- htt_sec_type_aes_ccmp,
- htt_sec_type_wapi,
- htt_sec_type_aes_ccmp_256,
- htt_sec_type_aes_gcmp,
- htt_sec_type_aes_gcmp_256,
-
- htt_num_sec_types
- };
- enum htt_rx_ind_mpdu_status {
- HTT_RX_IND_MPDU_STATUS_UNKNOWN = 0x0,
- HTT_RX_IND_MPDU_STATUS_OK,
- HTT_RX_IND_MPDU_STATUS_ERR_FCS,
- HTT_RX_IND_MPDU_STATUS_ERR_DUP,
- HTT_RX_IND_MPDU_STATUS_ERR_REPLAY,
- HTT_RX_IND_MPDU_STATUS_ERR_INV_PEER,
- HTT_RX_IND_MPDU_STATUS_UNAUTH_PEER,
- HTT_RX_IND_MPDU_STATUS_OUT_OF_SYNC,
- HTT_RX_IND_MPDU_STATUS_MGMT_CTRL,
- HTT_RX_IND_MPDU_STATUS_TKIP_MIC_ERR,
- HTT_RX_IND_MPDU_STATUS_DECRYPT_ERR,
- HTT_RX_IND_MPDU_STATUS_MPDU_LENGTH_ERR,
- HTT_RX_IND_MPDU_STATUS_ENCRYPT_REQUIRED_ERR,
- HTT_RX_IND_MPDU_STATUS_PRIVACY_ERR,
-
- HTT_RX_IND_MPDU_STATUS_ERR_MISC = 0xFF
- };
- #define HTT_INVALID_PEER 0xffff
- #define HTT_INVALID_VDEV 0xff
- #define HTT_NON_QOS_TID 16
- #define HTT_INVALID_TID 31
- #define HTT_TX_EXT_TID_DEFAULT 0
- #define HTT_TX_EXT_TID_NON_QOS_MCAST_BCAST HTT_NON_QOS_TID
- #define HTT_TX_EXT_TID_MGMT 17
- #define HTT_TX_EXT_TID_INVALID HTT_INVALID_TID
- #define HTT_TX_EXT_TID_NONPAUSE 19
- #define HTT_TX_L3_CKSUM_OFFLOAD 1
- #define HTT_TX_L4_CKSUM_OFFLOAD 2
- enum htt_pkt_type {
- htt_pkt_type_raw = 0,
- htt_pkt_type_native_wifi = 1,
- htt_pkt_type_ethernet = 2,
- htt_pkt_type_mgmt = 3,
- htt_pkt_type_eth2 = 4,
-
- htt_pkt_num_types
- };
- #define HTT_TX_HOST_MSDU_ID_SPACE_BEGIN 0
- #define HTT_TX_IPA_MSDU_ID_SPACE_BEGIN 3000
- #define TGT_RX2TX_MSDU_ID_SPACE_BEGIN 6000
- #define HTT_TX_IPA_NEW_MSDU_ID_SPACE_BEGIN 8192
- #define TGT_RX2TX_NEW_MSDU_ID_SPACE_BEGIN 12288
- enum HTT_AC_WMM {
-
- HTT_AC_WMM_BE = 0x0,
- HTT_AC_WMM_BK = 0x1,
- HTT_AC_WMM_VI = 0x2,
- HTT_AC_WMM_VO = 0x3,
- HTT_NUM_AC_WMM = 0x4,
-
- HTT_AC_EXT_NON_QOS = 0x4,
- HTT_AC_EXT_UCAST_MGMT = 0x5,
- HTT_AC_EXT_MCAST_DATA = 0x6,
- HTT_AC_EXT_MCAST_MGMT = 0x7,
- };
- enum HTT_AC_WMM_MASK {
-
- HTT_AC_WMM_BE_MASK = (1 << HTT_AC_WMM_BE),
- HTT_AC_WMM_BK_MASK = (1 << HTT_AC_WMM_BK),
- HTT_AC_WMM_VI_MASK = (1 << HTT_AC_WMM_VI),
- HTT_AC_WMM_VO_MASK = (1 << HTT_AC_WMM_VO),
-
- HTT_AC_EXT_NON_QOS_MASK = (1 << HTT_AC_EXT_NON_QOS),
- HTT_AC_EXT_UCAST_MGMT_MASK = (1 << HTT_AC_EXT_UCAST_MGMT),
- HTT_AC_EXT_MCAST_DATA_MASK = (1 << HTT_AC_EXT_MCAST_DATA),
- HTT_AC_EXT_MCAST_MGMT_MASK = (1 << HTT_AC_EXT_MCAST_MGMT),
- };
- #define HTT_AC_MASK_WMM \
- (HTT_AC_WMM_BE_MASK | HTT_AC_WMM_BK_MASK | \
- HTT_AC_WMM_VI_MASK | HTT_AC_WMM_VO_MASK)
- #define HTT_AC_MASK_EXT \
- (HTT_AC_EXT_NON_QOS_MASK | HTT_AC_EXT_UCAST_MGMT_MASK | \
- HTT_AC_EXT_MCAST_DATA_MASK | HTT_AC_EXT_MCAST_MGMT_MASK)
- #define HTT_AC_MASK_ALL (HTT_AC_MASK_WMM | HTT_AC_MASK_EXT)
- typedef struct {
-
- A_UINT32 mac_addr31to0;
-
- A_UINT32 mac_addr47to32;
- } htt_mac_addr;
- #define HTT_STATS_MAX_CHAINS 8
- #endif
|