Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
def.h File Reference

Go to the source code of this file.

Data Structures

struct  rx_fwinfo
 
struct  phy_sts_cck_8192s_t
 

Macros

#define RX_MPDU_QUEUE   0
 
#define RX_CMD_QUEUE   1
 
#define RX_MAX_QUEUE   2
 
#define SHORT_SLOT_TIME   9
 
#define NON_SHORT_SLOT_TIME   20
 
#define RX_SMOOTH_FACTOR   20
 
#define QSLT_BK   0x2
 
#define QSLT_BE   0x0
 
#define QSLT_VI   0x5
 
#define QSLT_VO   0x6
 
#define QSLT_BEACON   0x10
 
#define QSLT_HIGH   0x11
 
#define QSLT_MGNT   0x12
 
#define QSLT_CMD   0x13
 
#define PHY_RSSI_SLID_WIN_MAX   100
 
#define PHY_LINKQUALITY_SLID_WIN_MAX   20
 
#define PHY_BEACON_RSSI_SLID_WIN_MAX   10
 
#define TX_DESC_SIZE_RTL8192S   (16 * 4)
 
#define TX_CMDDESC_SIZE_RTL8192S   (16 * 4)
 
#define SHIFT_AND_MASK_LE(__pdesc, __shift, __mask)
 
#define SET_BITS_OFFSET_LE(__pdesc, __shift, __len, __val)
 
#define SET_TX_DESC_PKT_SIZE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 0, 16, __val)
 
#define SET_TX_DESC_OFFSET(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 16, 8, __val)
 
#define SET_TX_DESC_TYPE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 24, 2, __val)
 
#define SET_TX_DESC_LAST_SEG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val)
 
#define SET_TX_DESC_FIRST_SEG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val)
 
#define SET_TX_DESC_LINIP(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val)
 
#define SET_TX_DESC_AMSDU(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val)
 
#define SET_TX_DESC_GREEN_FIELD(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val)
 
#define SET_TX_DESC_OWN(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val)
 
#define GET_TX_DESC_OWN(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 31, 1)
 
#define SET_TX_DESC_MACID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 0, 5, __val)
 
#define SET_TX_DESC_MORE_DATA(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 5, 1, __val)
 
#define SET_TX_DESC_MORE_FRAG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 6, 1, __val)
 
#define SET_TX_DESC_PIFS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 7, 1, __val)
 
#define SET_TX_DESC_QUEUE_SEL(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 8, 5, __val)
 
#define SET_TX_DESC_ACK_POLICY(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 13, 2, __val)
 
#define SET_TX_DESC_NO_ACM(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 15, 1, __val)
 
#define SET_TX_DESC_NON_QOS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 16, 1, __val)
 
#define SET_TX_DESC_KEY_ID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 17, 2, __val)
 
#define SET_TX_DESC_OUI(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 19, 1, __val)
 
#define SET_TX_DESC_PKT_TYPE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 20, 1, __val)
 
#define SET_TX_DESC_EN_DESC_ID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 21, 1, __val)
 
#define SET_TX_DESC_SEC_TYPE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 22, 2, __val)
 
#define SET_TX_DESC_WDS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 24, 1, __val)
 
#define SET_TX_DESC_HTC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 25, 1, __val)
 
#define SET_TX_DESC_PKT_OFFSET(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 26, 5, __val)
 
#define SET_TX_DESC_HWPC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 27, 1, __val)
 
#define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 0, 6, __val)
 
#define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 6, 1, __val)
 
#define SET_TX_DESC_TSFL(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 7, 5, __val)
 
#define SET_TX_DESC_RTS_RETRY_COUNT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 12, 6, __val)
 
#define SET_TX_DESC_DATA_RETRY_COUNT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 18, 6, __val)
 
#define SET_TX_DESC_RSVD_MACID(__pdesc, __val)   SET_BITS_OFFSET_LE(((__pdesc) + 8), 24, 5, __val)
 
#define SET_TX_DESC_AGG_ENABLE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 29, 1, __val)
 
#define SET_TX_DESC_AGG_BREAK(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 30, 1, __val)
 
#define SET_TX_DESC_OWN_MAC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 31, 1, __val)
 
#define SET_TX_DESC_NEXT_HEAP_PAGE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 0, 8, __val)
 
#define SET_TX_DESC_TAIL_PAGE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 8, 8, __val)
 
#define SET_TX_DESC_SEQ(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 16, 12, __val)
 
#define SET_TX_DESC_FRAG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 28, 4, __val)
 
#define SET_TX_DESC_RTS_RATE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 0, 6, __val)
 
#define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 6, 1, __val)
 
#define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 7, 4, __val)
 
#define SET_TX_DESC_CTS_ENABLE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 11, 1, __val)
 
#define SET_TX_DESC_RTS_ENABLE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 12, 1, __val)
 
#define SET_TX_DESC_RA_BRSR_ID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 13, 3, __val)
 
#define SET_TX_DESC_TXHT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 16, 1, __val)
 
#define SET_TX_DESC_TX_SHORT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 17, 1, __val)
 
#define SET_TX_DESC_TX_BANDWIDTH(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 18, 1, __val)
 
#define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 19, 2, __val)
 
#define SET_TX_DESC_TX_STBC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 21, 2, __val)
 
#define SET_TX_DESC_TX_REVERSE_DIRECTION(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 23, 1, __val)
 
