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

Go to the source code of this file.

Data Structures

struct  rtl818x_csr
 
struct  rtl818x_rf_ops
 

Macros

#define RTL818X_CMD_TX_ENABLE   (1 << 2)
 
#define RTL818X_CMD_RX_ENABLE   (1 << 3)
 
#define RTL818X_CMD_RESET   (1 << 4)
 
#define RTL818X_INT_RX_OK   (1 << 0)
 
#define RTL818X_INT_RX_ERR   (1 << 1)
 
#define RTL818X_INT_TXL_OK   (1 << 2)
 
#define RTL818X_INT_TXL_ERR   (1 << 3)
 
#define RTL818X_INT_RX_DU   (1 << 4)
 
#define RTL818X_INT_RX_FO   (1 << 5)
 
#define RTL818X_INT_TXN_OK   (1 << 6)
 
#define RTL818X_INT_TXN_ERR   (1 << 7)
 
#define RTL818X_INT_TXH_OK   (1 << 8)
 
#define RTL818X_INT_TXH_ERR   (1 << 9)
 
#define RTL818X_INT_TXB_OK   (1 << 10)
 
#define RTL818X_INT_TXB_ERR   (1 << 11)
 
#define RTL818X_INT_ATIM   (1 << 12)
 
#define RTL818X_INT_BEACON   (1 << 13)
 
#define RTL818X_INT_TIME_OUT   (1 << 14)
 
#define RTL818X_INT_TX_FO   (1 << 15)
 
#define RTL818X_TX_CONF_LOOPBACK_MAC   (1 << 17)
 
#define RTL818X_TX_CONF_LOOPBACK_CONT   (3 << 17)
 
#define RTL818X_TX_CONF_NO_ICV   (1 << 19)
 
#define RTL818X_TX_CONF_DISCW   (1 << 20)
 
#define RTL818X_TX_CONF_SAT_HWPLCP   (1 << 24)
 
#define RTL818X_TX_CONF_R8180_ABCD   (2 << 25)
 
#define RTL818X_TX_CONF_R8180_F   (3 << 25)
 
#define RTL818X_TX_CONF_R8185_ABC   (4 << 25)
 
#define RTL818X_TX_CONF_R8185_D   (5 << 25)
 
#define RTL818X_TX_CONF_R8187vD   (5 << 25)
 
#define RTL818X_TX_CONF_R8187vD_B   (6 << 25)
 
#define RTL818X_TX_CONF_HWVER_MASK   (7 << 25)
 
#define RTL818X_TX_CONF_DISREQQSIZE   (1 << 28)
 
#define RTL818X_TX_CONF_PROBE_DTS   (1 << 29)
 
#define RTL818X_TX_CONF_HW_SEQNUM   (1 << 30)
 
#define RTL818X_TX_CONF_CW_MIN   (1 << 31)
 
#define RTL818X_RX_CONF_MONITOR   (1 << 0)
 
#define RTL818X_RX_CONF_NICMAC   (1 << 1)
 
#define RTL818X_RX_CONF_MULTICAST   (1 << 2)
 
#define RTL818X_RX_CONF_BROADCAST   (1 << 3)
 
#define RTL818X_RX_CONF_FCS   (1 << 5)
 
#define RTL818X_RX_CONF_DATA   (1 << 18)
 
#define RTL818X_RX_CONF_CTRL   (1 << 19)
 
#define RTL818X_RX_CONF_MGMT   (1 << 20)
 
#define RTL818X_RX_CONF_ADDR3   (1 << 21)
 
#define RTL818X_RX_CONF_PM   (1 << 22)
 
#define RTL818X_RX_CONF_BSSID   (1 << 23)
 
#define RTL818X_RX_CONF_RX_AUTORESETPHY   (1 << 28)
 
#define RTL818X_RX_CONF_CSDM1   (1 << 29)
 
#define RTL818X_RX_CONF_CSDM2   (1 << 30)
 
#define RTL818X_RX_CONF_ONLYERLPKT   (1 << 31)
 
#define RTL818X_EEPROM_CMD_READ   (1 << 0)
 
#define RTL818X_EEPROM_CMD_WRITE   (1 << 1)
 
#define RTL818X_EEPROM_CMD_CK   (1 << 2)
 
#define RTL818X_EEPROM_CMD_CS   (1 << 3)
 
#define RTL818X_EEPROM_CMD_NORMAL   (0 << 6)
 
#define RTL818X_EEPROM_CMD_LOAD   (1 << 6)
 
#define RTL818X_EEPROM_CMD_PROGRAM   (2 << 6)
 
#define RTL818X_EEPROM_CMD_CONFIG   (3 << 6)
 
#define RTL818X_CONFIG2_ANTENNA_DIV   (1 << 6)
 
