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

Go to the source code of this file.

Macros

#define RF2522   0x0000
 
#define RF2523   0x0001
 
#define RF2524   0x0002
 
#define RF2525   0x0003
 
#define RF2525E   0x0005
 
#define RF5222   0x0010
 
#define RT2570_VERSION_B   2
 
#define RT2570_VERSION_C   3
 
#define RT2570_VERSION_D   4
 
#define DEFAULT_RSSI_OFFSET   120
 
#define CSR_REG_BASE   0x0400
 
#define CSR_REG_SIZE   0x0100
 
#define EEPROM_BASE   0x0000
 
#define EEPROM_SIZE   0x006a
 
#define BBP_BASE   0x0000
 
#define BBP_SIZE   0x0060
 
#define RF_BASE   0x0004
 
#define RF_SIZE   0x0010
 
#define NUM_TX_QUEUES   2
 
#define MAC_CSR0   0x0400
 
#define MAC_CSR1   0x0402
 
#define MAC_CSR1_SOFT_RESET   FIELD16(0x00000001)
 
#define MAC_CSR1_BBP_RESET   FIELD16(0x00000002)
 
#define MAC_CSR1_HOST_READY   FIELD16(0x00000004)
 
#define MAC_CSR2   0x0404
 
#define MAC_CSR2_BYTE0   FIELD16(0x00ff)
 
#define MAC_CSR2_BYTE1   FIELD16(0xff00)
 
#define MAC_CSR3   0x0406
 
#define MAC_CSR3_BYTE2   FIELD16(0x00ff)
 
#define MAC_CSR3_BYTE3   FIELD16(0xff00)
 
#define MAC_CSR4   0X0408
 
#define MAC_CSR4_BYTE4   FIELD16(0x00ff)
 
#define MAC_CSR4_BYTE5   FIELD16(0xff00)
 
#define MAC_CSR5   0x040a
 
#define MAC_CSR5_BYTE0   FIELD16(0x00ff)
 
#define MAC_CSR5_BYTE1   FIELD16(0xff00)
 
#define MAC_CSR6   0x040c
 
#define MAC_CSR6_BYTE2   FIELD16(0x00ff)
 
#define MAC_CSR6_BYTE3   FIELD16(0xff00)
 
#define MAC_CSR7   0x040e
 
#define MAC_CSR7_BYTE4   FIELD16(0x00ff)
 
#define MAC_CSR7_BYTE5   FIELD16(0xff00)
 
#define MAC_CSR8   0x0410
 
#define MAC_CSR8_MAX_FRAME_UNIT   FIELD16(0x0fff)
 
#define MAC_CSR9   0x0412
 
#define MAC_CSR10   0x0414
 
#define MAC_CSR11   0x0416
 
#define MAC_CSR12   0x0418
 
#define MAC_CSR13   0x041a
 
#define MAC_CSR14   0x041c
 
#define MAC_CSR15   0x041e
 
#define MAC_CSR16   0x0420
 
#define MAC_CSR17   0x0422
 
#define MAC_CSR17_SET_STATE   FIELD16(0x0001)
 
#define MAC_CSR17_BBP_DESIRE_STATE   FIELD16(0x0006)
 
#define MAC_CSR17_RF_DESIRE_STATE   FIELD16(0x0018)
 
#define MAC_CSR17_BBP_CURR_STATE   FIELD16(0x0060)
 
#define MAC_CSR17_RF_CURR_STATE   FIELD16(0x0180)
 
#define MAC_CSR17_PUT_TO_SLEEP   FIELD16(0x0200)
 
#define MAC_CSR18   0x0424
 
#define MAC_CSR18_DELAY_AFTER_BEACON   FIELD16(0x00ff)
 
#define MAC_CSR18_BEACONS_BEFORE_WAKEUP   FIELD16(0x7f00)
 
#define MAC_CSR18_AUTO_WAKE   FIELD16(0x8000)
 
#define MAC_CSR19   0x0426
 
#define MAC_CSR19_VAL0   FIELD16(0x0001)
 
#define MAC_CSR19_VAL1   FIELD16(0x0002)
 
#define MAC_CSR19_VAL2   FIELD16(0x0004)
 
#define MAC_CSR19_VAL3   FIELD16(0x0008)
 
#define MAC_CSR19_VAL4   FIELD16(0x0010)
 
#define MAC_CSR19_VAL5   FIELD16(0x0020)
 
#define MAC_CSR19_VAL6   FIELD16(0x0040)
 
#define MAC_CSR19_VAL7   FIELD16(0x0080)
 
#define MAC_CSR19_DIR0   FIELD16(0x0100)
 
#define MAC_CSR19_DIR1   FIELD16(0x0200)
 
#define MAC_CSR19_DIR2   FIELD16(0x0400)
 
#define MAC_CSR19_DIR3   FIELD16(0x0800)
 
#define MAC_CSR19_DIR4   FIELD16(0x1000)
 
#define MAC_CSR19_DIR5   FIELD16(0x2000)
 
#define MAC_CSR19_DIR6   FIELD16(0x4000)
 
#define MAC_CSR19_DIR7   FIELD16(0x8000)
 
#define MAC_CSR20   0x0428
 
#define MAC_CSR20_ACTIVITY   FIELD16(0x0001)
 
#define MAC_CSR20_LINK   FIELD16(0x0002)
 
#define MAC_CSR20_ACTIVITY_POLARITY   FIELD16(0x0004)
 
#define MAC_CSR21   0x042a
 
#define MAC_CSR21_ON_PERIOD   FIELD16(0x00ff)
 
#define MAC_CSR21_OFF_PERIOD   FIELD16(0xff00)
 
#define MAC_CSR22   0x042c
 
#define TXRX_CSR0   0x0440
 
#define TXRX_CSR0_ALGORITHM   FIELD16(0x0007)
 
#define TXRX_CSR0_IV_OFFSET   FIELD16(0x01f8)
 
#define TXRX_CSR0_KEY_ID   FIELD16(0x1e00)
 
#define TXRX_CSR1   0x0442
 
#define TXRX_CSR1_ACK_TIMEOUT   FIELD16(0x00ff)
 
#define TXRX_CSR1_TSF_OFFSET   FIELD16(0x7f00)
 
#define TXRX_CSR1_AUTO_SEQUENCE   FIELD16(0x8000)
 
#define TXRX_CSR2   0x0444
 
#define TXRX_CSR2_DISABLE_RX   FIELD16(0x0001)
 
#define TXRX_CSR2_DROP_CRC   FIELD16(0x0002)
 
#define TXRX_CSR2_DROP_PHYSICAL   FIELD16(0x0004)
 
#define TXRX_CSR2_DROP_CONTROL   FIELD16(0x0008)
 
#define TXRX_CSR2_DROP_NOT_TO_ME   FIELD16(0x0010)
 
#define TXRX_CSR2_DROP_TODS   FIELD16(0x0020)
 
#define TXRX_CSR2_DROP_VERSION_ERROR   FIELD16(0x0040)
 
#define TXRX_CSR2_DROP_MULTICAST   FIELD16(0x0200)
 
#define TXRX_CSR2_DROP_BROADCAST   FIELD16(0x0400)
 
#define TXRX_CSR3   0x0446
 
#define TXRX_CSR4   0x0448
 