#define SET_TX_DESC_RTS_HT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 24, 1, __val)
 
#define SET_TX_DESC_RTS_SHORT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 25, 1, __val)
 
#define SET_TX_DESC_RTS_BANDWIDTH(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 26, 1, __val)
 
#define SET_TX_DESC_RTS_SUB_CARRIER(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 27, 2, __val)
 
#define SET_TX_DESC_RTS_STBC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 29, 2, __val)
 
#define SET_TX_DESC_USER_RATE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 31, 1, __val)
 
#define SET_TX_DESC_PACKET_ID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 20, 0, 9, __val)
 
#define SET_TX_DESC_TX_RATE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 20, 9, 6, __val)
 
#define SET_TX_DESC_DISABLE_FB(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 20, 15, 1, __val)
 
#define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 20, 16, 5, __val)
 
#define SET_TX_DESC_TX_AGC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 20, 21, 11, __val)
 
#define SET_TX_DESC_IP_CHECK_SUM(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 24, 0, 16, __val)
 
#define SET_TX_DESC_TCP_CHECK_SUM(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 24, 16, 16, __val)
 
#define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 28, 0, 16, __val)
 
#define SET_TX_DESC_IP_HEADER_OFFSET(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 28, 16, 8, __val)
 
#define SET_TX_DESC_TCP_ENABLE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 28, 31, 1, __val)
 
#define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 32, 0, 32, __val)
 
#define GET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 32, 0, 32)
 
#define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 36, 0, 32, __val)
 
#define TX_DESC_NEXT_DESC_OFFSET   36
 
#define CLEAR_PCI_TX_DESC_CONTENT(__pdesc, _size)   memset(__pdesc, 0, min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET))
 
#define RX_STATUS_DESC_SIZE   24
 
#define RX_DRV_INFO_SIZE_UNIT   8
 
#define SET_RX_STATUS_DESC_PKT_LEN(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 0, 14, __val)
 
#define SET_RX_STATUS_DESC_CRC32(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 14, 1, __val)
 
#define SET_RX_STATUS_DESC_ICV(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 15, 1, __val)
 
#define SET_RX_STATUS_DESC_DRVINFO_SIZE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 16, 4, __val)
 
#define SET_RX_STATUS_DESC_SECURITY(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 20, 3, __val)
 
#define SET_RX_STATUS_DESC_QOS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 23, 1, __val)
 
#define SET_RX_STATUS_DESC_SHIFT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 24, 2, __val)
 
#define SET_RX_STATUS_DESC_PHY_STATUS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val)
 
#define SET_RX_STATUS_DESC_SWDEC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val)
 
#define SET_RX_STATUS_DESC_LAST_SEG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val)
 
#define SET_RX_STATUS_DESC_FIRST_SEG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val)
 
#define SET_RX_STATUS_DESC_EOR(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val)
 
#define SET_RX_STATUS_DESC_OWN(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val)
 
#define GET_RX_STATUS_DESC_PKT_LEN(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 0, 14)
 
#define GET_RX_STATUS_DESC_CRC32(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 14, 1)
 
#define GET_RX_STATUS_DESC_ICV(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 15, 1)
 
#define GET_RX_STATUS_DESC_DRVINFO_SIZE(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 16, 4)
 
#define GET_RX_STATUS_DESC_SECURITY(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 20, 3)
 
#define GET_RX_STATUS_DESC_QOS(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 23, 1)
 
#define GET_RX_STATUS_DESC_SHIFT(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 24, 2)
 
#define GET_RX_STATUS_DESC_PHY_STATUS(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 26, 1)
 
#define GET_RX_STATUS_DESC_SWDEC(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 27, 1)
 
#define GET_RX_STATUS_DESC_LAST_SEG(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 28, 1)
 
#define GET_RX_STATUS_DESC_FIRST_SEG(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 29, 1)
 
#define GET_RX_STATUS_DESC_EOR(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 30, 1)
 
#define GET_RX_STATUS_DESC_OWN(__pdesc)   SHIFT_AND_MASK_LE(__pdesc, 31, 1)
 
#define SET_RX_STATUS_DESC_MACID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 0, 5, __val)
 
#define SET_RX_STATUS_DESC_TID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 5, 4, __val)
 
#define SET_RX_STATUS_DESC_PAGGR(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 14, 1, __val)
 
#define SET_RX_STATUS_DESC_FAGGR(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 15, 1, __val)
 
#define SET_RX_STATUS_DESC_A1_FIT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 16, 4, __val)
 
#define SET_RX_STATUS_DESC_A2_FIT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 20, 4, __val)
 
#define SET_RX_STATUS_DESC_PAM(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 24, 1, __val)
 
#define SET_RX_STATUS_DESC_PWR(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 25, 1, __val)
 
#define SET_RX_STATUS_DESC_MOREDATA(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 26, 1, __val)
 
#define SET_RX_STATUS_DESC_MOREFRAG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 27, 1, __val)
 
#define SET_RX_STATUS_DESC_TYPE(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 28, 2, __val)
 
#define SET_RX_STATUS_DESC_MC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 30, 1, __val)
 
#define SET_RX_STATUS_DESC_BC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 4, 31, 1, __val)
 
#define GET_RX_STATUS_DEC_MACID(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 0, 5)
 
#define GET_RX_STATUS_DESC_TID(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 5, 4)
 
