pci.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. /*
  2. * Copyright (c) 2008-2011 Atheros Communications Inc.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  17. #include <linux/nl80211.h>
  18. #include <linux/pci.h>
  19. #include <linux/pci-aspm.h>
  20. #include <linux/ath9k_platform.h>
  21. #include <linux/module.h>
  22. #include "ath9k.h"
  23. static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = {
  24. { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */
  25. { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */
  26. { PCI_VDEVICE(ATHEROS, 0x0027) }, /* PCI */
  27. { PCI_VDEVICE(ATHEROS, 0x0029) }, /* PCI */
  28. { PCI_VDEVICE(ATHEROS, 0x002A) }, /* PCI-E */
  29. /* AR9285 card for Asus */
  30. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  31. 0x002B,
  32. PCI_VENDOR_ID_AZWAVE,
  33. 0x2C37),
  34. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  35. { PCI_VDEVICE(ATHEROS, 0x002B) }, /* PCI-E */
  36. { PCI_VDEVICE(ATHEROS, 0x002C) }, /* PCI-E 802.11n bonded out */
  37. { PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI */
  38. { PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */
  39. { PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E AR9300 */
  40. /* PCI-E CUS198 */
  41. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  42. 0x0032,
  43. PCI_VENDOR_ID_AZWAVE,
  44. 0x2086),
  45. .driver_data = ATH9K_PCI_CUS198 | ATH9K_PCI_BT_ANT_DIV },
  46. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  47. 0x0032,
  48. PCI_VENDOR_ID_AZWAVE,
  49. 0x1237),
  50. .driver_data = ATH9K_PCI_CUS198 | ATH9K_PCI_BT_ANT_DIV },
  51. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  52. 0x0032,
  53. PCI_VENDOR_ID_AZWAVE,
  54. 0x2126),
  55. .driver_data = ATH9K_PCI_CUS198 | ATH9K_PCI_BT_ANT_DIV },
  56. /* PCI-E CUS230 */
  57. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  58. 0x0032,
  59. PCI_VENDOR_ID_AZWAVE,
  60. 0x2152),
  61. .driver_data = ATH9K_PCI_CUS230 | ATH9K_PCI_BT_ANT_DIV },
  62. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  63. 0x0032,
  64. PCI_VENDOR_ID_FOXCONN,
  65. 0xE075),
  66. .driver_data = ATH9K_PCI_CUS230 | ATH9K_PCI_BT_ANT_DIV },
  67. /* WB225 */
  68. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  69. 0x0032,
  70. PCI_VENDOR_ID_ATHEROS,
  71. 0x3119),
  72. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  73. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  74. 0x0032,
  75. PCI_VENDOR_ID_ATHEROS,
  76. 0x3122),
  77. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  78. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  79. 0x0032,
  80. 0x185F, /* WNC */
  81. 0x3119),
  82. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  83. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  84. 0x0032,
  85. 0x185F, /* WNC */
  86. 0x3027),
  87. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  88. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  89. 0x0032,
  90. PCI_VENDOR_ID_SAMSUNG,
  91. 0x4105),
  92. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  93. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  94. 0x0032,
  95. PCI_VENDOR_ID_SAMSUNG,
  96. 0x4106),
  97. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  98. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  99. 0x0032,
  100. PCI_VENDOR_ID_SAMSUNG,
  101. 0x410D),
  102. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  103. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  104. 0x0032,
  105. PCI_VENDOR_ID_SAMSUNG,
  106. 0x410E),
  107. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  108. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  109. 0x0032,
  110. PCI_VENDOR_ID_SAMSUNG,
  111. 0x410F),
  112. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  113. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  114. 0x0032,
  115. PCI_VENDOR_ID_SAMSUNG,
  116. 0xC706),
  117. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  118. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  119. 0x0032,
  120. PCI_VENDOR_ID_SAMSUNG,
  121. 0xC680),
  122. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  123. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  124. 0x0032,
  125. PCI_VENDOR_ID_SAMSUNG,
  126. 0xC708),
  127. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  128. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  129. 0x0032,
  130. PCI_VENDOR_ID_LENOVO,
  131. 0x3218),
  132. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  133. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  134. 0x0032,
  135. PCI_VENDOR_ID_LENOVO,
  136. 0x3219),
  137. .driver_data = ATH9K_PCI_BT_ANT_DIV },
  138. { PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E AR9485 */
  139. { PCI_VDEVICE(ATHEROS, 0x0033) }, /* PCI-E AR9580 */
  140. /* PCI-E CUS217 */
  141. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  142. 0x0034,
  143. PCI_VENDOR_ID_AZWAVE,
  144. 0x2116),
  145. .driver_data = ATH9K_PCI_CUS217 },
  146. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  147. 0x0034,
  148. 0x11AD, /* LITEON */
  149. 0x6661),
  150. .driver_data = ATH9K_PCI_CUS217 },
  151. /* AR9462 with WoW support */
  152. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  153. 0x0034,
  154. PCI_VENDOR_ID_ATHEROS,
  155. 0x3117),
  156. .driver_data = ATH9K_PCI_WOW },
  157. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  158. 0x0034,
  159. PCI_VENDOR_ID_LENOVO,
  160. 0x3214),
  161. .driver_data = ATH9K_PCI_WOW },
  162. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  163. 0x0034,
  164. PCI_VENDOR_ID_ATTANSIC,
  165. 0x0091),
  166. .driver_data = ATH9K_PCI_WOW },
  167. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  168. 0x0034,
  169. PCI_VENDOR_ID_AZWAVE,
  170. 0x2110),
  171. .driver_data = ATH9K_PCI_WOW },
  172. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  173. 0x0034,
  174. PCI_VENDOR_ID_ASUSTEK,
  175. 0x850E),
  176. .driver_data = ATH9K_PCI_WOW },
  177. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  178. 0x0034,
  179. 0x11AD, /* LITEON */
  180. 0x6631),
  181. .driver_data = ATH9K_PCI_WOW },
  182. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  183. 0x0034,
  184. 0x11AD, /* LITEON */
  185. 0x6641),
  186. .driver_data = ATH9K_PCI_WOW },
  187. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  188. 0x0034,
  189. PCI_VENDOR_ID_HP,
  190. 0x1864),
  191. .driver_data = ATH9K_PCI_WOW },
  192. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  193. 0x0034,
  194. 0x14CD, /* USI */
  195. 0x0063),
  196. .driver_data = ATH9K_PCI_WOW },
  197. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  198. 0x0034,
  199. 0x14CD, /* USI */
  200. 0x0064),
  201. .driver_data = ATH9K_PCI_WOW },
  202. { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
  203. 0x0034,
  204. 0x10CF, /* Fujitsu */
  205. 0x1783),
  206. .driver_data = ATH9K_PCI_WOW },
  207. { PCI_VDEVICE(ATHEROS, 0x0034) }, /* PCI-E AR9462 */
  208. { PCI_VDEVICE(ATHEROS, 0x0037) }, /* PCI-E AR1111/AR9485 */
  209. { PCI_VDEVICE(ATHEROS, 0x0036) }, /* PCI-E AR9565 */
  210. { 0 }
  211. };
  212. /* return bus cachesize in 4B word units */
  213. static void ath_pci_read_cachesize(struct ath_common *common, int *csz)
  214. {
  215. struct ath_softc *sc = (struct ath_softc *) common->priv;
  216. u8 u8tmp;
  217. pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp);
  218. *csz = (int)u8tmp;
  219. /*
  220. * This check was put in to avoid "unpleasant" consequences if
  221. * the bootrom has not fully initialized all PCI devices.
  222. * Sometimes the cache line size register is not set
  223. */
  224. if (*csz == 0)
  225. *csz = DEFAULT_CACHELINE >> 2; /* Use the default size */
  226. }
  227. static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data)
  228. {
  229. struct ath_softc *sc = (struct ath_softc *) common->priv;
  230. struct ath9k_platform_data *pdata = sc->dev->platform_data;
  231. if (pdata) {
  232. if (off >= (ARRAY_SIZE(pdata->eeprom_data))) {
  233. ath_err(common,
  234. "%s: eeprom read failed, offset %08x is out of range\n",
  235. __func__, off);
  236. }
  237. *data = pdata->eeprom_data[off];
  238. } else {
  239. struct ath_hw *ah = (struct ath_hw *) common->ah;
  240. common->ops->read(ah, AR5416_EEPROM_OFFSET +
  241. (off << AR5416_EEPROM_S));
  242. if (!ath9k_hw_wait(ah,
  243. AR_EEPROM_STATUS_DATA,
  244. AR_EEPROM_STATUS_DATA_BUSY |
  245. AR_EEPROM_STATUS_DATA_PROT_ACCESS, 0,
  246. AH_WAIT_TIMEOUT)) {
  247. return false;
  248. }
  249. *data = MS(common->ops->read(ah, AR_EEPROM_STATUS_DATA),
  250. AR_EEPROM_STATUS_DATA_VAL);
  251. }
  252. return true;
  253. }
  254. /* Need to be called after we discover btcoex capabilities */
  255. static void ath_pci_aspm_init(struct ath_common *common)
  256. {
  257. struct ath_softc *sc = (struct ath_softc *) common->priv;
  258. struct ath_hw *ah = sc->sc_ah;
  259. struct pci_dev *pdev = to_pci_dev(sc->dev);
  260. struct pci_dev *parent;
  261. u16 aspm;
  262. if (!ah->is_pciexpress)
  263. return;
  264. parent = pdev->bus->self;
  265. if (!parent)
  266. return;
  267. if ((ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) &&
  268. (AR_SREV_9285(ah))) {
  269. /* Bluetooth coexistence requires disabling ASPM. */
  270. pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL,
  271. PCI_EXP_LNKCTL_ASPM_L0S | PCI_EXP_LNKCTL_ASPM_L1);
  272. /*
  273. * Both upstream and downstream PCIe components should
  274. * have the same ASPM settings.
  275. */
  276. pcie_capability_clear_word(parent, PCI_EXP_LNKCTL,
  277. PCI_EXP_LNKCTL_ASPM_L0S | PCI_EXP_LNKCTL_ASPM_L1);
  278. ath_info(common, "Disabling ASPM since BTCOEX is enabled\n");
  279. return;
  280. }
  281. pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &aspm);
  282. if (aspm & (PCI_EXP_LNKCTL_ASPM_L0S | PCI_EXP_LNKCTL_ASPM_L1)) {
  283. ah->aspm_enabled = true;
  284. /* Initialize PCIe PM and SERDES registers. */
  285. ath9k_hw_configpcipowersave(ah, false);
  286. ath_info(common, "ASPM enabled: 0x%x\n", aspm);
  287. }
  288. }
  289. static const struct ath_bus_ops ath_pci_bus_ops = {
  290. .ath_bus_type = ATH_PCI,
  291. .read_cachesize = ath_pci_read_cachesize,
  292. .eeprom_read = ath_pci_eeprom_read,
  293. .aspm_init = ath_pci_aspm_init,
  294. };
  295. static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
  296. {
  297. struct ath_softc *sc;
  298. struct ieee80211_hw *hw;
  299. u8 csz;
  300. u32 val;
  301. int ret = 0;
  302. char hw_name[64];
  303. if (pcim_enable_device(pdev))
  304. return -EIO;
  305. ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
  306. if (ret) {
  307. pr_err("32-bit DMA not available\n");
  308. return ret;
  309. }
  310. ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
  311. if (ret) {
  312. pr_err("32-bit DMA consistent DMA enable failed\n");
  313. return ret;
  314. }
  315. /*
  316. * Cache line size is used to size and align various
  317. * structures used to communicate with the hardware.
  318. */
  319. pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &csz);
  320. if (csz == 0) {
  321. /*
  322. * Linux 2.4.18 (at least) writes the cache line size
  323. * register as a 16-bit wide register which is wrong.
  324. * We must have this setup properly for rx buffer
  325. * DMA to work so force a reasonable value here if it
  326. * comes up zero.
  327. */
  328. csz = L1_CACHE_BYTES / sizeof(u32);
  329. pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, csz);
  330. }
  331. /*
  332. * The default setting of latency timer yields poor results,
  333. * set it to the value used by other systems. It may be worth
  334. * tweaking this setting more.
  335. */
  336. pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0xa8);
  337. pci_set_master(pdev);
  338. /*
  339. * Disable the RETRY_TIMEOUT register (0x41) to keep
  340. * PCI Tx retries from interfering with C3 CPU state.
  341. */
  342. pci_read_config_dword(pdev, 0x40, &val);
  343. if ((val & 0x0000ff00) != 0)
  344. pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
  345. ret = pcim_iomap_regions(pdev, BIT(0), "ath9k");
  346. if (ret) {
  347. dev_err(&pdev->dev, "PCI memory region reserve error\n");
  348. return -ENODEV;
  349. }
  350. hw = ieee80211_alloc_hw(sizeof(struct ath_softc), &ath9k_ops);
  351. if (!hw) {
  352. dev_err(&pdev->dev, "No memory for ieee80211_hw\n");
  353. return -ENOMEM;
  354. }
  355. SET_IEEE80211_DEV(hw, &pdev->dev);
  356. pci_set_drvdata(pdev, hw);
  357. sc = hw->priv;
  358. sc->hw = hw;
  359. sc->dev = &pdev->dev;
  360. sc->mem = pcim_iomap_table(pdev)[0];
  361. sc->driver_data = id->driver_data;
  362. /* Will be cleared in ath9k_start() */
  363. set_bit(SC_OP_INVALID, &sc->sc_flags);
  364. ret = request_irq(pdev->irq, ath_isr, IRQF_SHARED, "ath9k", sc);
  365. if (ret) {
  366. dev_err(&pdev->dev, "request_irq failed\n");
  367. goto err_irq;
  368. }
  369. sc->irq = pdev->irq;
  370. ret = ath9k_init_device(id->device, sc, &ath_pci_bus_ops);
  371. if (ret) {
  372. dev_err(&pdev->dev, "Failed to initialize device\n");
  373. goto err_init;
  374. }
  375. ath9k_hw_name(sc->sc_ah, hw_name, sizeof(hw_name));
  376. wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n",
  377. hw_name, (unsigned long)sc->mem, pdev->irq);
  378. return 0;
  379. err_init:
  380. free_irq(sc->irq, sc);
  381. err_irq:
  382. ieee80211_free_hw(hw);
  383. return ret;
  384. }
  385. static void ath_pci_remove(struct pci_dev *pdev)
  386. {
  387. struct ieee80211_hw *hw = pci_get_drvdata(pdev);
  388. struct ath_softc *sc = hw->priv;
  389. if (!is_ath9k_unloaded)
  390. sc->sc_ah->ah_flags |= AH_UNPLUGGED;
  391. ath9k_deinit_device(sc);
  392. free_irq(sc->irq, sc);
  393. ieee80211_free_hw(sc->hw);
  394. }
  395. #ifdef CONFIG_PM_SLEEP
  396. static int ath_pci_suspend(struct device *device)
  397. {
  398. struct pci_dev *pdev = to_pci_dev(device);
  399. struct ieee80211_hw *hw = pci_get_drvdata(pdev);
  400. struct ath_softc *sc = hw->priv;
  401. if (sc->wow_enabled)
  402. return 0;
  403. /* The device has to be moved to FULLSLEEP forcibly.
  404. * Otherwise the chip never moved to full sleep,
  405. * when no interface is up.
  406. */
  407. ath9k_stop_btcoex(sc);
  408. ath9k_hw_disable(sc->sc_ah);
  409. ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP);
  410. return 0;
  411. }
  412. static int ath_pci_resume(struct device *device)
  413. {
  414. struct pci_dev *pdev = to_pci_dev(device);
  415. struct ieee80211_hw *hw = pci_get_drvdata(pdev);
  416. struct ath_softc *sc = hw->priv;
  417. struct ath_hw *ah = sc->sc_ah;
  418. struct ath_common *common = ath9k_hw_common(ah);
  419. u32 val;
  420. /*
  421. * Suspend/Resume resets the PCI configuration space, so we have to
  422. * re-disable the RETRY_TIMEOUT register (0x41) to keep
  423. * PCI Tx retries from interfering with C3 CPU state
  424. */
  425. pci_read_config_dword(pdev, 0x40, &val);
  426. if ((val & 0x0000ff00) != 0)
  427. pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
  428. ath_pci_aspm_init(common);
  429. ah->reset_power_on = false;
  430. return 0;
  431. }
  432. static SIMPLE_DEV_PM_OPS(ath9k_pm_ops, ath_pci_suspend, ath_pci_resume);
  433. #define ATH9K_PM_OPS (&ath9k_pm_ops)
  434. #else /* !CONFIG_PM_SLEEP */
  435. #define ATH9K_PM_OPS NULL
  436. #endif /* !CONFIG_PM_SLEEP */
  437. MODULE_DEVICE_TABLE(pci, ath_pci_id_table);
  438. static struct pci_driver ath_pci_driver = {
  439. .name = "ath9k",
  440. .id_table = ath_pci_id_table,
  441. .probe = ath_pci_probe,
  442. .remove = ath_pci_remove,
  443. .driver.pm = ATH9K_PM_OPS,
  444. };
  445. int ath_pci_init(void)
  446. {
  447. return pci_register_driver(&ath_pci_driver);
  448. }
  449. void ath_pci_exit(void)
  450. {
  451. pci_unregister_driver(&ath_pci_driver);
  452. }