#define TXRX_CSR5   0x044a
 
#define TXRX_CSR5_BBP_ID0   FIELD16(0x007f)
 
#define TXRX_CSR5_BBP_ID0_VALID   FIELD16(0x0080)
 
#define TXRX_CSR5_BBP_ID1   FIELD16(0x7f00)
 
#define TXRX_CSR5_BBP_ID1_VALID   FIELD16(0x8000)
 
#define TXRX_CSR6   0x044c
 
#define TXRX_CSR6_BBP_ID0   FIELD16(0x007f)
 
#define TXRX_CSR6_BBP_ID0_VALID   FIELD16(0x0080)
 
#define TXRX_CSR6_BBP_ID1   FIELD16(0x7f00)
 
#define TXRX_CSR6_BBP_ID1_VALID   FIELD16(0x8000)
 
#define TXRX_CSR7   0x044e
 
#define TXRX_CSR7_BBP_ID0   FIELD16(0x007f)
 
#define TXRX_CSR7_BBP_ID0_VALID   FIELD16(0x0080)
 
#define TXRX_CSR7_BBP_ID1   FIELD16(0x7f00)
 
#define TXRX_CSR7_BBP_ID1_VALID   FIELD16(0x8000)
 
#define TXRX_CSR8   0x0450
 
#define TXRX_CSR8_BBP_ID0   FIELD16(0x007f)
 
#define TXRX_CSR8_BBP_ID0_VALID   FIELD16(0x0080)
 
#define TXRX_CSR8_BBP_ID1   FIELD16(0x7f00)
 
#define TXRX_CSR8_BBP_ID1_VALID   FIELD16(0x8000)
 
#define TXRX_CSR9   0x0452
 
#define TXRX_CSR10   0x0454
 
#define TXRX_CSR10_AUTORESPOND_PREAMBLE   FIELD16(0x0004)
 
#define TXRX_CSR11   0x0456
 
#define TXRX_CSR12   0x0458
 
#define TXRX_CSR13   0x045a
 
#define TXRX_CSR14   0x045c
 
#define TXRX_CSR15   0x045e
 
#define TXRX_CSR16   0x0460
 
#define TXRX_CSR17   0x0462
 
#define TXRX_CSR18   0x0464
 
#define TXRX_CSR18_OFFSET   FIELD16(0x000f)
 
#define TXRX_CSR18_INTERVAL   FIELD16(0xfff0)
 
#define TXRX_CSR19   0x0466
 
#define TXRX_CSR19_TSF_COUNT   FIELD16(0x0001)
 
#define TXRX_CSR19_TSF_SYNC   FIELD16(0x0006)
 
#define TXRX_CSR19_TBCN   FIELD16(0x0008)
 
#define TXRX_CSR19_BEACON_GEN   FIELD16(0x0010)
 
#define TXRX_CSR20   0x0468
 
#define TXRX_CSR20_OFFSET   FIELD16(0x1fff)
 
#define TXRX_CSR20_BCN_EXPECT_WINDOW   FIELD16(0xe000)
 
#define TXRX_CSR21   0x046a
 
#define SEC_CSR0   0x0480
 
#define SEC_CSR1   0x0482
 
#define SEC_CSR2   0x0484
 
#define SEC_CSR3   0x0486
 
#define SEC_CSR4   0x0488
 
#define SEC_CSR5   0x048a
 
#define SEC_CSR6   0x048c
 
#define SEC_CSR7   0x048e
 
#define SEC_CSR8   0x0490
 
#define SEC_CSR9   0x0492
 
#define SEC_CSR10   0x0494
 
#define SEC_CSR11   0x0496
 
#define SEC_CSR12   0x0498
 
#define SEC_CSR13   0x049a
 
#define SEC_CSR14   0x049c
 
#define SEC_CSR15   0x049e
 
#define SEC_CSR16   0x04a0
 
#define SEC_CSR17   0x04a2
 
#define SEC_CSR18   0X04A4
 
#define SEC_CSR19   0x04a6
 
#define SEC_CSR20   0x04a8
 
#define SEC_CSR21   0x04aa
 
#define SEC_CSR22   0x04ac
 
#define SEC_CSR23   0x04ae
 
#define SEC_CSR24   0x04b0
 
#define SEC_CSR25   0x04b2
 
#define SEC_CSR26   0x04b4
 
#define SEC_CSR27   0x04b6
 
#define SEC_CSR28   0x04b8
 
#define SEC_CSR29   0x04ba
 
#define SEC_CSR30   0x04bc
 
#define SEC_CSR31   0x04be
 
#define KEY_ENTRY(__idx)   ( SEC_CSR0 + ((__idx) * 16) )
 
#define PHY_CSR0   0x04c0
 
#define PHY_CSR1   0x04c2
 
#define PHY_CSR2   0x04c4
 
#define PHY_CSR2_LNA   FIELD16(0x0002)
 
#define PHY_CSR2_LNA_MODE   FIELD16(0x3000)
 
#define PHY_CSR3   0x04c6
 
#define PHY_CSR4   0x04c8
 
#define PHY_CSR4_LOW_RF_LE   FIELD16(0x0001)
 
#define PHY_CSR5   0x04ca
 
#define PHY_CSR5_CCK   FIELD16(0x0003)
 
#define PHY_CSR5_CCK_FLIP   FIELD16(0x0004)
 
#define PHY_CSR6   0x04cc
 
#define PHY_CSR6_OFDM   FIELD16(0x0003)
 
#define PHY_CSR6_OFDM_FLIP   FIELD16(0x0004)
 
#define PHY_CSR7   0x04ce
 
#define PHY_CSR7_DATA   FIELD16(0x00ff)
 
#define PHY_CSR7_REG_ID   FIELD16(0x7f00)
 
#define PHY_CSR7_READ_CONTROL   FIELD16(0x8000)
 
#define PHY_CSR8   0x04d0
 
#define PHY_CSR8_BUSY   FIELD16(0x0001)
 
#define PHY_CSR9   0x04d2
 
#define PHY_CSR9_RF_VALUE   FIELD16(0xffff)
 
#define PHY_CSR10   0x04d4
 
#define PHY_CSR10_RF_VALUE   FIELD16(0x00ff)
 
#define PHY_CSR10_RF_NUMBER_OF_BITS   FIELD16(0x1f00)
 
#define PHY_CSR10_RF_IF_SELECT   FIELD16(0x2000)
 
#define PHY_CSR10_RF_PLL_LD   FIELD16(0x4000)
 
#define PHY_CSR10_RF_BUSY   FIELD16(0x8000)
 
#define STA_CSR0   0x04e0
 
#define STA_CSR0_FCS_ERROR   FIELD16(0xffff)
 
#define STA_CSR1   0x04e2
 
#define STA_CSR2   0x04e4
 
#define STA_CSR3   0x04e6
 
#define STA_CSR3_FALSE_CCA_ERROR   FIELD16(0xffff)
 
#define STA_CSR4   0x04e8
 
#define STA_CSR5   0x04ea
 
#define STA_CSR6   0x04ec
 
#define STA_CSR7   0x04ee
 
#define STA_CSR8   0x04f0
 
#define STA_CSR9   0x04f2
 
#define STA_CSR10   0x04f4
 
#define BBP_R2_TX_ANTENNA   FIELD8(0x03)
 
