diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
commit | 895950c2a6565d9eefda4a38b00fa28537e39fcb (patch) | |
tree | db0a2c40c19bc28aedfe8dea88b93039f2c06f81 /drivers | |
parent | d9993be65a77f500ae926176baa264816bfe3816 (diff) |
tg3: Use DEFINE_PCI_DEVICE_TABLE
Moves the PCI tables to the right read-only section.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tg3.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 57e19fb1324f..92fc29910c2d 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -13086,17 +13086,15 @@ static inline u32 tg3_rx_ret_ring_size(struct tg3 *tp) | |||
13086 | return 512; | 13086 | return 512; |
13087 | } | 13087 | } |
13088 | 13088 | ||
13089 | DEFINE_PCI_DEVICE_TABLE(write_reorder_chipsets) = { | ||
13090 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_FE_GATE_700C) }, | ||
13091 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE) }, | ||
13092 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8385_0) }, | ||
13093 | { }, | ||
13094 | }; | ||
13095 | |||
13089 | static int __devinit tg3_get_invariants(struct tg3 *tp) | 13096 | static int __devinit tg3_get_invariants(struct tg3 *tp) |
13090 | { | 13097 | { |
13091 | static struct pci_device_id write_reorder_chipsets[] = { | ||
13092 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, | ||
13093 | PCI_DEVICE_ID_AMD_FE_GATE_700C) }, | ||
13094 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, | ||
13095 | PCI_DEVICE_ID_AMD_8131_BRIDGE) }, | ||
13096 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, | ||
13097 | PCI_DEVICE_ID_VIA_8385_0) }, | ||
13098 | { }, | ||
13099 | }; | ||
13100 | u32 misc_ctrl_reg; | 13098 | u32 misc_ctrl_reg; |
13101 | u32 pci_state_reg, grc_misc_cfg; | 13099 | u32 pci_state_reg, grc_misc_cfg; |
13102 | u32 val; | 13100 | u32 val; |
@@ -14229,6 +14227,11 @@ static int __devinit tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dm | |||
14229 | 14227 | ||
14230 | #define TEST_BUFFER_SIZE 0x2000 | 14228 | #define TEST_BUFFER_SIZE 0x2000 |
14231 | 14229 | ||
14230 | DEFINE_PCI_DEVICE_TABLE(dma_wait_state_chipsets) = { | ||
14231 | { PCI_DEVICE(PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_UNI_N_PCI15) }, | ||
14232 | { }, | ||
14233 | }; | ||
14234 | |||
14232 | static int __devinit tg3_test_dma(struct tg3 *tp) | 14235 | static int __devinit tg3_test_dma(struct tg3 *tp) |
14233 | { | 14236 | { |
14234 | dma_addr_t buf_dma; | 14237 | dma_addr_t buf_dma; |
@@ -14398,11 +14401,6 @@ static int __devinit tg3_test_dma(struct tg3 *tp) | |||
14398 | } | 14401 | } |
14399 | if ((tp->dma_rwctrl & DMA_RWCTRL_WRITE_BNDRY_MASK) != | 14402 | if ((tp->dma_rwctrl & DMA_RWCTRL_WRITE_BNDRY_MASK) != |
14400 | DMA_RWCTRL_WRITE_BNDRY_16) { | 14403 | DMA_RWCTRL_WRITE_BNDRY_16) { |
14401 | static struct pci_device_id dma_wait_state_chipsets[] = { | ||
14402 | { PCI_DEVICE(PCI_VENDOR_ID_APPLE, | ||
14403 | PCI_DEVICE_ID_APPLE_UNI_N_PCI15) }, | ||
14404 | { }, | ||
14405 | }; | ||
14406 | 14404 | ||
14407 | /* DMA test passed without adjusting DMA boundary, | 14405 | /* DMA test passed without adjusting DMA boundary, |
14408 | * now look for chipsets that are known to expose the | 14406 | * now look for chipsets that are known to expose the |