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

Go to the source code of this file.

Macros

#define TX_QUEUE_REG_OFFSET   0x10
 
#define TX_BASE_PTR(__x)   (TX_BASE_PTR0 + ((__x) * TX_QUEUE_REG_OFFSET))
 
#define TX_MAX_CNT(__x)   (TX_MAX_CNT0 + ((__x) * TX_QUEUE_REG_OFFSET))
 
#define TX_CTX_IDX(__x)   (TX_CTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET))
 
#define TX_DTX_IDX(__x)   (TX_DTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET))
 
#define FIRMWARE_RT2860   "rt2860.bin"
 
#define FIRMWARE_RT3290   "rt3290.bin"
 
#define FIRMWARE_IMAGE_BASE   0x2000
 
#define TXD_DESC_SIZE   (4 * sizeof(__le32))
 
#define RXD_DESC_SIZE   (4 * sizeof(__le32))
 
#define TXD_W0_SD_PTR0   FIELD32(0xffffffff)
 
#define TXD_W1_SD_LEN1   FIELD32(0x00003fff)
 
#define TXD_W1_LAST_SEC1   FIELD32(0x00004000)
 
#define TXD_W1_BURST   FIELD32(0x00008000)
 
#define TXD_W1_SD_LEN0   FIELD32(0x3fff0000)
 
#define TXD_W1_LAST_SEC0   FIELD32(0x40000000)
 
#define TXD_W1_DMA_DONE   FIELD32(0x80000000)
 
#define TXD_W2_SD_PTR1   FIELD32(0xffffffff)
 
#define TXD_W3_WIV   FIELD32(0x01000000)
 
#define TXD_W3_QSEL   FIELD32(0x06000000)
 
#define TXD_W3_TCO   FIELD32(0x20000000)
 
#define TXD_W3_UCO   FIELD32(0x40000000)
 
#define TXD_W3_ICO   FIELD32(0x80000000)
 
#define RXD_W0_SDP0   FIELD32(0xffffffff)
 
#define RXD_W1_SDL1   FIELD32(0x00003fff)
 
#define RXD_W1_SDL0   FIELD32(0x3fff0000)
 
#define RXD_W1_LS0   FIELD32(0x40000000)
 
#define RXD_W1_DMA_DONE   FIELD32(0x80000000)
 
#define RXD_W2_SDP1   FIELD32(0xffffffff)
 
#define RXD_W3_BA   FIELD32(0x00000001)
 
#define RXD_W3_DATA   FIELD32(0x00000002)
 
#define RXD_W3_NULLDATA   FIELD32(0x00000004)
 
#define RXD_W3_FRAG   FIELD32(0x00000008)
 
#define RXD_W3_UNICAST_TO_ME   FIELD32(0x00000010)
 
#define RXD_W3_MULTICAST   FIELD32(0x00000020)
 
#define RXD_W3_BROADCAST   FIELD32(0x00000040)
 
#define RXD_W3_MY_BSS   FIELD32(0x00000080)
 
#define RXD_W3_CRC_ERROR   FIELD32(0x00000100)
 
#define RXD_W3_CIPHER_ERROR   FIELD32(0x00000600)
 
#define RXD_W3_AMSDU   FIELD32(0x00000800)
 
#define RXD_W3_HTC   FIELD32(0x00001000)
 
#define RXD_W3_RSSI   FIELD32(0x00002000)
 
#define RXD_W3_L2PAD   FIELD32(0x00004000)
 
#define RXD_W3_AMPDU   FIELD32(0x00008000)
 
#define RXD_W3_DECRYPTED   FIELD32(0x00010000)
 
#define RXD_W3_PLCP_SIGNAL   FIELD32(0x00020000)
 
#define RXD_W3_PLCP_RSSI   FIELD32(0x00040000)
 

Macro Definition Documentation

#define FIRMWARE_IMAGE_BASE   0x2000

Definition at line 51 of file rt2800pci.h.

#define FIRMWARE_RT2860   "rt2860.bin"

Definition at line 49 of file rt2800pci.h.

#define FIRMWARE_RT3290   "rt3290.bin"

Definition at line 50 of file rt2800pci.h.

#define RXD_DESC_SIZE   (4 * sizeof(__le32))

Definition at line 57 of file rt2800pci.h.

#define RXD_W0_SDP0   FIELD32(0xffffffff)

Definition at line 102 of file rt2800pci.h.

#define RXD_W1_DMA_DONE   FIELD32(0x80000000)

Definition at line 110 of file rt2800pci.h.

#define RXD_W1_LS0   FIELD32(0x40000000)

Definition at line 109 of file rt2800pci.h.

#define RXD_W1_SDL0   FIELD32(0x3fff0000)

Definition at line 108 of file rt2800pci.h.

#define RXD_W1_SDL1   FIELD32(0x00003fff)