#define BBP_R2_TX_IQ_FLIP   FIELD8(0x04)
 
#define BBP_R14_RX_ANTENNA   FIELD8(0x03)
 
#define BBP_R14_RX_IQ_FLIP   FIELD8(0x04)
 
#define RF1_TUNER   FIELD32(0x00020000)
 
#define RF3_TUNER   FIELD32(0x00000100)
 
#define RF3_TXPOWER   FIELD32(0x00003e00)
 
#define EEPROM_MAC_ADDR_0   0x0002
 
#define EEPROM_MAC_ADDR_BYTE0   FIELD16(0x00ff)
 
#define EEPROM_MAC_ADDR_BYTE1   FIELD16(0xff00)
 
#define EEPROM_MAC_ADDR1   0x0003
 
#define EEPROM_MAC_ADDR_BYTE2   FIELD16(0x00ff)
 
#define EEPROM_MAC_ADDR_BYTE3   FIELD16(0xff00)
 
#define EEPROM_MAC_ADDR_2   0x0004
 
#define EEPROM_MAC_ADDR_BYTE4   FIELD16(0x00ff)
 
#define EEPROM_MAC_ADDR_BYTE5   FIELD16(0xff00)
 
#define EEPROM_ANTENNA   0x000b
 
#define EEPROM_ANTENNA_NUM   FIELD16(0x0003)
 
#define EEPROM_ANTENNA_TX_DEFAULT   FIELD16(0x000c)
 
#define EEPROM_ANTENNA_RX_DEFAULT   FIELD16(0x0030)
 
#define EEPROM_ANTENNA_LED_MODE   FIELD16(0x01c0)
 
#define EEPROM_ANTENNA_DYN_TXAGC   FIELD16(0x0200)
 
#define EEPROM_ANTENNA_HARDWARE_RADIO   FIELD16(0x0400)
 
#define EEPROM_ANTENNA_RF_TYPE   FIELD16(0xf800)
 
#define EEPROM_NIC   0x000c
 
#define EEPROM_NIC_CARDBUS_ACCEL   FIELD16(0x0001)
 
#define EEPROM_NIC_DYN_BBP_TUNE   FIELD16(0x0002)
 
#define EEPROM_NIC_CCK_TX_POWER   FIELD16(0x000c)
 
#define EEPROM_GEOGRAPHY   0x000d
 
#define EEPROM_GEOGRAPHY_GEO   FIELD16(0x0f00)
 
#define EEPROM_BBP_START   0x000e
 
#define EEPROM_BBP_SIZE   16
 
#define EEPROM_BBP_VALUE   FIELD16(0x00ff)
 
#define EEPROM_BBP_REG_ID   FIELD16(0xff00)
 
#define EEPROM_TXPOWER_START   0x001e
 
#define EEPROM_TXPOWER_SIZE   7
 
#define EEPROM_TXPOWER_1   FIELD16(0x00ff)
 
#define EEPROM_TXPOWER_2   FIELD16(0xff00)
 
#define EEPROM_BBPTUNE   0x0030
 
#define EEPROM_BBPTUNE_THRESHOLD   FIELD16(0x00ff)
 
#define EEPROM_BBPTUNE_R24   0x0031
 
#define EEPROM_BBPTUNE_R24_LOW   FIELD16(0x00ff)
 
#define EEPROM_BBPTUNE_R24_HIGH   FIELD16(0xff00)
 
#define EEPROM_BBPTUNE_R25   0x0032
 
#define EEPROM_BBPTUNE_R25_LOW   FIELD16(0x00ff)
 
#define EEPROM_BBPTUNE_R25_HIGH   FIELD16(0xff00)
 
#define EEPROM_BBPTUNE_R61   0x0033
 
#define EEPROM_BBPTUNE_R61_LOW   FIELD16(0x00ff)
 
#define EEPROM_BBPTUNE_R61_HIGH   FIELD16(0xff00)
 
#define EEPROM_BBPTUNE_VGC   0x0034
 
#define EEPROM_BBPTUNE_VGCUPPER   FIELD16(0x00ff)
 
#define EEPROM_BBPTUNE_VGCLOWER   FIELD16(0xff00)
 
#define EEPROM_BBPTUNE_R17   0x0035
 
#define EEPROM_BBPTUNE_R17_LOW   FIELD16(0x00ff)
 
#define EEPROM_BBPTUNE_R17_HIGH   FIELD16(0xff00)
 
#define EEPROM_CALIBRATE_OFFSET   0x0036
 
#define EEPROM_CALIBRATE_OFFSET_RSSI   FIELD16(0x00ff)
 
#define TXD_DESC_SIZE   ( 5 * sizeof(__le32) )
 
#define RXD_DESC_SIZE   ( 4 * sizeof(__le32) )
 
#define TXD_W0_PACKET_ID   FIELD32(0x0000000f)
 
#define TXD_W0_RETRY_LIMIT   FIELD32(0x000000f0)
 
#define TXD_W0_MORE_FRAG   FIELD32(0x00000100)
 
#define TXD_W0_ACK   FIELD32(0x00000200)
 
#define TXD_W0_TIMESTAMP   FIELD32(0x00000400)
 
#define TXD_W0_OFDM   FIELD32(0x00000800)
 
#define TXD_W0_NEW_SEQ   FIELD32(0x00001000)
 
#define TXD_W0_IFS   FIELD32(0x00006000)
 
#define TXD_W0_DATABYTE_COUNT   FIELD32(0x0fff0000)
 
#define TXD_W0_CIPHER   FIELD32(0x20000000)
 
#define TXD_W0_KEY_ID   FIELD32(0xc0000000)
 
#define TXD_W1_IV_OFFSET   FIELD32(0x0000003f)
 
#define TXD_W1_AIFS   FIELD32(0x000000c0)
 
#define TXD_W1_CWMIN   FIELD32(0x00000f00)
 
#define TXD_W1_CWMAX   FIELD32(0x0000f000)
 
#define TXD_W2_PLCP_SIGNAL   FIELD32(0x000000ff)
 
#define TXD_W2_PLCP_SERVICE   FIELD32(0x0000ff00)
 
#define TXD_W2_PLCP_LENGTH_LOW   FIELD32(0x00ff0000)
 
#define TXD_W2_PLCP_LENGTH_HIGH   FIELD32(0xff000000)
 
#define TXD_W3_IV   FIELD32(0xffffffff)
 
#define TXD_W4_EIV   FIELD32(0xffffffff)
 
#define RXD_W0_UNICAST_TO_ME   FIELD32(0x00000002)
 
#define RXD_W0_MULTICAST   FIELD32(0x00000004)
 
#define RXD_W0_BROADCAST   FIELD32(0x00000008)
 
#define RXD_W0_MY_BSS   FIELD32(0x00000010)
 
#define RXD_W0_CRC_ERROR   FIELD32(0x00000020)
 
#define RXD_W0_OFDM   FIELD32(0x00000040)
 
#define RXD_W0_PHYSICAL_ERROR   FIELD32(0x00000080)
 
#define RXD_W0_CIPHER   FIELD32(0x00000100)
 
#define RXD_W0_CIPHER_ERROR   FIELD32(0x00000200)
 
#define RXD_W0_DATABYTE_COUNT   FIELD32(0x0fff0000)
 
