aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800pci.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-11-04 12:33:41 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-06 16:48:49 -0500
commitb4a77d0dee11db834bebe0cc78c211cfebf0d924 (patch)
tree3df9341bd55bf6852b1259f9a1df06314c753061 /drivers/net/wireless/rt2x00/rt2800pci.c
parentab209b9834d43ac7c01e803681c5c50c941e4de3 (diff)
rt2800pci: add rt2800_regbusy_read() wrapper
Part of preparations for later code unification. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 8b98ff822f19..cb55e6d10b67 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -69,14 +69,14 @@ MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
69 * The _lock versions must be used if you already hold the csr_mutex 69 * The _lock versions must be used if you already hold the csr_mutex
70 */ 70 */
71#define WAIT_FOR_BBP(__dev, __reg) \ 71#define WAIT_FOR_BBP(__dev, __reg) \
72 rt2x00pci_regbusy_read((__dev), BBP_CSR_CFG, BBP_CSR_CFG_BUSY, (__reg)) 72 rt2800_regbusy_read((__dev), BBP_CSR_CFG, BBP_CSR_CFG_BUSY, (__reg))
73#define WAIT_FOR_RFCSR(__dev, __reg) \ 73#define WAIT_FOR_RFCSR(__dev, __reg) \
74 rt2x00pci_regbusy_read((__dev), RF_CSR_CFG, RF_CSR_CFG_BUSY, (__reg)) 74 rt2800_regbusy_read((__dev), RF_CSR_CFG, RF_CSR_CFG_BUSY, (__reg))
75#define WAIT_FOR_RF(__dev, __reg) \ 75#define WAIT_FOR_RF(__dev, __reg) \
76 rt2x00pci_regbusy_read((__dev), RF_CSR_CFG0, RF_CSR_CFG0_BUSY, (__reg)) 76 rt2800_regbusy_read((__dev), RF_CSR_CFG0, RF_CSR_CFG0_BUSY, (__reg))
77#define WAIT_FOR_MCU(__dev, __reg) \ 77#define WAIT_FOR_MCU(__dev, __reg) \
78 rt2x00pci_regbusy_read((__dev), H2M_MAILBOX_CSR, \ 78 rt2800_regbusy_read((__dev), H2M_MAILBOX_CSR, \
79 H2M_MAILBOX_CSR_OWNER, (__reg)) 79 H2M_MAILBOX_CSR_OWNER, (__reg))
80 80
81static void rt2800pci_bbp_write(struct rt2x00_dev *rt2x00dev, 81static void rt2800pci_bbp_write(struct rt2x00_dev *rt2x00dev,
82 const unsigned int word, const u8 value) 82 const unsigned int word, const u8 value)
@@ -350,7 +350,7 @@ static void rt2800pci_efuse_read(struct rt2x00_dev *rt2x00dev,
350 rt2800_register_write(rt2x00dev, EFUSE_CTRL, reg); 350 rt2800_register_write(rt2x00dev, EFUSE_CTRL, reg);
351 351
352 /* Wait until the EEPROM has been loaded */ 352 /* Wait until the EEPROM has been loaded */
353 rt2x00pci_regbusy_read(rt2x00dev, EFUSE_CTRL, EFUSE_CTRL_KICK, &reg); 353 rt2800_regbusy_read(rt2x00dev, EFUSE_CTRL, EFUSE_CTRL_KICK, &reg);
354 354
355 /* Apparently the data is read from end to start */ 355 /* Apparently the data is read from end to start */
356 rt2800_register_read(rt2x00dev, EFUSE_DATA3, 356 rt2800_register_read(rt2x00dev, EFUSE_DATA3,