diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 198fc0a0d77..d27d7b8ba3b 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1446,8 +1446,8 @@ static void rt2500pci_txdone(struct rt2x00_dev *rt2x00dev, | |||
1446 | } | 1446 | } |
1447 | } | 1447 | } |
1448 | 1448 | ||
1449 | static void rt2500pci_enable_interrupt(struct rt2x00_dev *rt2x00dev, | 1449 | static inline void rt2500pci_enable_interrupt(struct rt2x00_dev *rt2x00dev, |
1450 | struct rt2x00_field32 irq_field) | 1450 | struct rt2x00_field32 irq_field) |
1451 | { | 1451 | { |
1452 | u32 reg; | 1452 | u32 reg; |
1453 | 1453 | ||
@@ -1687,14 +1687,14 @@ static int rt2500pci_init_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1687 | * Detect if this device has an hardware controlled radio. | 1687 | * Detect if this device has an hardware controlled radio. |
1688 | */ | 1688 | */ |
1689 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) | 1689 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) |
1690 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); | 1690 | __set_bit(CAPABILITY_HW_BUTTON, &rt2x00dev->cap_flags); |
1691 | 1691 | ||
1692 | /* | 1692 | /* |
1693 | * Check if the BBP tuning should be enabled. | 1693 | * Check if the BBP tuning should be enabled. |
1694 | */ | 1694 | */ |
1695 | rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC, &eeprom); | 1695 | rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC, &eeprom); |
1696 | if (!rt2x00_get_field16(eeprom, EEPROM_NIC_DYN_BBP_TUNE)) | 1696 | if (!rt2x00_get_field16(eeprom, EEPROM_NIC_DYN_BBP_TUNE)) |
1697 | __set_bit(DRIVER_SUPPORT_LINK_TUNING, &rt2x00dev->flags); | 1697 | __set_bit(CAPABILITY_LINK_TUNING, &rt2x00dev->cap_flags); |
1698 | 1698 | ||
1699 | /* | 1699 | /* |
1700 | * Read the RSSI <-> dBm offset information. | 1700 | * Read the RSSI <-> dBm offset information. |
@@ -1958,9 +1958,9 @@ static int rt2500pci_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
1958 | /* | 1958 | /* |
1959 | * This device requires the atim queue and DMA-mapped skbs. | 1959 | * This device requires the atim queue and DMA-mapped skbs. |
1960 | */ | 1960 | */ |
1961 | __set_bit(DRIVER_REQUIRE_ATIM_QUEUE, &rt2x00dev->flags); | 1961 | __set_bit(REQUIRE_ATIM_QUEUE, &rt2x00dev->cap_flags); |
1962 | __set_bit(DRIVER_REQUIRE_DMA, &rt2x00dev->flags); | 1962 | __set_bit(REQUIRE_DMA, &rt2x00dev->cap_flags); |
1963 | __set_bit(DRIVER_REQUIRE_SW_SEQNO, &rt2x00dev->flags); | 1963 | __set_bit(REQUIRE_SW_SEQNO, &rt2x00dev->cap_flags); |
1964 | 1964 | ||
1965 | /* | 1965 | /* |
1966 | * Set the rssi offset. | 1966 | * Set the rssi offset. |
@@ -2013,6 +2013,9 @@ static const struct ieee80211_ops rt2500pci_mac80211_ops = { | |||
2013 | .tx_last_beacon = rt2500pci_tx_last_beacon, | 2013 | .tx_last_beacon = rt2500pci_tx_last_beacon, |
2014 | .rfkill_poll = rt2x00mac_rfkill_poll, | 2014 | .rfkill_poll = rt2x00mac_rfkill_poll, |
2015 | .flush = rt2x00mac_flush, | 2015 | .flush = rt2x00mac_flush, |
2016 | .set_antenna = rt2x00mac_set_antenna, | ||
2017 | .get_antenna = rt2x00mac_get_antenna, | ||
2018 | .get_ringparam = rt2x00mac_get_ringparam, | ||
2016 | }; | 2019 | }; |
2017 | 2020 | ||
2018 | static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = { | 2021 | static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = { |
@@ -2033,6 +2036,7 @@ static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = { | |||
2033 | .start_queue = rt2500pci_start_queue, | 2036 | .start_queue = rt2500pci_start_queue, |
2034 | .kick_queue = rt2500pci_kick_queue, | 2037 | .kick_queue = rt2500pci_kick_queue, |
2035 | .stop_queue = rt2500pci_stop_queue, | 2038 | .stop_queue = rt2500pci_stop_queue, |
2039 | .flush_queue = rt2x00pci_flush_queue, | ||
2036 | .write_tx_desc = rt2500pci_write_tx_desc, | 2040 | .write_tx_desc = rt2500pci_write_tx_desc, |
2037 | .write_beacon = rt2500pci_write_beacon, | 2041 | .write_beacon = rt2500pci_write_beacon, |
2038 | .fill_rxdone = rt2500pci_fill_rxdone, | 2042 | .fill_rxdone = rt2500pci_fill_rxdone, |
@@ -2094,7 +2098,7 @@ static const struct rt2x00_ops rt2500pci_ops = { | |||
2094 | * RT2500pci module information. | 2098 | * RT2500pci module information. |
2095 | */ | 2099 | */ |
2096 | static DEFINE_PCI_DEVICE_TABLE(rt2500pci_device_table) = { | 2100 | static DEFINE_PCI_DEVICE_TABLE(rt2500pci_device_table) = { |
2097 | { PCI_DEVICE(0x1814, 0x0201), PCI_DEVICE_DATA(&rt2500pci_ops) }, | 2101 | { PCI_DEVICE(0x1814, 0x0201) }, |
2098 | { 0, } | 2102 | { 0, } |
2099 | }; | 2103 | }; |
2100 | 2104 | ||
@@ -2105,10 +2109,16 @@ MODULE_SUPPORTED_DEVICE("Ralink RT2560 PCI & PCMCIA chipset based cards"); | |||
2105 | MODULE_DEVICE_TABLE(pci, rt2500pci_device_table); | 2109 | MODULE_DEVICE_TABLE(pci, rt2500pci_device_table); |
2106 | MODULE_LICENSE("GPL"); | 2110 | MODULE_LICENSE("GPL"); |
2107 | 2111 | ||
2112 | static int rt2500pci_probe(struct pci_dev *pci_dev, | ||
2113 | const struct pci_device_id *id) | ||
2114 | { | ||
2115 | return rt2x00pci_probe(pci_dev, &rt2500pci_ops); | ||
2116 | } | ||
2117 | |||
2108 | static struct pci_driver rt2500pci_driver = { | 2118 | static struct pci_driver rt2500pci_driver = { |
2109 | .name = KBUILD_MODNAME, | 2119 | .name = KBUILD_MODNAME, |
2110 | .id_table = rt2500pci_device_table, | 2120 | .id_table = rt2500pci_device_table, |
2111 | .probe = rt2x00pci_probe, | 2121 | .probe = rt2500pci_probe, |
2112 | .remove = __devexit_p(rt2x00pci_remove), | 2122 | .remove = __devexit_p(rt2x00pci_remove), |
2113 | .suspend = rt2x00pci_suspend, | 2123 | .suspend = rt2x00pci_suspend, |
2114 | .resume = rt2x00pci_resume, | 2124 | .resume = rt2x00pci_resume, |