#define RXD_W1_RSSI   FIELD32(0x000000ff)
 
#define RXD_W1_SIGNAL   FIELD32(0x0000ff00)
 
#define RXD_W2_IV   FIELD32(0xffffffff)
 
#define RXD_W3_EIV   FIELD32(0xffffffff)
 
#define MIN_TXPOWER   0
 
#define MAX_TXPOWER   31
 
#define DEFAULT_TXPOWER   24
 
#define TXPOWER_FROM_DEV(__txpower)   (((u8)(__txpower)) > MAX_TXPOWER) ? DEFAULT_TXPOWER : (__txpower)
 
#define TXPOWER_TO_DEV(__txpower)   clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)
 

Macro Definition Documentation

#define BBP_BASE   0x0000

Definition at line 60 of file rt2500usb.h.

#define BBP_R14_RX_ANTENNA   FIELD8(0x03)

Definition at line 623 of file rt2500usb.h.

#define BBP_R14_RX_IQ_FLIP   FIELD8(0x04)

Definition at line 624 of file rt2500usb.h.

#define BBP_R2_TX_ANTENNA   FIELD8(0x03)

Definition at line 617 of file rt2500usb.h.

#define BBP_R2_TX_IQ_FLIP   FIELD8(0x04)

Definition at line 618 of file rt2500usb.h.

#define BBP_SIZE   0x0060

Definition at line 61 of file rt2500usb.h.

#define CSR_REG_BASE   0x0400

Definition at line 56 of file rt2500usb.h.

#define CSR_REG_SIZE   0x0100

Definition at line 57 of file rt2500usb.h.

#define DEFAULT_RSSI_OFFSET   120

Definition at line 51 of file rt2500usb.h.

#define DEFAULT_TXPOWER   24

Definition at line 849 of file rt2500usb.h.

#define EEPROM_ANTENNA   0x000b

Definition at line 668 of file rt2500usb.h.

#define EEPROM_ANTENNA_DYN_TXAGC   FIELD16(0x0200)

Definition at line 673 of file rt2500usb.h.

#define EEPROM_ANTENNA_HARDWARE_RADIO   FIELD16(0x0400)

Definition at line 674 of file rt2500usb.h.

#define EEPROM_ANTENNA_LED_MODE   FIELD16(0x01c0)

Definition at line 672 of file rt2500usb.h.

#define EEPROM_ANTENNA_NUM   FIELD16(0x0003)

Definition at line 669 of file rt2500usb.h.

#define EEPROM_ANTENNA_RF_TYPE   FIELD16(0xf800)

Definition at line 675 of file rt2500usb.h.

#define EEPROM_ANTENNA_RX_DEFAULT   FIELD16(0x0030)

Definition at line 671 of file rt2500usb.h.

#define EEPROM_ANTENNA_TX_DEFAULT   FIELD16(0x000c)

Definition at line 670 of file rt2500usb.h.

#define EEPROM_BASE   0x0000

Definition at line 58 of file rt2500usb.h.

#define EEPROM_BBP_REG_ID   FIELD16(0xff00)

Definition at line 701 of file rt2500usb.h.

#define EEPROM_BBP_SIZE   16

Definition at line 699 of file rt2500usb.h.

#define EEPROM_BBP_START   0x000e

Definition at line 698 of file rt2500usb.h.

#define EEPROM_BBP_VALUE   FIELD16(0x00ff)

Definition at line 700 of file rt2500usb.h.

#define EEPROM_BBPTUNE   0x0030

Definition at line 714 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R17   0x0035

Definition at line 748 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R17_HIGH   FIELD16(0xff00)

Definition at line 750 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R17_LOW   FIELD16(0x00ff)

Definition at line 749 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R24   0x0031

Definition at line 720 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R24_HIGH   FIELD16(0xff00)

Definition at line 722 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R24_LOW   FIELD16(0x00ff)

Definition at line 721 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R25   0x0032

Definition at line 727 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R25_HIGH   FIELD16(0xff00)

Definition at line 729 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R25_LOW   FIELD16(0x00ff)

Definition at line 728 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R61   0x0033

Definition at line 734 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R61_HIGH   FIELD16(0xff00)

Definition at line 736 of file rt2500usb.h.

#define EEPROM_BBPTUNE_R61_LOW   FIELD16(0x00ff)

Definition at line 735 of file rt2500usb.h.

#define EEPROM_BBPTUNE_THRESHOLD   FIELD16(0x00ff)

Definition at line 715 of file rt2500usb.h.

#define EEPROM_BBPTUNE_VGC   0x0034

Definition at line 741 of file rt2500usb.h.

#define EEPROM_BBPTUNE_VGCLOWER   FIELD16(0xff00)

Definition at line 743 of file rt2500usb.h.

#define EEPROM_BBPTUNE_VGCUPPER   FIELD16(0x00ff)

Definition at line 742 of file rt2500usb.h.

#define EEPROM_CALIBRATE_OFFSET   0x0036

Definition at line 755 of file rt2500usb.h.

#define EEPROM_CALIBRATE_OFFSET_RSSI   FIELD16(0x00ff)

Definition at line 756 of file rt2500usb.h.

#define EEPROM_GEOGRAPHY   0x000d

Definition at line 692 of file rt2500usb.h.

#define EEPROM_GEOGRAPHY_GEO   FIELD16(0x0f00)

Definition at line 693 of file rt2500usb.h.

#define EEPROM_MAC_ADDR1   0x0003

Definition at line 651 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_0   0x0002

Definition at line 648 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_2   0x0004

Definition at line 654 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_BYTE0   FIELD16(0x00ff)

Definition at line 649 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_BYTE1   FIELD16(0xff00)

Definition at line 650 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_BYTE2   FIELD16(0x00ff)

Definition at line 652 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_BYTE3   FIELD16(0xff00)

Definition at line 653 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_BYTE4   FIELD16(0x00ff)

Definition at line 655 of file rt2500usb.h.

#define EEPROM_MAC_ADDR_BYTE5   FIELD16(0xff00)

Definition at line 656 of file rt2500usb.h.

#define EEPROM_NIC   0x000c

Definition at line 683 of file rt2500usb.h.

#define EEPROM_NIC_CARDBUS_ACCEL   FIELD16(0x0001)

Definition at line 684 of file rt2500usb.h.

#define EEPROM_NIC_CCK_TX_POWER   FIELD16(0x000c)

Definition at line 686 of file rt2500usb.h.

#define EEPROM_NIC_DYN_BBP_TUNE   FIELD16(0x0002)

Definition at line 685 of file rt2500usb.h.

#define EEPROM_SIZE   0x006a

Definition at line 59 of file rt2500usb.h.

#define EEPROM_TXPOWER_1   FIELD16(0x00ff)

Definition at line 708 of file rt2500usb.h.

#define EEPROM_TXPOWER_2   FIELD16(0xff00)

Definition at line 709 of file rt2500usb.h.

#define EEPROM_TXPOWER_SIZE   7

Definition at line 707 of file rt2500usb.h.

#define EEPROM_TXPOWER_START   0x001e

Definition at line 706 of file rt2500usb.h.

#define KEY_ENTRY (   __idx)    ( SEC_CSR0 + ((__idx) * 16) )

Definition at line 468 of file rt2500usb.h.

#define MAC_CSR0   0x0400