#define GET_RX_STATUS_DESC_PAGGR(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 14, 1)
 
#define GET_RX_STATUS_DESC_FAGGR(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 15, 1)
 
#define GET_RX_STATUS_DESC_A1_FIT(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 16, 4)
 
#define GET_RX_STATUS_DESC_A2_FIT(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 20, 4)
 
#define GET_RX_STATUS_DESC_PAM(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 24, 1)
 
#define GET_RX_STATUS_DESC_PWR(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 25, 1)
 
#define GET_RX_STATUS_DESC_MORE_DATA(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 26, 1)
 
#define GET_RX_STATUS_DESC_MORE_FRAG(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 27, 1)
 
#define GET_RX_STATUS_DESC_TYPE(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 28, 2)
 
#define GET_RX_STATUS_DESC_MC(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 30, 1)
 
#define GET_RX_STATUS_DESC_BC(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 4, 31, 1)
 
#define SET_RX_STATUS_DESC_SEQ(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 0, 12, __val)
 
#define SET_RX_STATUS_DESC_FRAG(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 12, 4, __val)
 
#define SET_RX_STATUS_DESC_NEXT_PKTLEN(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 16, 8, __val)
 
#define SET_RX_STATUS_DESC_NEXT_IND(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 8, 30, 1, __val)
 
#define GET_RX_STATUS_DESC_SEQ(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 8, 0, 12)
 
#define GET_RX_STATUS_DESC_FRAG(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 8, 12, 4)
 
#define GET_RX_STATUS_DESC_NEXT_PKTLEN(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 8, 16, 8)
 
#define GET_RX_STATUS_DESC_NEXT_IND(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 8, 30, 1)
 
#define SET_RX_STATUS_DESC_RX_MCS(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 0, 6, __val)
 
#define SET_RX_STATUS_DESC_RX_HT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 6, 1, __val)
 
#define SET_RX_STATUS_DESC_AMSDU(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 7, 1, __val)
 
#define SET_RX_STATUS_DESC_SPLCP(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 8, 1, __val)
 
#define SET_RX_STATUS_DESC_BW(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 9, 1, __val)
 
#define SET_RX_STATUS_DESC_HTC(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 10, 1, __val)
 
#define SET_RX_STATUS_DESC_TCP_CHK_RPT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 11, 1, __val)
 
#define SET_RX_STATUS_DESC_IP_CHK_RPT(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 12, 1, __val)
 
#define SET_RX_STATUS_DESC_TCP_CHK_VALID(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 13, 1, __val)
 
#define SET_RX_STATUS_DESC_HWPC_ERR(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 14, 1, __val)
 
#define SET_RX_STATUS_DESC_HWPC_IND(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 15, 1, __val)
 
#define SET_RX_STATUS_DESC_IV0(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 12, 16, 16, __val)
 
#define GET_RX_STATUS_DESC_RX_MCS(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 0, 6)
 
#define GET_RX_STATUS_DESC_RX_HT(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 6, 1)
 
#define GET_RX_STATUS_DESC_AMSDU(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 7, 1)
 
#define GET_RX_STATUS_DESC_SPLCP(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 8, 1)
 
#define GET_RX_STATUS_DESC_BW(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 9, 1)
 
#define GET_RX_STATUS_DESC_HTC(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 10, 1)
 
#define GET_RX_STATUS_DESC_TCP_CHK_RPT(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 11, 1)
 
#define GET_RX_STATUS_DESC_IP_CHK_RPT(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 12, 1)
 
#define GET_RX_STATUS_DESC_TCP_CHK_VALID(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 13, 1)
 
#define GET_RX_STATUS_DESC_HWPC_ERR(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 14, 1)
 
#define GET_RX_STATUS_DESC_HWPC_IND(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 15, 1)
 
#define GET_RX_STATUS_DESC_IV0(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 12, 16, 16)
 
#define SET_RX_STATUS_DESC_IV1(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 16, 0, 32, __val)
 
#define GET_RX_STATUS_DESC_IV1(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 16, 0, 32)
 
#define SET_RX_STATUS_DESC_TSFL(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 20, 0, 32, __val)
 
#define GET_RX_STATUS_DESC_TSFL(__pdesc)   SHIFT_AND_MASK_LE(__pdesc + 20, 0, 32)
 
#define SET_RX_STATUS__DESC_BUFF_ADDR(__pdesc, __val)   SET_BITS_OFFSET_LE(__pdesc + 24, 0, 32, __val)
 
#define SE_RX_HAL_IS_CCK_RATE(_pdesc)
 

Enumerations

enum  rf_optype {
  RF_OP_BY_SW_3WIRE = 0, RF_OP_BY_FW, RF_OP_MAX, RF_OP_BY_SW_3WIRE = 0,
  RF_OP_BY_FW, RF_OP_MAX, RF_OP_BY_SW_3WIRE = 0, RF_OP_BY_FW,
  RF_OP_MAX, RF_OP_By_SW_3wire = 0, RF_OP_By_FW, RF_OP_MAX,
  RF_OP_By_SW_3wire = 0, RF_OP_By_FW, RF_OP_MAX
}
 
enum  ic_inferiority { IC_INFERIORITY_A = 0, IC_INFERIORITY_B = 1 }
 
