21 #define RTL8187_EEPROM_TXPWR_BASE 0x05
22 #define RTL8187_EEPROM_MAC_ADDR 0x07
23 #define RTL8187_EEPROM_TXPWR_CHAN_1 0x16
24 #define RTL8187_EEPROM_TXPWR_CHAN_6 0x1B
25 #define RTL8187_EEPROM_TXPWR_CHAN_4 0x3D
26 #define RTL8187_EEPROM_SELECT_GPIO 0x3B
28 #define RTL8187_REQT_READ 0xC0
29 #define RTL8187_REQT_WRITE 0x40
30 #define RTL8187_REQ_GET_REG 0x05
31 #define RTL8187_REQ_SET_REG 0x05
33 #define RTL8187_MAX_RX 0x9C4
35 #define RFKILL_MASK_8187_89_97 0x2
36 #define RFKILL_MASK_8198 0x4
120 #ifdef CONFIG_RTL8187_LEDS
121 struct rtl8187_led led_radio;
122 struct rtl8187_led led_tx;
123 struct rtl8187_led led_rx;
165 (
unsigned long)addr, idx & 0x03,
176 return rtl818x_ioread8_idx(priv, addr, 0);
187 (
unsigned long)addr, idx & 0x03,
198 return rtl818x_ioread16_idx(priv, addr, 0);
209 (
unsigned long)addr, idx & 0x03,
220 return rtl818x_ioread32_idx(priv, addr, 0);
223 static inline void rtl818x_iowrite8_idx(
struct rtl8187_priv *priv,
231 (
unsigned long)addr, idx & 0x03,
237 static inline void rtl818x_iowrite8(
struct rtl8187_priv *priv,
u8 *addr,
u8 val)
239 rtl818x_iowrite8_idx(priv, addr, val, 0);
242 static inline void rtl818x_iowrite16_idx(
struct rtl8187_priv *priv,
250 (
unsigned long)addr, idx & 0x03,
259 rtl818x_iowrite16_idx(priv, addr, val, 0);
262 static inline void rtl818x_iowrite32_idx(
struct rtl8187_priv *priv,
270 (
unsigned long)addr, idx & 0x03,
279 rtl818x_iowrite32_idx(priv, addr, val, 0);