Definition at line 78 of file rt2500usb.h.

#define MAC_CSR1   0x0402

Definition at line 86 of file rt2500usb.h.

#define MAC_CSR10   0x0414

Definition at line 151 of file rt2500usb.h.

#define MAC_CSR11   0x0416

Definition at line 152 of file rt2500usb.h.

#define MAC_CSR12   0x0418

Definition at line 153 of file rt2500usb.h.

#define MAC_CSR13   0x041a

Definition at line 154 of file rt2500usb.h.

#define MAC_CSR14   0x041c

Definition at line 155 of file rt2500usb.h.

#define MAC_CSR15   0x041e

Definition at line 156 of file rt2500usb.h.

#define MAC_CSR16   0x0420

Definition at line 157 of file rt2500usb.h.

#define MAC_CSR17   0x0422

Definition at line 169 of file rt2500usb.h.

#define MAC_CSR17_BBP_CURR_STATE   FIELD16(0x0060)

Definition at line 173 of file rt2500usb.h.

#define MAC_CSR17_BBP_DESIRE_STATE   FIELD16(0x0006)

Definition at line 171 of file rt2500usb.h.

#define MAC_CSR17_PUT_TO_SLEEP   FIELD16(0x0200)

Definition at line 175 of file rt2500usb.h.

#define MAC_CSR17_RF_CURR_STATE   FIELD16(0x0180)

Definition at line 174 of file rt2500usb.h.

#define MAC_CSR17_RF_DESIRE_STATE   FIELD16(0x0018)

Definition at line 172 of file rt2500usb.h.

#define MAC_CSR17_SET_STATE   FIELD16(0x0001)

Definition at line 170 of file rt2500usb.h.

#define MAC_CSR18   0x0424

Definition at line 183 of file rt2500usb.h.

#define MAC_CSR18_AUTO_WAKE   FIELD16(0x8000)

Definition at line 186 of file rt2500usb.h.

#define MAC_CSR18_BEACONS_BEFORE_WAKEUP   FIELD16(0x7f00)

Definition at line 185 of file rt2500usb.h.

#define MAC_CSR18_DELAY_AFTER_BEACON   FIELD16(0x00ff)

Definition at line 184 of file rt2500usb.h.

#define MAC_CSR19   0x0426

Definition at line 193 of file rt2500usb.h.

#define MAC_CSR19_DIR0   FIELD16(0x0100)

Definition at line 202 of file rt2500usb.h.

#define MAC_CSR19_DIR1   FIELD16(0x0200)

Definition at line 203 of file rt2500usb.h.

#define MAC_CSR19_DIR2   FIELD16(0x0400)

Definition at line 204 of file rt2500usb.h.

#define MAC_CSR19_DIR3   FIELD16(0x0800)

Definition at line 205 of file rt2500usb.h.

#define MAC_CSR19_DIR4   FIELD16(0x1000)

Definition at line 206 of file rt2500usb.h.

#define MAC_CSR19_DIR5   FIELD16(0x2000)

Definition at line 207 of file rt2500usb.h.

#define MAC_CSR19_DIR6   FIELD16(0x4000)

Definition at line 208 of file rt2500usb.h.

#define MAC_CSR19_DIR7   FIELD16(0x8000)

Definition at line 209 of file rt2500usb.h.

#define MAC_CSR19_VAL0   FIELD16(0x0001)

Definition at line 194 of file rt2500usb.h.

#define MAC_CSR19_VAL1   FIELD16(0x0002)

Definition at line 195 of file rt2500usb.h.

#define MAC_CSR19_VAL2   FIELD16(0x0004)

Definition at line 196 of file rt2500usb.h.

#define MAC_CSR19_VAL3   FIELD16(0x0008)

Definition at line 197 of file rt2500usb.h.

#define MAC_CSR19_VAL4   FIELD16(0x0010)

Definition at line 198 of file rt2500usb.h.

#define MAC_CSR19_VAL5   FIELD16(0x0020)

Definition at line 199 of file rt2500usb.h.

#define MAC_CSR19_VAL6   FIELD16(0x0040)

Definition at line 200 of file rt2500usb.h.

#define MAC_CSR19_VAL7   FIELD16(0x0080)

Definition at line 201 of file rt2500usb.h.

#define MAC_CSR1_BBP_RESET   FIELD16(0x00000002)

Definition at line 88 of file rt2500usb.h.

#define MAC_CSR1_HOST_READY   FIELD16(0x00000004)

Definition at line 89 of file rt2500usb.h.

#define MAC_CSR1_SOFT_RESET   FIELD16(0x00000001)

Definition at line 87 of file rt2500usb.h.

#define MAC_CSR2   0x0404

Definition at line 94 of file rt2500usb.h.

#define MAC_CSR20   0x0428

Definition at line 217 of file rt2500usb.h.

#define MAC_CSR20_ACTIVITY   FIELD16(0x0001)

Definition at line 218 of file rt2500usb.h.

#define MAC_CSR20_ACTIVITY_POLARITY   FIELD16(0x0004)

Definition at line 220 of file rt2500usb.h.

#define MAC_CSR20_LINK   FIELD16(0x0002)

Definition at line 219 of file rt2500usb.h.

#define MAC_CSR21   0x042a

Definition at line 227 of file rt2500usb.h.

#define MAC_CSR21_OFF_PERIOD   FIELD16(0xff00)

Definition at line 229 of file rt2500usb.h.

#define MAC_CSR21_ON_PERIOD   FIELD16(0x00ff)

Definition at line 228 of file rt2500usb.h.

#define MAC_CSR22   0x042c

Definition at line 234 of file rt2500usb.h.

#define MAC_CSR2_BYTE0   FIELD16(0x00ff)

Definition at line 95 of file rt2500usb.h.

#define MAC_CSR2_BYTE1   FIELD16(0xff00)

Definition at line 96 of file rt2500usb.h.

#define MAC_CSR3   0x0406

Definition at line 101 of file rt2500usb.h.

#define MAC_CSR3_BYTE2   FIELD16(0x00ff)

Definition at line 102 of file rt2500usb.h.

#define MAC_CSR3_BYTE3   FIELD16(0xff00)

Definition at line 103 of file rt2500usb.h.

#define MAC_CSR4   0X0408

Definition at line 108 of file rt2500usb.h.

#define MAC_CSR4_BYTE4   FIELD16(0x00ff)

Definition at line 109 of file rt2500usb.h.

#define MAC_CSR4_BYTE5   FIELD16(0xff00)

Definition at line 110 of file rt2500usb.h.

#define MAC_CSR5   0x040a

Definition at line 115 of file rt2500usb.h.

#define MAC_CSR5_BYTE0   FIELD16(0x00ff)

Definition at line 116 of file rt2500usb.h.

#define MAC_CSR5_BYTE1   FIELD16(0xff00)

Definition at line 117 of file rt2500usb.h.

#define MAC_CSR6   0x040c

Definition at line 122 of file rt2500usb.h.

#define MAC_CSR6_BYTE2   FIELD16(0x00ff)

Definition at line 123 of file rt2500usb.h.

#define MAC_CSR6_BYTE3   FIELD16(0xff00)

Definition at line 124 of file rt2500usb.h.

#define MAC_CSR7   0x040e

Definition at line 129 of file rt2500usb.h.