#define RTL818X_MSR_NO_LINK   (0 << 2)
 
#define RTL818X_MSR_ADHOC   (1 << 2)
 
#define RTL818X_MSR_INFRA   (2 << 2)
 
#define RTL818X_MSR_MASTER   (3 << 2)
 
#define RTL818X_MSR_ENEDCA   (4 << 2)
 
#define RTL818X_CONFIG3_ANAPARAM_WRITE   (1 << 6)
 
#define RTL818X_CONFIG3_GNT_SELECT   (1 << 7)
 
#define RTL818X_CONFIG4_POWEROFF   (1 << 6)
 
#define RTL818X_CONFIG4_VCOOFF   (1 << 7)
 
#define RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT   (1 << 0)
 
#define RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT   (1 << 1)
 
#define RTL818X_TX_AGC_CTL_FEEDBACK_ANT   (1 << 2)
 
#define RTL818X_CW_CONF_PERPACKET_CW_SHIFT   (1 << 0)
 
#define RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT   (1 << 1)
 
#define RTL818X_RATE_FALLBACK_ENABLE   (1 << 7)
 
#define RTL818X_R8187B_B   0
 
#define RTL818X_R8187B_D   1
 
#define RTL818X_R8187B_E   2
 

Enumerations

enum  rtl818x_tx_desc_flags {
  RTL818X_TX_DESC_FLAG_NO_ENC = (1 << 15), RTL818X_TX_DESC_FLAG_TX_OK = (1 << 15), RTL818X_TX_DESC_FLAG_SPLCP = (1 << 16), RTL818X_TX_DESC_FLAG_RX_UNDER = (1 << 16),
  RTL818X_TX_DESC_FLAG_MOREFRAG = (1 << 17), RTL818X_TX_DESC_FLAG_CTS = (1 << 18), RTL818X_TX_DESC_FLAG_RTS = (1 << 23), RTL818X_TX_DESC_FLAG_LS = (1 << 28),
  RTL818X_TX_DESC_FLAG_FS = (1 << 29), RTL818X_TX_DESC_FLAG_DMA = (1 << 30), RTL818X_TX_DESC_FLAG_OWN = (1 << 31)
}
 
enum  rtl818x_rx_desc_flags {
  RTL818X_RX_DESC_FLAG_ICV_ERR = (1 << 12), RTL818X_RX_DESC_FLAG_CRC32_ERR = (1 << 13), RTL818X_RX_DESC_FLAG_PM = (1 << 14), RTL818X_RX_DESC_FLAG_RX_ERR = (1 << 15),
  RTL818X_RX_DESC_FLAG_BCAST = (1 << 16), RTL818X_RX_DESC_FLAG_PAM = (1 << 17), RTL818X_RX_DESC_FLAG_MCAST = (1 << 18), RTL818X_RX_DESC_FLAG_QOS = (1 << 19),
  RTL818X_RX_DESC_FLAG_TRSW = (1 << 24), RTL818X_RX_DESC_FLAG_SPLCP = (1 << 25), RTL818X_RX_DESC_FLAG_FOF = (1 << 26), RTL818X_RX_DESC_FLAG_DMA_FAIL = (1 << 27),
  RTL818X_RX_DESC_FLAG_LS = (1 << 28), RTL818X_RX_DESC_FLAG_FS = (1 << 29), RTL818X_RX_DESC_FLAG_EOR = (1 << 30), RTL818X_RX_DESC_FLAG_OWN = (1 << 31)
}
 

Variables

struct rtl818x_csr __packed
 

Macro Definition Documentation

#define RTL818X_CMD_RESET   (1 << 4)

Definition at line 39 of file rtl818x.h.

#define RTL818X_CMD_RX_ENABLE   (1 << 3)

Definition at line 38 of file rtl818x.h.

#define RTL818X_CMD_TX_ENABLE   (1 << 2)

Definition at line 37 of file rtl818x.h.

#define RTL818X_CONFIG2_ANTENNA_DIV   (1 << 6)

Definition at line 106 of file rtl818x.h.

#define RTL818X_CONFIG3_ANAPARAM_WRITE   (1 << 6)

Definition at line 115 of file rtl818x.h.

#define RTL818X_CONFIG3_GNT_SELECT   (1 << 7)

Definition at line 116 of file rtl818x.h.

#define RTL818X_CONFIG4_POWEROFF   (1 << 6)

Definition at line 118 of file rtl818x.h.

#define RTL818X_CONFIG4_VCOOFF   (1 << 7)

Definition at line 119 of file rtl818x.h.

#define RTL818X_CW_CONF_PERPACKET_CW_SHIFT   (1 << 0)

Definition at line 161 of file rtl818x.h.

#define RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT   (1 << 1)

Definition at line 162 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_CK   (1 << 2)