enum  fwcmd_iotype {
  FW_CMD_DIG_ENABLE = 0, FW_CMD_DIG_DISABLE = 1, FW_CMD_DIG_HALT = 2, FW_CMD_DIG_RESUME = 3,
  FW_CMD_HIGH_PWR_ENABLE = 4, FW_CMD_HIGH_PWR_DISABLE = 5, FW_CMD_RA_RESET = 6, FW_CMD_RA_ACTIVE = 7,
  FW_CMD_RA_REFRESH_N = 8, FW_CMD_RA_REFRESH_BG = 9, FW_CMD_RA_INIT = 10, FW_CMD_IQK_INIT = 11,
  FW_CMD_TXPWR_TRACK_ENABLE = 12, FW_CMD_TXPWR_TRACK_DISABLE = 13, FW_CMD_TXPWR_TRACK_THERMAL = 14, FW_CMD_PAUSE_DM_BY_SCAN = 15,
  FW_CMD_RESUME_DM_BY_SCAN = 16, FW_CMD_RA_REFRESH_N_COMB = 17, FW_CMD_RA_REFRESH_BG_COMB = 18, FW_CMD_ANTENNA_SW_ENABLE = 19,
  FW_CMD_ANTENNA_SW_DISABLE = 20, FW_CMD_TX_FEEDBACK_CCX_ENABLE = 21, FW_CMD_LPS_ENTER = 22, FW_CMD_LPS_LEAVE = 23,
  FW_CMD_DIG_MODE_SS = 24, FW_CMD_DIG_MODE_FA = 25, FW_CMD_ADD_A2_ENTRY = 26, FW_CMD_CTRL_DM_BY_DRIVER = 27,
  FW_CMD_CTRL_DM_BY_DRIVER_NEW = 28, FW_CMD_PAPE_CONTROL = 29, FW_CMD_IQK_ENABLE = 30
}
 

Macro Definition Documentation

#define CLEAR_PCI_TX_DESC_CONTENT (   __pdesc,
  _size 
)    memset(__pdesc, 0, min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET))

Definition at line 254 of file def.h.

#define GET_RX_STATUS_DEC_MACID (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 0, 5)

Definition at line 344 of file def.h.

#define GET_RX_STATUS_DESC_A1_FIT (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 16, 4)

Definition at line 352 of file def.h.

#define GET_RX_STATUS_DESC_A2_FIT (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 20, 4)

Definition at line 354 of file def.h.

#define GET_RX_STATUS_DESC_AMSDU (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 7, 1)

Definition at line 420 of file def.h.

#define GET_RX_STATUS_DESC_BC (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 31, 1)

Definition at line 368 of file def.h.

#define GET_RX_STATUS_DESC_BW (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 9, 1)

Definition at line 424 of file def.h.

#define GET_RX_STATUS_DESC_CRC32 (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 14, 1)

Definition at line 291 of file def.h.

#define GET_RX_STATUS_DESC_DRVINFO_SIZE (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 16, 4)

Definition at line 295 of file def.h.

#define GET_RX_STATUS_DESC_EOR (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 30, 1)

Definition at line 311 of file def.h.

#define GET_RX_STATUS_DESC_FAGGR (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 15, 1)

Definition at line 350 of file def.h.

#define GET_RX_STATUS_DESC_FIRST_SEG (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 29, 1)

Definition at line 309 of file def.h.

#define GET_RX_STATUS_DESC_FRAG (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 8, 12, 4)

Definition at line 383 of file def.h.

#define GET_RX_STATUS_DESC_HTC (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 10, 1)

Definition at line 426 of file def.h.

#define GET_RX_STATUS_DESC_HWPC_ERR (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 14, 1)

Definition at line 434 of file def.h.

#define GET_RX_STATUS_DESC_HWPC_IND (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 15, 1)

Definition at line 436 of file def.h.

#define GET_RX_STATUS_DESC_ICV (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 15, 1)

Definition at line 293 of file def.h.

#define GET_RX_STATUS_DESC_IP_CHK_RPT (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 12, 1)

Definition at line 430 of file def.h.

#define GET_RX_STATUS_DESC_IV0 (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 16, 16)

Definition at line 438 of file def.h.

#define GET_RX_STATUS_DESC_IV1 (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 16, 0, 32)

Definition at line 444 of file def.h.

#define GET_RX_STATUS_DESC_LAST_SEG (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 28, 1)

Definition at line 307 of file def.h.

#define GET_RX_STATUS_DESC_MC (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 30, 1)

Definition at line 366 of file def.h.

#define GET_RX_STATUS_DESC_MORE_DATA (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 26, 1)

Definition at line 360 of file def.h.

#define GET_RX_STATUS_DESC_MORE_FRAG (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 27, 1)

Definition at line 362 of file def.h.

#define GET_RX_STATUS_DESC_NEXT_IND (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 8, 30, 1)

Definition at line 387 of file def.h.

#define GET_RX_STATUS_DESC_NEXT_PKTLEN (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 8, 16, 8)

Definition at line 385 of file def.h.

#define GET_RX_STATUS_DESC_OWN (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 31, 1)

Definition at line 313 of file def.h.

#define GET_RX_STATUS_DESC_PAGGR (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 14, 1)

Definition at line 348 of file def.h.

#define GET_RX_STATUS_DESC_PAM (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 24, 1)

Definition at line 356 of file def.h.

#define GET_RX_STATUS_DESC_PHY_STATUS (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 26, 1)