#define MAC_CSR7_BYTE4   FIELD16(0x00ff)

Definition at line 130 of file rt2500usb.h.

#define MAC_CSR7_BYTE5   FIELD16(0xff00)

Definition at line 131 of file rt2500usb.h.

#define MAC_CSR8   0x0410

Definition at line 136 of file rt2500usb.h.

#define MAC_CSR8_MAX_FRAME_UNIT   FIELD16(0x0fff)

Definition at line 137 of file rt2500usb.h.

#define MAC_CSR9   0x0412

Definition at line 150 of file rt2500usb.h.

#define MAX_TXPOWER   31

Definition at line 848 of file rt2500usb.h.

#define MIN_TXPOWER   0

Definition at line 847 of file rt2500usb.h.

#define NUM_TX_QUEUES   2

Definition at line 68 of file rt2500usb.h.

#define PHY_CSR0   0x04c0

Definition at line 478 of file rt2500usb.h.

#define PHY_CSR1   0x04c2

Definition at line 483 of file rt2500usb.h.

#define PHY_CSR10   0x04d4

Definition at line 559 of file rt2500usb.h.

#define PHY_CSR10_RF_BUSY   FIELD16(0x8000)

Definition at line 564 of file rt2500usb.h.

#define PHY_CSR10_RF_IF_SELECT   FIELD16(0x2000)

Definition at line 562 of file rt2500usb.h.

#define PHY_CSR10_RF_NUMBER_OF_BITS   FIELD16(0x1f00)

Definition at line 561 of file rt2500usb.h.

#define PHY_CSR10_RF_PLL_LD   FIELD16(0x4000)

Definition at line 563 of file rt2500usb.h.

#define PHY_CSR10_RF_VALUE   FIELD16(0x00ff)

Definition at line 560 of file rt2500usb.h.

#define PHY_CSR2   0x04c4

Definition at line 495 of file rt2500usb.h.

#define PHY_CSR2_LNA   FIELD16(0x0002)

Definition at line 496 of file rt2500usb.h.

#define PHY_CSR2_LNA_MODE   FIELD16(0x3000)

Definition at line 497 of file rt2500usb.h.

#define PHY_CSR3   0x04c6

Definition at line 502 of file rt2500usb.h.

#define PHY_CSR4   0x04c8

Definition at line 507 of file rt2500usb.h.

#define PHY_CSR4_LOW_RF_LE   FIELD16(0x0001)

Definition at line 508 of file rt2500usb.h.

#define PHY_CSR5   0x04ca

Definition at line 514 of file rt2500usb.h.

#define PHY_CSR5_CCK   FIELD16(0x0003)

Definition at line 515 of file rt2500usb.h.

#define PHY_CSR5_CCK_FLIP   FIELD16(0x0004)

Definition at line 516 of file rt2500usb.h.

#define PHY_CSR6   0x04cc

Definition at line 522 of file rt2500usb.h.

#define PHY_CSR6_OFDM   FIELD16(0x0003)

Definition at line 523 of file rt2500usb.h.

#define PHY_CSR6_OFDM_FLIP   FIELD16(0x0004)

Definition at line 524 of file rt2500usb.h.

#define PHY_CSR7   0x04ce

Definition at line 532 of file rt2500usb.h.

#define PHY_CSR7_DATA   FIELD16(0x00ff)

Definition at line 533 of file rt2500usb.h.

#define PHY_CSR7_READ_CONTROL   FIELD16(0x8000)

Definition at line 535 of file rt2500usb.h.

#define PHY_CSR7_REG_ID   FIELD16(0x7f00)

Definition at line 534 of file rt2500usb.h.

#define PHY_CSR8   0x04d0

Definition at line 541 of file rt2500usb.h.

#define PHY_CSR8_BUSY   FIELD16(0x0001)

Definition at line 542 of file rt2500usb.h.

#define PHY_CSR9   0x04d2

Definition at line 548 of file rt2500usb.h.

#define PHY_CSR9_RF_VALUE   FIELD16(0xffff)

Definition at line 549 of file rt2500usb.h.

#define RF1_TUNER   FIELD32(0x00020000)

Definition at line 633 of file rt2500usb.h.

#define RF2522   0x0000

Definition at line 33 of file rt2500usb.h.

#define RF2523   0x0001

Definition at line 34 of file rt2500usb.h.

#define RF2524   0x0002

Definition at line 35 of file rt2500usb.h.

#define RF2525   0x0003

Definition at line 36 of file rt2500usb.h.

#define RF2525E   0x0005

Definition at line 37 of file rt2500usb.h.

#define RF3_TUNER   FIELD32(0x00000100)

Definition at line 638 of file rt2500usb.h.

#define RF3_TXPOWER   FIELD32(0x00003e00)

Definition at line 639 of file rt2500usb.h.

#define RF5222   0x0010

Definition at line 38 of file rt2500usb.h.

#define RF_BASE   0x0004

Definition at line 62 of file rt2500usb.h.

#define RF_SIZE   0x0010

Definition at line 63 of file rt2500usb.h.

#define RT2570_VERSION_B   2

Definition at line 43 of file rt2500usb.h.

#define RT2570_VERSION_C   3

Definition at line 44 of file rt2500usb.h.

#define RT2570_VERSION_D   4

Definition at line 45 of file rt2500usb.h.

#define RXD_DESC_SIZE   ( 4 * sizeof(__le32) )

Definition at line 762 of file rt2500usb.h.

#define RXD_W0_BROADCAST   FIELD32(0x00000008)

Definition at line 818 of file rt2500usb.h.

#define RXD_W0_CIPHER   FIELD32(0x00000100)

Definition at line 823 of file rt2500usb.h.

#define RXD_W0_CIPHER_ERROR   FIELD32(0x00000200)

Definition at line 824 of file rt2500usb.h.

#define RXD_W0_CRC_ERROR   FIELD32(0x00000020)

Definition at line 820 of file rt2500usb.h.

#define RXD_W0_DATABYTE_COUNT   FIELD32(0x0fff0000)

Definition at line 825 of file rt2500usb.h.

#define RXD_W0_MULTICAST   FIELD32(0x00000004)

Definition at line 817 of file rt2500usb.h.

#define RXD_W0_MY_BSS   FIELD32(0x00000010)

Definition at line 819 of file rt2500usb.h.

#define RXD_W0_OFDM   FIELD32(0x00000040)

Definition at line 821 of file rt2500usb.h.

#define RXD_W0_PHYSICAL_ERROR   FIELD32(0x00000080)

Definition at line 822 of file rt2500usb.h.

#define RXD_W0_UNICAST_TO_ME   FIELD32(0x00000002)

Definition at line 816 of file rt2500usb.h.

#define RXD_W1_RSSI   FIELD32(0x000000ff)

Definition at line 830 of file rt2500usb.h.

#define RXD_W1_SIGNAL   FIELD32(0x0000ff00)

Definition at line 831 of file rt2500usb.h.

#define RXD_W2_IV   FIELD32(0xffffffff)

Definition at line 836 of file rt2500usb.h.

#define RXD_W3_EIV   FIELD32(0xffffffff)

Definition at line 841 of file rt2500usb.h.

#define SEC_CSR0   0x0480

Definition at line 402 of file rt2500usb.h.

#define SEC_CSR1   0x0482

Definition at line 403 of file rt2500usb.h.

