pci.c (ee5db7e47faccd07a8a17f73afb30345f8331e61) | pci.c (935477ed7b537cf28b38f0c6b4471915d8c0e12a) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 26static const struct pci_device_id ath_pci_id_table[] = { 27 { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ 28 { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */ 29 { PCI_VDEVICE(ATHEROS, 0x0027) }, /* PCI */ 30 { PCI_VDEVICE(ATHEROS, 0x0029) }, /* PCI */ 31 { PCI_VDEVICE(ATHEROS, 0x002A) }, /* PCI-E */ 32 | 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 --- 16 unchanged lines hidden (view full) --- 25 26static const struct pci_device_id ath_pci_id_table[] = { 27 { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ 28 { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */ 29 { PCI_VDEVICE(ATHEROS, 0x0027) }, /* PCI */ 30 { PCI_VDEVICE(ATHEROS, 0x0029) }, /* PCI */ 31 { PCI_VDEVICE(ATHEROS, 0x002A) }, /* PCI-E */ 32 |
33#ifdef CONFIG_ATH9K_PCOEM |
|
33 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 34 0x002A, 35 PCI_VENDOR_ID_AZWAVE, 36 0x1C71), 37 .driver_data = ATH9K_PCI_D3_L1_WAR }, 38 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 39 0x002A, 40 PCI_VENDOR_ID_FOXCONN, --- 36 unchanged lines hidden (view full) --- 77 .driver_data = ATH9K_PCI_D3_L1_WAR }, 78 79 /* AR9285 card for Asus */ 80 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 81 0x002B, 82 PCI_VENDOR_ID_AZWAVE, 83 0x2C37), 84 .driver_data = ATH9K_PCI_BT_ANT_DIV }, | 34 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 35 0x002A, 36 PCI_VENDOR_ID_AZWAVE, 37 0x1C71), 38 .driver_data = ATH9K_PCI_D3_L1_WAR }, 39 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 40 0x002A, 41 PCI_VENDOR_ID_FOXCONN, --- 36 unchanged lines hidden (view full) --- 78 .driver_data = ATH9K_PCI_D3_L1_WAR }, 79 80 /* AR9285 card for Asus */ 81 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 82 0x002B, 83 PCI_VENDOR_ID_AZWAVE, 84 0x2C37), 85 .driver_data = ATH9K_PCI_BT_ANT_DIV }, |
86#endif |
|
85 86 { PCI_VDEVICE(ATHEROS, 0x002B) }, /* PCI-E */ 87 { PCI_VDEVICE(ATHEROS, 0x002C) }, /* PCI-E 802.11n bonded out */ 88 { PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI */ 89 { PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */ 90 91 /* Killer Wireless (3x3) */ 92 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, --- 4 unchanged lines hidden (view full) --- 97 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 98 0x0030, 99 0x1A56, 100 0x2001), 101 .driver_data = ATH9K_PCI_KILLER }, 102 103 { PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E AR9300 */ 104 | 87 88 { PCI_VDEVICE(ATHEROS, 0x002B) }, /* PCI-E */ 89 { PCI_VDEVICE(ATHEROS, 0x002C) }, /* PCI-E 802.11n bonded out */ 90 { PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI */ 91 { PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */ 92 93 /* Killer Wireless (3x3) */ 94 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, --- 4 unchanged lines hidden (view full) --- 99 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 100 0x0030, 101 0x1A56, 102 0x2001), 103 .driver_data = ATH9K_PCI_KILLER }, 104 105 { PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E AR9300 */ 106 |
107#ifdef CONFIG_ATH9K_PCOEM |
|
105 /* PCI-E CUS198 */ 106 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 107 0x0032, 108 PCI_VENDOR_ID_AZWAVE, 109 0x2086), 110 .driver_data = ATH9K_PCI_CUS198 | ATH9K_PCI_BT_ANT_DIV }, 111 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 112 0x0032, --- 176 unchanged lines hidden (view full) --- 289 0x1B9A, /* XAVI */ 290 0x1C01), 291 .driver_data = ATH9K_PCI_NO_PLL_PWRSAVE }, 292 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 293 0x0032, 294 PCI_VENDOR_ID_ASUSTEK, 295 0x850D), 296 .driver_data = ATH9K_PCI_NO_PLL_PWRSAVE }, | 108 /* PCI-E CUS198 */ 109 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 110 0x0032, 111 PCI_VENDOR_ID_AZWAVE, 112 0x2086), 113 .driver_data = ATH9K_PCI_CUS198 | ATH9K_PCI_BT_ANT_DIV }, 114 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 115 0x0032, --- 176 unchanged lines hidden (view full) --- 292 0x1B9A, /* XAVI */ 293 0x1C01), 294 .driver_data = ATH9K_PCI_NO_PLL_PWRSAVE }, 295 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 296 0x0032, 297 PCI_VENDOR_ID_ASUSTEK, 298 0x850D), 299 .driver_data = ATH9K_PCI_NO_PLL_PWRSAVE }, |
300#endif |
|
297 298 { PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E AR9485 */ 299 { PCI_VDEVICE(ATHEROS, 0x0033) }, /* PCI-E AR9580 */ 300 | 301 302 { PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E AR9485 */ 303 { PCI_VDEVICE(ATHEROS, 0x0033) }, /* PCI-E AR9580 */ 304 |
305#ifdef CONFIG_ATH9K_PCOEM |
|
301 /* PCI-E CUS217 */ 302 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 303 0x0034, 304 PCI_VENDOR_ID_AZWAVE, 305 0x2116), 306 .driver_data = ATH9K_PCI_CUS217 }, 307 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 308 0x0034, --- 343 unchanged lines hidden (view full) --- 652 0x0036, 653 PCI_VENDOR_ID_DELL, 654 0x020E), 655 .driver_data = ATH9K_PCI_AR9565_2ANT | ATH9K_PCI_BT_ANT_DIV }, 656 657 /* PCI-E AR9565 (WB335) */ 658 { PCI_VDEVICE(ATHEROS, 0x0036), 659 .driver_data = ATH9K_PCI_BT_ANT_DIV }, | 306 /* PCI-E CUS217 */ 307 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 308 0x0034, 309 PCI_VENDOR_ID_AZWAVE, 310 0x2116), 311 .driver_data = ATH9K_PCI_CUS217 }, 312 { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, 313 0x0034, --- 343 unchanged lines hidden (view full) --- 657 0x0036, 658 PCI_VENDOR_ID_DELL, 659 0x020E), 660 .driver_data = ATH9K_PCI_AR9565_2ANT | ATH9K_PCI_BT_ANT_DIV }, 661 662 /* PCI-E AR9565 (WB335) */ 663 { PCI_VDEVICE(ATHEROS, 0x0036), 664 .driver_data = ATH9K_PCI_BT_ANT_DIV }, |
665#endif |
|
660 661 { 0 } 662}; 663 664 665/* return bus cachesize in 4B word units */ 666static void ath_pci_read_cachesize(struct ath_common *common, int *csz) 667{ --- 310 unchanged lines hidden --- | 666 667 { 0 } 668}; 669 670 671/* return bus cachesize in 4B word units */ 672static void ath_pci_read_cachesize(struct ath_common *common, int *csz) 673{ --- 310 unchanged lines hidden --- |