Definition at line 303 of file def.h.

#define GET_RX_STATUS_DESC_PKT_LEN (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 0, 14)

Definition at line 289 of file def.h.

#define GET_RX_STATUS_DESC_PWR (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 25, 1)

Definition at line 358 of file def.h.

#define GET_RX_STATUS_DESC_QOS (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 23, 1)

Definition at line 299 of file def.h.

#define GET_RX_STATUS_DESC_RX_HT (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 6, 1)

Definition at line 418 of file def.h.

#define GET_RX_STATUS_DESC_RX_MCS (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 0, 6)

Definition at line 416 of file def.h.

#define GET_RX_STATUS_DESC_SECURITY (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 20, 3)

Definition at line 297 of file def.h.

#define GET_RX_STATUS_DESC_SEQ (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 8, 0, 12)

Definition at line 381 of file def.h.

#define GET_RX_STATUS_DESC_SHIFT (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 24, 2)

Definition at line 301 of file def.h.

#define GET_RX_STATUS_DESC_SPLCP (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 8, 1)

Definition at line 422 of file def.h.

#define GET_RX_STATUS_DESC_SWDEC (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 27, 1)

Definition at line 305 of file def.h.

#define GET_RX_STATUS_DESC_TCP_CHK_RPT (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 11, 1)

Definition at line 428 of file def.h.

#define GET_RX_STATUS_DESC_TCP_CHK_VALID (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 12, 13, 1)

Definition at line 432 of file def.h.

#define GET_RX_STATUS_DESC_TID (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 5, 4)

Definition at line 346 of file def.h.

#define GET_RX_STATUS_DESC_TSFL (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 20, 0, 32)

Definition at line 450 of file def.h.

#define GET_RX_STATUS_DESC_TYPE (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 4, 28, 2)

Definition at line 364 of file def.h.

#define GET_TX_DESC_OWN (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc, 31, 1)

Definition at line 104 of file def.h.

#define GET_TX_DESC_TX_BUFFER_ADDRESS (   __pdesc)    SHIFT_AND_MASK_LE(__pdesc + 32, 0, 32)

Definition at line 240 of file def.h.

#define NON_SHORT_SLOT_TIME   20

Definition at line 37 of file def.h.

#define PHY_BEACON_RSSI_SLID_WIN_MAX   10

Definition at line 54 of file def.h.

#define PHY_LINKQUALITY_SLID_WIN_MAX   20

Definition at line 53 of file def.h.

#define PHY_RSSI_SLID_WIN_MAX   100

Definition at line 52 of file def.h.

#define QSLT_BE   0x0

Definition at line 44 of file def.h.

#define QSLT_BEACON   0x10

Definition at line 47 of file def.h.

#define QSLT_BK   0x2

Definition at line 43 of file def.h.

#define QSLT_CMD   0x13

Definition at line 50 of file def.h.

#define QSLT_HIGH   0x11

Definition at line 48 of file def.h.

#define QSLT_MGNT   0x12

Definition at line 49 of file def.h.

#define QSLT_VI   0x5

Definition at line 45 of file def.h.

#define QSLT_VO   0x6

Definition at line 46 of file def.h.

#define RX_CMD_QUEUE   1

Definition at line 33 of file def.h.

#define RX_DRV_INFO_SIZE_UNIT   8

Definition at line 259 of file def.h.

#define RX_MAX_QUEUE   2

Definition at line 34 of file def.h.

#define RX_MPDU_QUEUE   0

Definition at line 32 of file def.h.

#define RX_SMOOTH_FACTOR   20

Definition at line 40 of file def.h.

#define RX_STATUS_DESC_SIZE   24

Definition at line 258 of file def.h.

#define SE_RX_HAL_IS_CCK_RATE (   _pdesc)
Value:
GET_RX_STATUS_DESC_RX_MCS(_pdesc) == DESC92_RATE2M || \
GET_RX_STATUS_DESC_RX_MCS(_pdesc) == DESC92_RATE5_5M ||\
GET_RX_STATUS_DESC_RX_MCS(_pdesc) == DESC92_RATE11M)

Definition at line 457 of file def.h.

#define SET_BITS_OFFSET_LE (   __pdesc,
  __shift,
  __len,
  __val 
)
Value:
(*(__le32 *)(__pdesc) = \
(cpu_to_le32((le32_to_cpu(*((__le32 *)(__pdesc))) & \
(~(BIT_OFFSET_LEN_MASK_32((__shift), __len)))) | \
(((u32)(__val) & BIT_LEN_MASK_32(__len)) << (__shift)))));

Definition at line 76 of file def.h.

#define SET_RX_STATUS__DESC_BUFF_ADDR (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 24, 0, 32, __val)

Definition at line 454 of file def.h.

#define SET_RX_STATUS_DESC_A1_FIT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 16, 4, __val)

Definition at line 325 of file def.h.

#define SET_RX_STATUS_DESC_A2_FIT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 20, 4, __val)

Definition at line 327 of file def.h.

#define SET_RX_STATUS_DESC_AMSDU (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 7, 1, __val)

Definition at line 395 of file def.h.

#define SET_RX_STATUS_DESC_BC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 31, 1, __val)

Definition at line 341 of file def.h.

#define SET_RX_STATUS_DESC_BW (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 9, 1, __val)

Definition at line 399 of file def.h.