#define SEC_CSR10   0x0494

Definition at line 423 of file rt2500usb.h.

#define SEC_CSR11   0x0496

Definition at line 424 of file rt2500usb.h.

#define SEC_CSR12   0x0498

Definition at line 425 of file rt2500usb.h.

#define SEC_CSR13   0x049a

Definition at line 426 of file rt2500usb.h.

#define SEC_CSR14   0x049c

Definition at line 427 of file rt2500usb.h.

#define SEC_CSR15   0x049e

Definition at line 428 of file rt2500usb.h.

#define SEC_CSR16   0x04a0

Definition at line 440 of file rt2500usb.h.

#define SEC_CSR17   0x04a2

Definition at line 441 of file rt2500usb.h.

#define SEC_CSR18   0X04A4

Definition at line 442 of file rt2500usb.h.

#define SEC_CSR19   0x04a6

Definition at line 443 of file rt2500usb.h.

#define SEC_CSR2   0x0484

Definition at line 404 of file rt2500usb.h.

#define SEC_CSR20   0x04a8

Definition at line 444 of file rt2500usb.h.

#define SEC_CSR21   0x04aa

Definition at line 445 of file rt2500usb.h.

#define SEC_CSR22   0x04ac

Definition at line 446 of file rt2500usb.h.

#define SEC_CSR23   0x04ae

Definition at line 447 of file rt2500usb.h.

#define SEC_CSR24   0x04b0

Definition at line 459 of file rt2500usb.h.

#define SEC_CSR25   0x04b2

Definition at line 460 of file rt2500usb.h.

#define SEC_CSR26   0x04b4

Definition at line 461 of file rt2500usb.h.

#define SEC_CSR27   0x04b6

Definition at line 462 of file rt2500usb.h.

#define SEC_CSR28   0x04b8

Definition at line 463 of file rt2500usb.h.

#define SEC_CSR29   0x04ba

Definition at line 464 of file rt2500usb.h.

#define SEC_CSR3   0x0486

Definition at line 405 of file rt2500usb.h.

#define SEC_CSR30   0x04bc

Definition at line 465 of file rt2500usb.h.

#define SEC_CSR31   0x04be

Definition at line 466 of file rt2500usb.h.

#define SEC_CSR4   0x0488

Definition at line 406 of file rt2500usb.h.

#define SEC_CSR5   0x048a

Definition at line 407 of file rt2500usb.h.

#define SEC_CSR6   0x048c

Definition at line 408 of file rt2500usb.h.

#define SEC_CSR7   0x048e

Definition at line 409 of file rt2500usb.h.

#define SEC_CSR8   0x0490

Definition at line 421 of file rt2500usb.h.

#define SEC_CSR9   0x0492

Definition at line 422 of file rt2500usb.h.

#define STA_CSR0   0x04e0

Definition at line 570 of file rt2500usb.h.

#define STA_CSR0_FCS_ERROR   FIELD16(0xffff)

Definition at line 571 of file rt2500usb.h.

#define STA_CSR1   0x04e2

Definition at line 576 of file rt2500usb.h.

#define STA_CSR10   0x04f4

Definition at line 607 of file rt2500usb.h.

#define STA_CSR2   0x04e4

Definition at line 581 of file rt2500usb.h.

#define STA_CSR3   0x04e6

Definition at line 587 of file rt2500usb.h.

#define STA_CSR3_FALSE_CCA_ERROR   FIELD16(0xffff)

Definition at line 588 of file rt2500usb.h.

#define STA_CSR4   0x04e8

Definition at line 593 of file rt2500usb.h.

#define STA_CSR5   0x04ea

Definition at line 598 of file rt2500usb.h.

#define STA_CSR6   0x04ec

Definition at line 603 of file rt2500usb.h.

#define STA_CSR7   0x04ee

Definition at line 604 of file rt2500usb.h.

#define STA_CSR8   0x04f0

Definition at line 605 of file rt2500usb.h.

#define STA_CSR9   0x04f2

Definition at line 606 of file rt2500usb.h.

#define TXD_DESC_SIZE   ( 5 * sizeof(__le32) )

Definition at line 761 of file rt2500usb.h.

#define TXD_W0_ACK   FIELD32(0x00000200)

Definition at line 774 of file rt2500usb.h.

#define TXD_W0_CIPHER   FIELD32(0x20000000)

Definition at line 780 of file rt2500usb.h.

#define TXD_W0_DATABYTE_COUNT   FIELD32(0x0fff0000)

Definition at line 779 of file rt2500usb.h.

#define TXD_W0_IFS   FIELD32(0x00006000)

Definition at line 778 of file rt2500usb.h.

#define TXD_W0_KEY_ID   FIELD32(0xc0000000)

Definition at line 781 of file rt2500usb.h.

#define TXD_W0_MORE_FRAG   FIELD32(0x00000100)

Definition at line 773 of file rt2500usb.h.

#define TXD_W0_NEW_SEQ   FIELD32(0x00001000)

Definition at line 777 of file rt2500usb.h.

#define TXD_W0_OFDM   FIELD32(0x00000800)

Definition at line 776 of file rt2500usb.h.

#define TXD_W0_PACKET_ID   FIELD32(0x0000000f)

Definition at line 771 of file rt2500usb.h.

#define TXD_W0_RETRY_LIMIT   FIELD32(0x000000f0)

Definition at line 772 of file rt2500usb.h.

#define TXD_W0_TIMESTAMP   FIELD32(0x00000400)

Definition at line 775 of file rt2500usb.h.

#define TXD_W1_AIFS   FIELD32(0x000000c0)

Definition at line 787 of file rt2500usb.h.

#define TXD_W1_CWMAX   FIELD32(0x0000f000)

Definition at line 789 of file rt2500usb.h.

#define TXD_W1_CWMIN   FIELD32(0x00000f00)

Definition at line 788 of file rt2500usb.h.

#define TXD_W1_IV_OFFSET   FIELD32(0x0000003f)

Definition at line 786 of file rt2500usb.h.

#define TXD_W2_PLCP_LENGTH_HIGH   FIELD32(0xff000000)

Definition at line 797 of file rt2500usb.h.

#define TXD_W2_PLCP_LENGTH_LOW   FIELD32(0x00ff0000)

Definition at line 796 of file rt2500usb.h.

#define TXD_W2_PLCP_SERVICE   FIELD32(0x0000ff00)

Definition at line 795 of file rt2500usb.h.

#define TXD_W2_PLCP_SIGNAL   FIELD32(0x000000ff)

Definition at line 794 of file rt2500usb.h.

#define TXD_W3_IV   FIELD32(0xffffffff)

Definition at line 802 of file rt2500usb.h.

#define TXD_W4_EIV   FIELD32(0xffffffff)

Definition at line 807 of file rt2500usb.h.

#define TXPOWER_FROM_DEV (   __txpower)    (((u8)(__txpower)) > MAX_TXPOWER) ? DEFAULT_TXPOWER : (__txpower)

Definition at line 851 of file rt2500usb.h.

#define TXPOWER_TO_DEV (   __txpower)    clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER)

Definition at line 854 of file rt2500usb.h.

#define TXRX_CSR0   0x0440

Definition at line 244 of file rt2500usb.h.

#define TXRX_CSR0_ALGORITHM   FIELD16(0x0007)