Definition at line 107 of file rt2800pci.h.

#define RXD_W2_SDP1   FIELD32(0xffffffff)

Definition at line 115 of file rt2800pci.h.

#define RXD_W3_AMPDU   FIELD32(0x00008000)

Definition at line 136 of file rt2800pci.h.

#define RXD_W3_AMSDU   FIELD32(0x00000800)

Definition at line 132 of file rt2800pci.h.

#define RXD_W3_BA   FIELD32(0x00000001)

Definition at line 122 of file rt2800pci.h.

#define RXD_W3_BROADCAST   FIELD32(0x00000040)

Definition at line 128 of file rt2800pci.h.

#define RXD_W3_CIPHER_ERROR   FIELD32(0x00000600)

Definition at line 131 of file rt2800pci.h.

#define RXD_W3_CRC_ERROR   FIELD32(0x00000100)

Definition at line 130 of file rt2800pci.h.

#define RXD_W3_DATA   FIELD32(0x00000002)

Definition at line 123 of file rt2800pci.h.

#define RXD_W3_DECRYPTED   FIELD32(0x00010000)

Definition at line 137 of file rt2800pci.h.

#define RXD_W3_FRAG   FIELD32(0x00000008)

Definition at line 125 of file rt2800pci.h.

#define RXD_W3_HTC   FIELD32(0x00001000)

Definition at line 133 of file rt2800pci.h.

#define RXD_W3_L2PAD   FIELD32(0x00004000)

Definition at line 135 of file rt2800pci.h.

#define RXD_W3_MULTICAST   FIELD32(0x00000020)

Definition at line 127 of file rt2800pci.h.

#define RXD_W3_MY_BSS   FIELD32(0x00000080)

Definition at line 129 of file rt2800pci.h.

#define RXD_W3_NULLDATA   FIELD32(0x00000004)

Definition at line 124 of file rt2800pci.h.

#define RXD_W3_PLCP_RSSI   FIELD32(0x00040000)

Definition at line 139 of file rt2800pci.h.

#define RXD_W3_PLCP_SIGNAL   FIELD32(0x00020000)

Definition at line 138 of file rt2800pci.h.

#define RXD_W3_RSSI   FIELD32(0x00002000)

Definition at line 134 of file rt2800pci.h.

#define RXD_W3_UNICAST_TO_ME   FIELD32(0x00000010)

Definition at line 126 of file rt2800pci.h.

#define TX_BASE_PTR (   __x)    (TX_BASE_PTR0 + ((__x) * TX_QUEUE_REG_OFFSET))

Definition at line 41 of file rt2800pci.h.

#define TX_CTX_IDX (   __x)    (TX_CTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET))

Definition at line 43 of file rt2800pci.h.

#define TX_DTX_IDX (   __x)    (TX_DTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET))

Definition at line 44 of file rt2800pci.h.

#define TX_MAX_CNT (   __x)    (TX_MAX_CNT0 + ((__x) * TX_QUEUE_REG_OFFSET))

Definition at line 42 of file rt2800pci.h.

#define TX_QUEUE_REG_OFFSET   0x10

Definition at line 40 of file rt2800pci.h.

#define TXD_DESC_SIZE   (4 * sizeof(__le32))

Definition at line 56 of file rt2800pci.h.

#define TXD_W0_SD_PTR0   FIELD32(0xffffffff)

Definition at line 66 of file rt2800pci.h.

#define TXD_W1_BURST   FIELD32(0x00008000)

Definition at line 73 of file rt2800pci.h.

#define TXD_W1_DMA_DONE   FIELD32(0x80000000)

Definition at line 76 of file rt2800pci.h.

#define TXD_W1_LAST_SEC0   FIELD32(0x40000000)

Definition at line 75 of file rt2800pci.h.

#define TXD_W1_LAST_SEC1   FIELD32(0x00004000)

Definition at line 72 of file rt2800pci.h.

#define TXD_W1_SD_LEN0   FIELD32(0x3fff0000)

Definition at line 74 of file rt2800pci.h.

#define TXD_W1_SD_LEN1   FIELD32(0x00003fff)

Definition at line 71 of file rt2800pci.h.

#define TXD_W2_SD_PTR1   FIELD32(0xffffffff)

Definition at line 81 of file rt2800pci.h.

#define TXD_W3_ICO   FIELD32(0x80000000)

Definition at line 93 of file rt2800pci.h.

#define TXD_W3_QSEL   FIELD32(0x06000000)

Definition at line 90 of file rt2800pci.h.

#define TXD_W3_TCO   FIELD32(0x20000000)

Definition at line 91 of file rt2800pci.h.

#define TXD_W3_UCO   FIELD32(0x40000000)

Definition at line 92 of file rt2800pci.h.

#define TXD_W3_WIV   FIELD32(0x01000000)

Definition at line 89 of file rt2800pci.h.