#define SET_RX_STATUS_DESC_CRC32 (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 14, 1, __val)

Definition at line 264 of file def.h.

#define SET_RX_STATUS_DESC_DRVINFO_SIZE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 16, 4, __val)

Definition at line 268 of file def.h.

#define SET_RX_STATUS_DESC_EOR (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val)

Definition at line 284 of file def.h.

#define SET_RX_STATUS_DESC_FAGGR (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 15, 1, __val)

Definition at line 323 of file def.h.

#define SET_RX_STATUS_DESC_FIRST_SEG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val)

Definition at line 282 of file def.h.

#define SET_RX_STATUS_DESC_FRAG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 12, 4, __val)

Definition at line 374 of file def.h.

#define SET_RX_STATUS_DESC_HTC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 10, 1, __val)

Definition at line 401 of file def.h.

#define SET_RX_STATUS_DESC_HWPC_ERR (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 14, 1, __val)

Definition at line 409 of file def.h.

#define SET_RX_STATUS_DESC_HWPC_IND (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 15, 1, __val)

Definition at line 411 of file def.h.

#define SET_RX_STATUS_DESC_ICV (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 15, 1, __val)

Definition at line 266 of file def.h.

#define SET_RX_STATUS_DESC_IP_CHK_RPT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 12, 1, __val)

Definition at line 405 of file def.h.

#define SET_RX_STATUS_DESC_IV0 (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 16, 16, __val)

Definition at line 413 of file def.h.

#define SET_RX_STATUS_DESC_IV1 (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 0, 32, __val)

Definition at line 442 of file def.h.

#define SET_RX_STATUS_DESC_LAST_SEG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val)

Definition at line 280 of file def.h.

#define SET_RX_STATUS_DESC_MACID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 0, 5, __val)

Definition at line 317 of file def.h.

#define SET_RX_STATUS_DESC_MC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 30, 1, __val)

Definition at line 339 of file def.h.

#define SET_RX_STATUS_DESC_MOREDATA (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 26, 1, __val)

Definition at line 333 of file def.h.

#define SET_RX_STATUS_DESC_MOREFRAG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 27, 1, __val)

Definition at line 335 of file def.h.

#define SET_RX_STATUS_DESC_NEXT_IND (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 30, 1, __val)

Definition at line 378 of file def.h.

#define SET_RX_STATUS_DESC_NEXT_PKTLEN (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 16, 8, __val)

Definition at line 376 of file def.h.

#define SET_RX_STATUS_DESC_OWN (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val)

Definition at line 286 of file def.h.

#define SET_RX_STATUS_DESC_PAGGR (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 14, 1, __val)

Definition at line 321 of file def.h.

#define SET_RX_STATUS_DESC_PAM (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 24, 1, __val)

Definition at line 329 of file def.h.

#define SET_RX_STATUS_DESC_PHY_STATUS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val)

Definition at line 276 of file def.h.

#define SET_RX_STATUS_DESC_PKT_LEN (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 0, 14, __val)

Definition at line 262 of file def.h.

#define SET_RX_STATUS_DESC_PWR (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 25, 1, __val)

Definition at line 331 of file def.h.

#define SET_RX_STATUS_DESC_QOS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 23, 1, __val)

Definition at line 272 of file def.h.

#define SET_RX_STATUS_DESC_RX_HT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 6, 1, __val)

Definition at line 393 of file def.h.

#define SET_RX_STATUS_DESC_RX_MCS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 0, 6, __val)

Definition at line 391 of file def.h.

#define SET_RX_STATUS_DESC_SECURITY (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 20, 3, __val)

Definition at line 270 of file def.h.

#define SET_RX_STATUS_DESC_SEQ (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 0, 12, __val)

Definition at line 372 of file def.h.

#define SET_RX_STATUS_DESC_SHIFT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 24, 2, __val)

Definition at line 274 of file def.h.

#define SET_RX_STATUS_DESC_SPLCP (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 8, 1, __val)

Definition at line 397 of file def.h.

#define SET_RX_STATUS_DESC_SWDEC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val)

Definition at line 278 of file def.h.

#define SET_RX_STATUS_DESC_TCP_CHK_RPT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 11, 1, __val)

Definition at line 403 of file def.h.

#define SET_RX_STATUS_DESC_TCP_CHK_VALID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 13, 1, __val)

Definition at line 407 of file def.h.

#define SET_RX_STATUS_DESC_TID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 5, 4, __val)

Definition at line 319 of file def.h.

#define SET_RX_STATUS_DESC_TSFL (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 20, 0, 32, __val)

Definition at line 448 of file def.h.

#define SET_RX_STATUS_DESC_TYPE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 28, 2, __val)

Definition at line 337 of file def.h.

#define SET_TX_DESC_ACK_POLICY (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 13, 2, __val)

Definition at line 118 of file def.h.

#define SET_TX_DESC_AGG_BREAK (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 30, 1, __val)

Definition at line 158 of file def.h.

#define SET_TX_DESC_AGG_ENABLE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 29, 1, __val)

Definition at line 156 of file def.h.

#define SET_TX_DESC_AMSDU (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val)

Definition at line 97 of file def.h.

#define SET_TX_DESC_CTS_ENABLE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 11, 1, __val)

Definition at line 180 of file def.h.

#define SET_TX_DESC_DATA_RATE_FB_LIMIT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 20, 16, 5, __val)