Definition at line 245 of file rt2500usb.h.

#define TXRX_CSR0_IV_OFFSET   FIELD16(0x01f8)

Definition at line 246 of file rt2500usb.h.

#define TXRX_CSR0_KEY_ID   FIELD16(0x1e00)

Definition at line 247 of file rt2500usb.h.

#define TXRX_CSR1   0x0442

Definition at line 255 of file rt2500usb.h.

#define TXRX_CSR10   0x0454

Definition at line 335 of file rt2500usb.h.

#define TXRX_CSR10_AUTORESPOND_PREAMBLE   FIELD16(0x0004)

Definition at line 336 of file rt2500usb.h.

#define TXRX_CSR11   0x0456

Definition at line 341 of file rt2500usb.h.

#define TXRX_CSR12   0x0458

Definition at line 346 of file rt2500usb.h.

#define TXRX_CSR13   0x045a

Definition at line 347 of file rt2500usb.h.

#define TXRX_CSR14   0x045c

Definition at line 348 of file rt2500usb.h.

#define TXRX_CSR15   0x045e

Definition at line 349 of file rt2500usb.h.

#define TXRX_CSR16   0x0460

Definition at line 350 of file rt2500usb.h.

#define TXRX_CSR17   0x0462

Definition at line 351 of file rt2500usb.h.

#define TXRX_CSR18   0x0464

Definition at line 356 of file rt2500usb.h.

#define TXRX_CSR18_INTERVAL   FIELD16(0xfff0)

Definition at line 358 of file rt2500usb.h.

#define TXRX_CSR18_OFFSET   FIELD16(0x000f)

Definition at line 357 of file rt2500usb.h.

#define TXRX_CSR19   0x0466

Definition at line 367 of file rt2500usb.h.

#define TXRX_CSR19_BEACON_GEN   FIELD16(0x0010)

Definition at line 371 of file rt2500usb.h.

#define TXRX_CSR19_TBCN   FIELD16(0x0008)

Definition at line 370 of file rt2500usb.h.

#define TXRX_CSR19_TSF_COUNT   FIELD16(0x0001)

Definition at line 368 of file rt2500usb.h.

#define TXRX_CSR19_TSF_SYNC   FIELD16(0x0006)

Definition at line 369 of file rt2500usb.h.

#define TXRX_CSR1_ACK_TIMEOUT   FIELD16(0x00ff)

Definition at line 256 of file rt2500usb.h.

#define TXRX_CSR1_AUTO_SEQUENCE   FIELD16(0x8000)

Definition at line 258 of file rt2500usb.h.

#define TXRX_CSR1_TSF_OFFSET   FIELD16(0x7f00)

Definition at line 257 of file rt2500usb.h.

#define TXRX_CSR2   0x0444

Definition at line 272 of file rt2500usb.h.

#define TXRX_CSR20   0x0468

Definition at line 378 of file rt2500usb.h.

#define TXRX_CSR20_BCN_EXPECT_WINDOW   FIELD16(0xe000)

Definition at line 380 of file rt2500usb.h.

#define TXRX_CSR20_OFFSET   FIELD16(0x1fff)

Definition at line 379 of file rt2500usb.h.

#define TXRX_CSR21   0x046a

Definition at line 385 of file rt2500usb.h.

#define TXRX_CSR2_DISABLE_RX   FIELD16(0x0001)

Definition at line 273 of file rt2500usb.h.

#define TXRX_CSR2_DROP_BROADCAST   FIELD16(0x0400)

Definition at line 281 of file rt2500usb.h.

#define TXRX_CSR2_DROP_CONTROL   FIELD16(0x0008)

Definition at line 276 of file rt2500usb.h.

#define TXRX_CSR2_DROP_CRC   FIELD16(0x0002)

Definition at line 274 of file rt2500usb.h.

#define TXRX_CSR2_DROP_MULTICAST   FIELD16(0x0200)

Definition at line 280 of file rt2500usb.h.

#define TXRX_CSR2_DROP_NOT_TO_ME   FIELD16(0x0010)

Definition at line 277 of file rt2500usb.h.

#define TXRX_CSR2_DROP_PHYSICAL   FIELD16(0x0004)

Definition at line 275 of file rt2500usb.h.

#define TXRX_CSR2_DROP_TODS   FIELD16(0x0020)

Definition at line 278 of file rt2500usb.h.

#define TXRX_CSR2_DROP_VERSION_ERROR   FIELD16(0x0040)

Definition at line 279 of file rt2500usb.h.

#define TXRX_CSR3   0x0446

Definition at line 288 of file rt2500usb.h.

#define TXRX_CSR4   0x0448

Definition at line 289 of file rt2500usb.h.

#define TXRX_CSR5   0x044a

Definition at line 294 of file rt2500usb.h.

#define TXRX_CSR5_BBP_ID0   FIELD16(0x007f)

Definition at line 295 of file rt2500usb.h.

#define TXRX_CSR5_BBP_ID0_VALID   FIELD16(0x0080)

Definition at line 296 of file rt2500usb.h.

#define TXRX_CSR5_BBP_ID1   FIELD16(0x7f00)

Definition at line 297 of file rt2500usb.h.

#define TXRX_CSR5_BBP_ID1_VALID   FIELD16(0x8000)

Definition at line 298 of file rt2500usb.h.

#define TXRX_CSR6   0x044c

Definition at line 303 of file rt2500usb.h.

#define TXRX_CSR6_BBP_ID0   FIELD16(0x007f)

Definition at line 304 of file rt2500usb.h.

#define TXRX_CSR6_BBP_ID0_VALID   FIELD16(0x0080)

Definition at line 305 of file rt2500usb.h.

#define TXRX_CSR6_BBP_ID1   FIELD16(0x7f00)

Definition at line 306 of file rt2500usb.h.

#define TXRX_CSR6_BBP_ID1_VALID   FIELD16(0x8000)

Definition at line 307 of file rt2500usb.h.

#define TXRX_CSR7   0x044e

Definition at line 312 of file rt2500usb.h.

#define TXRX_CSR7_BBP_ID0   FIELD16(0x007f)

Definition at line 313 of file rt2500usb.h.

#define TXRX_CSR7_BBP_ID0_VALID   FIELD16(0x0080)

Definition at line 314 of file rt2500usb.h.

#define TXRX_CSR7_BBP_ID1   FIELD16(0x7f00)

Definition at line 315 of file rt2500usb.h.

#define TXRX_CSR7_BBP_ID1_VALID   FIELD16(0x8000)

Definition at line 316 of file rt2500usb.h.

#define TXRX_CSR8   0x0450

Definition at line 321 of file rt2500usb.h.

#define TXRX_CSR8_BBP_ID0   FIELD16(0x007f)

Definition at line 322 of file rt2500usb.h.

#define TXRX_CSR8_BBP_ID0_VALID   FIELD16(0x0080)

Definition at line 323 of file rt2500usb.h.

#define TXRX_CSR8_BBP_ID1   FIELD16(0x7f00)

Definition at line 324 of file rt2500usb.h.

#define TXRX_CSR8_BBP_ID1_VALID   FIELD16(0x8000)

Definition at line 325 of file rt2500usb.h.

#define TXRX_CSR9   0x0452

Definition at line 330 of file rt2500usb.h.