Definition at line 97 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_CONFIG   (3 << 6)

Definition at line 102 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_CS   (1 << 3)

Definition at line 98 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_LOAD   (1 << 6)

Definition at line 100 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_NORMAL   (0 << 6)

Definition at line 99 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_PROGRAM   (2 << 6)

Definition at line 101 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_READ   (1 << 0)

Definition at line 95 of file rtl818x.h.

#define RTL818X_EEPROM_CMD_WRITE   (1 << 1)

Definition at line 96 of file rtl818x.h.

#define RTL818X_INT_ATIM   (1 << 12)

Definition at line 55 of file rtl818x.h.

#define RTL818X_INT_BEACON   (1 << 13)

Definition at line 56 of file rtl818x.h.

#define RTL818X_INT_RX_DU   (1 << 4)

Definition at line 47 of file rtl818x.h.

#define RTL818X_INT_RX_ERR   (1 << 1)

Definition at line 44 of file rtl818x.h.

#define RTL818X_INT_RX_FO   (1 << 5)

Definition at line 48 of file rtl818x.h.

#define RTL818X_INT_RX_OK   (1 << 0)

Definition at line 43 of file rtl818x.h.

#define RTL818X_INT_TIME_OUT   (1 << 14)

Definition at line 57 of file rtl818x.h.

#define RTL818X_INT_TX_FO   (1 << 15)

Definition at line 58 of file rtl818x.h.

#define RTL818X_INT_TXB_ERR   (1 << 11)

Definition at line 54 of file rtl818x.h.

#define RTL818X_INT_TXB_OK   (1 << 10)

Definition at line 53 of file rtl818x.h.

#define RTL818X_INT_TXH_ERR   (1 << 9)

Definition at line 52 of file rtl818x.h.

#define RTL818X_INT_TXH_OK   (1 << 8)

Definition at line 51 of file rtl818x.h.

#define RTL818X_INT_TXL_ERR   (1 << 3)

Definition at line 46 of file rtl818x.h.

#define RTL818X_INT_TXL_OK   (1 << 2)

Definition at line 45 of file rtl818x.h.

#define RTL818X_INT_TXN_ERR   (1 << 7)

Definition at line 50 of file rtl818x.h.

#define RTL818X_INT_TXN_OK   (1 << 6)

Definition at line 49 of file rtl818x.h.

#define RTL818X_MSR_ADHOC   (1 << 2)

Definition at line 110 of file rtl818x.h.

#define RTL818X_MSR_ENEDCA   (4 << 2)

Definition at line 113 of file rtl818x.h.

#define RTL818X_MSR_INFRA   (2 << 2)

Definition at line 111 of file rtl818x.h.

#define RTL818X_MSR_MASTER   (3 << 2)

Definition at line 112 of file rtl818x.h.

#define RTL818X_MSR_NO_LINK   (0 << 2)

Definition at line 109 of file rtl818x.h.

#define RTL818X_R8187B_B   0

Definition at line 176 of file rtl818x.h.

#define RTL818X_R8187B_D   1

Definition at line 177 of file rtl818x.h.

#define RTL818X_R8187B_E   2

Definition at line 178 of file rtl818x.h.

#define RTL818X_RATE_FALLBACK_ENABLE   (1 << 7)

Definition at line 165 of file rtl818x.h.

#define RTL818X_RX_CONF_ADDR3   (1 << 21)

Definition at line 85 of file rtl818x.h.

#define RTL818X_RX_CONF_BROADCAST   (1 << 3)

Definition at line 80 of file rtl818x.h.

#define RTL818X_RX_CONF_BSSID   (1 << 23)

Definition at line 87 of file rtl818x.h.

#define RTL818X_RX_CONF_CSDM1   (1 << 29)

Definition at line 89 of file rtl818x.h.

#define RTL818X_RX_CONF_CSDM2   (1 << 30)

Definition at line 90 of file rtl818x.h.

#define RTL818X_RX_CONF_CTRL   (1 << 19)

Definition at line 83 of file rtl818x.h.

#define RTL818X_RX_CONF_DATA   (1 << 18)

Definition at line 82 of file rtl818x.h.

#define RTL818X_RX_CONF_FCS   (1 << 5)

Definition at line 81 of file rtl818x.h.

#define RTL818X_RX_CONF_MGMT   (1 << 20)

Definition at line 84 of file rtl818x.h.

#define RTL818X_RX_CONF_MONITOR   (1 << 0)

Definition at line 77 of file rtl818x.h.

#define RTL818X_RX_CONF_MULTICAST   (1 << 2)

Definition at line 79 of file rtl818x.h.

#define RTL818X_RX_CONF_NICMAC   (1 << 1)

Definition at line 78 of file rtl818x.h.

#define RTL818X_RX_CONF_ONLYERLPKT   (1 << 31)