Definition at line 218 of file def.h.

#define SET_TX_DESC_DATA_RETRY_COUNT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 18, 6, __val)

Definition at line 152 of file def.h.

#define SET_TX_DESC_DATA_RETRY_LIMIT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 0, 6, __val)

Definition at line 144 of file def.h.

#define SET_TX_DESC_DISABLE_FB (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 20, 15, 1, __val)

Definition at line 216 of file def.h.

#define SET_TX_DESC_DISABLE_RTS_FB (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 6, 1, __val)

Definition at line 176 of file def.h.

#define SET_TX_DESC_EN_DESC_ID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 21, 1, __val)

Definition at line 130 of file def.h.

#define SET_TX_DESC_FIRST_SEG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val)

Definition at line 93 of file def.h.

#define SET_TX_DESC_FRAG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 28, 4, __val)

Definition at line 170 of file def.h.

#define SET_TX_DESC_GREEN_FIELD (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val)

Definition at line 99 of file def.h.

#define SET_TX_DESC_HTC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 25, 1, __val)

Definition at line 136 of file def.h.

#define SET_TX_DESC_HWPC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 27, 1, __val)

Definition at line 140 of file def.h.

#define SET_TX_DESC_IP_CHECK_SUM (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 24, 0, 16, __val)

Definition at line 224 of file def.h.

#define SET_TX_DESC_IP_HEADER_OFFSET (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 28, 16, 8, __val)

Definition at line 232 of file def.h.

#define SET_TX_DESC_KEY_ID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 17, 2, __val)

Definition at line 124 of file def.h.

#define SET_TX_DESC_LAST_SEG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val)

Definition at line 91 of file def.h.

#define SET_TX_DESC_LINIP (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val)

Definition at line 95 of file def.h.

#define SET_TX_DESC_MACID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 0, 5, __val)

Definition at line 108 of file def.h.

#define SET_TX_DESC_MORE_DATA (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 5, 1, __val)

Definition at line 110 of file def.h.

#define SET_TX_DESC_MORE_FRAG (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 6, 1, __val)

Definition at line 112 of file def.h.

#define SET_TX_DESC_NEXT_DESC_ADDRESS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 36, 0, 32, __val)

Definition at line 244 of file def.h.

#define SET_TX_DESC_NEXT_HEAP_PAGE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 0, 8, __val)

Definition at line 164 of file def.h.

#define SET_TX_DESC_NO_ACM (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 15, 1, __val)

Definition at line 120 of file def.h.

#define SET_TX_DESC_NON_QOS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 16, 1, __val)

Definition at line 122 of file def.h.

#define SET_TX_DESC_OFFSET (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 16, 8, __val)

Definition at line 87 of file def.h.

#define SET_TX_DESC_OUI (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 19, 1, __val)

Definition at line 126 of file def.h.

#define SET_TX_DESC_OWN (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val)

Definition at line 101 of file def.h.

#define SET_TX_DESC_OWN_MAC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 31, 1, __val)

Definition at line 160 of file def.h.

#define SET_TX_DESC_PACKET_ID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 20, 0, 9, __val)

Definition at line 212 of file def.h.

#define SET_TX_DESC_PIFS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 7, 1, __val)

Definition at line 114 of file def.h.

#define SET_TX_DESC_PKT_OFFSET (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 26, 5, __val)

Definition at line 138 of file def.h.

#define SET_TX_DESC_PKT_SIZE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 0, 16, __val)

Definition at line 85 of file def.h.

#define SET_TX_DESC_PKT_TYPE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 20, 1, __val)

Definition at line 128 of file def.h.

#define SET_TX_DESC_QUEUE_SEL (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 8, 5, __val)

Definition at line 116 of file def.h.

#define SET_TX_DESC_RA_BRSR_ID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 13, 3, __val)

Definition at line 184 of file def.h.

#define SET_TX_DESC_RETRY_LIMIT_ENABLE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 6, 1, __val)

Definition at line 146 of file def.h.

#define SET_TX_DESC_RSVD_MACID (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(((__pdesc) + 8), 24, 5, __val)

Definition at line 154 of file def.h.

#define SET_TX_DESC_RTS_BANDWIDTH (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 26, 1, __val)

Definition at line 202 of file def.h.

#define SET_TX_DESC_RTS_ENABLE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 12, 1, __val)

Definition at line 182 of file def.h.

#define SET_TX_DESC_RTS_HT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 24, 1, __val)

Definition at line 198 of file def.h.

#define SET_TX_DESC_RTS_RATE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 0, 6, __val)

Definition at line 174 of file def.h.

#define SET_TX_DESC_RTS_RATE_FB_LIMIT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 7, 4, __val)

Definition at line 178 of file def.h.

#define SET_TX_DESC_RTS_RETRY_COUNT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 12, 6, __val)

Definition at line 150 of file def.h.

#define SET_TX_DESC_RTS_SHORT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 25, 1, __val)

Definition at line 200 of file def.h.

#define SET_TX_DESC_RTS_STBC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 29, 2, __val)

Definition at line 206 of file def.h.

#define SET_TX_DESC_RTS_SUB_CARRIER (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 27, 2, __val)

Definition at line 204 of file def.h.

#define SET_TX_DESC_SEC_TYPE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 22, 2, __val)

Definition at line 132 of file def.h.

#define SET_TX_DESC_SEQ (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 16, 12, __val)

