diff options
author | Jon Mason <jdmason@kudzu.us> | 2012-07-19 17:02:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 13:59:41 -0400 |
commit | 61dc53341dd127372c71ee31b04ba0e8f70d3e8f (patch) | |
tree | 63408fb35477465e6a9302b421b06364859a6d69 /drivers/net | |
parent | 5e80bc783f38271322f9d1bb75ef45af59734144 (diff) |
ixgb: use PCI_VENDOR_ID_INTEL
Use PCI_VENDOR_ID_INTEL from pci_ids.h instead of creating its own
vendor ID #define.
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Bruce Allan <bruce.w.allan@intel.com>
Cc: Carolyn Wyborny <carolyn.wyborny@intel.com>
Cc: Don Skidmore <donald.c.skidmore@intel.com>
Cc: Greg Rose <gregory.v.rose@intel.com>
Cc: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Cc: Alex Duyck <alexander.h.duyck@intel.com>
Cc: John Ronciak <john.ronciak@intel.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb_hw.c | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb_ids.h | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb_main.c | 10 |
3 files changed, 8 insertions, 12 deletions
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_hw.c b/drivers/net/ethernet/intel/ixgb/ixgb_hw.c index 99b69adb4a0f..bf9a220f71fb 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_hw.c +++ b/drivers/net/ethernet/intel/ixgb/ixgb_hw.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 33 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
34 | 34 | ||
35 | #include <linux/pci_ids.h> | ||
35 | #include "ixgb_hw.h" | 36 | #include "ixgb_hw.h" |
36 | #include "ixgb_ids.h" | 37 | #include "ixgb_ids.h" |
37 | 38 | ||
@@ -96,7 +97,7 @@ static u32 ixgb_mac_reset(struct ixgb_hw *hw) | |||
96 | ASSERT(!(ctrl_reg & IXGB_CTRL0_RST)); | 97 | ASSERT(!(ctrl_reg & IXGB_CTRL0_RST)); |
97 | #endif | 98 | #endif |
98 | 99 | ||
99 | if (hw->subsystem_vendor_id == SUN_SUBVENDOR_ID) { | 100 | if (hw->subsystem_vendor_id == PCI_VENDOR_ID_SUN) { |
100 | ctrl_reg = /* Enable interrupt from XFP and SerDes */ | 101 | ctrl_reg = /* Enable interrupt from XFP and SerDes */ |
101 | IXGB_CTRL1_GPI0_EN | | 102 | IXGB_CTRL1_GPI0_EN | |
102 | IXGB_CTRL1_SDP6_DIR | | 103 | IXGB_CTRL1_SDP6_DIR | |
@@ -271,7 +272,7 @@ ixgb_identify_phy(struct ixgb_hw *hw) | |||
271 | } | 272 | } |
272 | 273 | ||
273 | /* update phy type for sun specific board */ | 274 | /* update phy type for sun specific board */ |
274 | if (hw->subsystem_vendor_id == SUN_SUBVENDOR_ID) | 275 | if (hw->subsystem_vendor_id == PCI_VENDOR_ID_SUN) |
275 | phy_type = ixgb_phy_type_bcm; | 276 | phy_type = ixgb_phy_type_bcm; |
276 | 277 | ||
277 | return phy_type; | 278 | return phy_type; |
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_ids.h b/drivers/net/ethernet/intel/ixgb/ixgb_ids.h index 2a58847f46e8..32c1b302d791 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_ids.h +++ b/drivers/net/ethernet/intel/ixgb/ixgb_ids.h | |||
@@ -33,11 +33,6 @@ | |||
33 | ** The Device and Vendor IDs for 10 Gigabit MACs | 33 | ** The Device and Vendor IDs for 10 Gigabit MACs |
34 | **********************************************************************/ | 34 | **********************************************************************/ |
35 | 35 | ||
36 | #define INTEL_VENDOR_ID 0x8086 | ||
37 | #define INTEL_SUBVENDOR_ID 0x8086 | ||
38 | #define SUN_VENDOR_ID 0x108E | ||
39 | #define SUN_SUBVENDOR_ID 0x108E | ||
40 | |||
41 | #define IXGB_DEVICE_ID_82597EX 0x1048 | 36 | #define IXGB_DEVICE_ID_82597EX 0x1048 |
42 | #define IXGB_DEVICE_ID_82597EX_SR 0x1A48 | 37 | #define IXGB_DEVICE_ID_82597EX_SR 0x1A48 |
43 | #define IXGB_DEVICE_ID_82597EX_LR 0x1B48 | 38 | #define IXGB_DEVICE_ID_82597EX_LR 0x1B48 |
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/intel/ixgb/ixgb_main.c index aab649f8c5f0..d05fc95befc5 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_main.c +++ b/drivers/net/ethernet/intel/ixgb/ixgb_main.c | |||
@@ -54,13 +54,13 @@ MODULE_PARM_DESC(copybreak, | |||
54 | * Class, Class Mask, private data (not used) } | 54 | * Class, Class Mask, private data (not used) } |
55 | */ | 55 | */ |
56 | static DEFINE_PCI_DEVICE_TABLE(ixgb_pci_tbl) = { | 56 | static DEFINE_PCI_DEVICE_TABLE(ixgb_pci_tbl) = { |
57 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX, | 57 | {PCI_VENDOR_ID_INTEL, IXGB_DEVICE_ID_82597EX, |
58 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 58 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
59 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_CX4, | 59 | {PCI_VENDOR_ID_INTEL, IXGB_DEVICE_ID_82597EX_CX4, |
60 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 60 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
61 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_SR, | 61 | {PCI_VENDOR_ID_INTEL, IXGB_DEVICE_ID_82597EX_SR, |
62 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 62 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
63 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_LR, | 63 | {PCI_VENDOR_ID_INTEL, IXGB_DEVICE_ID_82597EX_LR, |
64 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 64 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
65 | 65 | ||
66 | /* required last entry */ | 66 | /* required last entry */ |
@@ -195,7 +195,7 @@ ixgb_irq_enable(struct ixgb_adapter *adapter) | |||
195 | { | 195 | { |
196 | u32 val = IXGB_INT_RXT0 | IXGB_INT_RXDMT0 | | 196 | u32 val = IXGB_INT_RXT0 | IXGB_INT_RXDMT0 | |
197 | IXGB_INT_TXDW | IXGB_INT_LSC; | 197 | IXGB_INT_TXDW | IXGB_INT_LSC; |
198 | if (adapter->hw.subsystem_vendor_id == SUN_SUBVENDOR_ID) | 198 | if (adapter->hw.subsystem_vendor_id == PCI_VENDOR_ID_SUN) |
199 | val |= IXGB_INT_GPI0; | 199 | val |= IXGB_INT_GPI0; |
200 | IXGB_WRITE_REG(&adapter->hw, IMS, val); | 200 | IXGB_WRITE_REG(&adapter->hw, IMS, val); |
201 | IXGB_WRITE_FLUSH(&adapter->hw); | 201 | IXGB_WRITE_FLUSH(&adapter->hw); |