Definition at line 91 of file rtl818x.h.

#define RTL818X_RX_CONF_PM   (1 << 22)

Definition at line 86 of file rtl818x.h.

#define RTL818X_RX_CONF_RX_AUTORESETPHY   (1 << 28)

Definition at line 88 of file rtl818x.h.

#define RTL818X_TX_AGC_CTL_FEEDBACK_ANT   (1 << 2)

Definition at line 149 of file rtl818x.h.

#define RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT   (1 << 1)

Definition at line 148 of file rtl818x.h.

#define RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT   (1 << 0)

Definition at line 147 of file rtl818x.h.

#define RTL818X_TX_CONF_CW_MIN   (1 << 31)

Definition at line 75 of file rtl818x.h.

#define RTL818X_TX_CONF_DISCW   (1 << 20)

Definition at line 63 of file rtl818x.h.

#define RTL818X_TX_CONF_DISREQQSIZE   (1 << 28)

Definition at line 72 of file rtl818x.h.

#define RTL818X_TX_CONF_HW_SEQNUM   (1 << 30)

Definition at line 74 of file rtl818x.h.

#define RTL818X_TX_CONF_HWVER_MASK   (7 << 25)

Definition at line 71 of file rtl818x.h.

#define RTL818X_TX_CONF_LOOPBACK_CONT   (3 << 17)

Definition at line 61 of file rtl818x.h.

#define RTL818X_TX_CONF_LOOPBACK_MAC   (1 << 17)

Definition at line 60 of file rtl818x.h.

#define RTL818X_TX_CONF_NO_ICV   (1 << 19)

Definition at line 62 of file rtl818x.h.

#define RTL818X_TX_CONF_PROBE_DTS   (1 << 29)

Definition at line 73 of file rtl818x.h.

#define RTL818X_TX_CONF_R8180_ABCD   (2 << 25)

Definition at line 65 of file rtl818x.h.

#define RTL818X_TX_CONF_R8180_F   (3 << 25)

Definition at line 66 of file rtl818x.h.

#define RTL818X_TX_CONF_R8185_ABC   (4 << 25)

Definition at line 67 of file rtl818x.h.

#define RTL818X_TX_CONF_R8185_D   (5 << 25)

Definition at line 68 of file rtl818x.h.

#define RTL818X_TX_CONF_R8187vD   (5 << 25)

Definition at line 69 of file rtl818x.h.

#define RTL818X_TX_CONF_R8187vD_B   (6 << 25)

Definition at line 70 of file rtl818x.h.

#define RTL818X_TX_CONF_SAT_HWPLCP   (1 << 24)

Definition at line 64 of file rtl818x.h.

Enumeration Type Documentation

Enumerator:
RTL818X_RX_DESC_FLAG_ICV_ERR 
RTL818X_RX_DESC_FLAG_CRC32_ERR 
RTL818X_RX_DESC_FLAG_PM 
RTL818X_RX_DESC_FLAG_RX_ERR 
RTL818X_RX_DESC_FLAG_BCAST 
RTL818X_RX_DESC_FLAG_PAM 
RTL818X_RX_DESC_FLAG_MCAST 
RTL818X_RX_DESC_FLAG_QOS 
RTL818X_RX_DESC_FLAG_TRSW 
RTL818X_RX_DESC_FLAG_SPLCP 
RTL818X_RX_DESC_FLAG_FOF 
RTL818X_RX_DESC_FLAG_DMA_FAIL 
RTL818X_RX_DESC_FLAG_LS 
RTL818X_RX_DESC_FLAG_FS 
RTL818X_RX_DESC_FLAG_EOR 
RTL818X_RX_DESC_FLAG_OWN 

Definition at line 225 of file rtl818x.h.

enum rtl818x_tx_desc_flags - Tx/Rx flags are common between RTL818X chips

: Disable hardware based encryption. : TX frame was ACKed. : Use short preamble. : More fragments follow. : Use CTS-to-self protection. : Use RTS/CTS protection. : Last segment of the frame. : First segment of the frame.

Enumerator:
RTL818X_TX_DESC_FLAG_NO_ENC 
RTL818X_TX_DESC_FLAG_TX_OK 
RTL818X_TX_DESC_FLAG_SPLCP 
RTL818X_TX_DESC_FLAG_RX_UNDER 
RTL818X_TX_DESC_FLAG_MOREFRAG 
RTL818X_TX_DESC_FLAG_CTS 
RTL818X_TX_DESC_FLAG_RTS 
RTL818X_TX_DESC_FLAG_LS 
RTL818X_TX_DESC_FLAG_FS 
RTL818X_TX_DESC_FLAG_DMA 
RTL818X_TX_DESC_FLAG_OWN 

Definition at line 211 of file rtl818x.h.

Variable Documentation