Definition at line 168 of file def.h.

#define SET_TX_DESC_TAIL_PAGE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 12, 8, 8, __val)

Definition at line 166 of file def.h.

#define SET_TX_DESC_TCP_CHECK_SUM (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 24, 16, 16, __val)

Definition at line 226 of file def.h.

#define SET_TX_DESC_TCP_ENABLE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 28, 31, 1, __val)

Definition at line 234 of file def.h.

#define SET_TX_DESC_TSFL (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 8, 7, 5, __val)

Definition at line 148 of file def.h.

#define SET_TX_DESC_TX_AGC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 20, 21, 11, __val)

Definition at line 220 of file def.h.

#define SET_TX_DESC_TX_BANDWIDTH (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 18, 1, __val)

Definition at line 190 of file def.h.

#define SET_TX_DESC_TX_BUFFER_ADDRESS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 32, 0, 32, __val)

Definition at line 238 of file def.h.

#define SET_TX_DESC_TX_BUFFER_SIZE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 28, 0, 16, __val)

Definition at line 230 of file def.h.

#define SET_TX_DESC_TX_RATE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 20, 9, 6, __val)

Definition at line 214 of file def.h.

#define SET_TX_DESC_TX_REVERSE_DIRECTION (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 23, 1, __val)

Definition at line 196 of file def.h.

#define SET_TX_DESC_TX_SHORT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 17, 1, __val)

Definition at line 188 of file def.h.

#define SET_TX_DESC_TX_STBC (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 21, 2, __val)

Definition at line 194 of file def.h.

#define SET_TX_DESC_TX_SUB_CARRIER (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 19, 2, __val)

Definition at line 192 of file def.h.

#define SET_TX_DESC_TXHT (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 16, 1, __val)

Definition at line 186 of file def.h.

#define SET_TX_DESC_TYPE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc, 24, 2, __val)

Definition at line 89 of file def.h.

#define SET_TX_DESC_USER_RATE (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 16, 31, 1, __val)

Definition at line 208 of file def.h.

#define SET_TX_DESC_WDS (   __pdesc,
  __val 
)    SET_BITS_OFFSET_LE(__pdesc + 4, 24, 1, __val)

Definition at line 134 of file def.h.

#define SHIFT_AND_MASK_LE (   __pdesc,
  __shift,
  __mask 
)
Value:
((le32_to_cpu(*(((__le32 *)(__pdesc)))) >> (__shift)) & \
BIT_LEN_MASK_32(__mask))

Definition at line 65 of file def.h.

#define SHORT_SLOT_TIME   9

Definition at line 36 of file def.h.

#define TX_CMDDESC_SIZE_RTL8192S   (16 * 4)

Definition at line 58 of file def.h.

#define TX_DESC_NEXT_DESC_OFFSET   36

Definition at line 253 of file def.h.

#define TX_DESC_SIZE_RTL8192S   (16 * 4)

Definition at line 57 of file def.h.

Enumeration Type Documentation

Enumerator:
FW_CMD_DIG_ENABLE 
FW_CMD_DIG_DISABLE 
FW_CMD_DIG_HALT 
FW_CMD_DIG_RESUME 
FW_CMD_HIGH_PWR_ENABLE 
FW_CMD_HIGH_PWR_DISABLE 
FW_CMD_RA_RESET 
FW_CMD_RA_ACTIVE 
FW_CMD_RA_REFRESH_N 
FW_CMD_RA_REFRESH_BG 
FW_CMD_RA_INIT 
FW_CMD_IQK_INIT 
FW_CMD_TXPWR_TRACK_ENABLE 
FW_CMD_TXPWR_TRACK_DISABLE 
FW_CMD_TXPWR_TRACK_THERMAL 
FW_CMD_PAUSE_DM_BY_SCAN 
FW_CMD_RESUME_DM_BY_SCAN 
FW_CMD_RA_REFRESH_N_COMB 
FW_CMD_RA_REFRESH_BG_COMB 
FW_CMD_ANTENNA_SW_ENABLE 
FW_CMD_ANTENNA_SW_DISABLE 
FW_CMD_TX_FEEDBACK_CCX_ENABLE 
FW_CMD_LPS_ENTER 
FW_CMD_LPS_LEAVE 
FW_CMD_DIG_MODE_SS 
FW_CMD_DIG_MODE_FA 
FW_CMD_ADD_A2_ENTRY 
FW_CMD_CTRL_DM_BY_DRIVER 
FW_CMD_CTRL_DM_BY_DRIVER_NEW 
FW_CMD_PAPE_CONTROL 
FW_CMD_IQK_ENABLE 

Definition at line 474 of file def.h.

Enumerator:
IC_INFERIORITY_A 
IC_INFERIORITY_B 

Definition at line 469 of file def.h.

enum rf_optype
Enumerator:
RF_OP_BY_SW_3WIRE 
RF_OP_BY_FW 
RF_OP_MAX 
RF_OP_BY_SW_3WIRE 
RF_OP_BY_FW 
RF_OP_MAX 
RF_OP_BY_SW_3WIRE 
RF_OP_BY_FW 
RF_OP_MAX 
RF_OP_By_SW_3wire 
RF_OP_By_FW 
RF_OP_MAX 
RF_OP_By_SW_3wire 
RF_OP_By_FW 
RF_OP_MAX 

Definition at line 463 of file def.h.