diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-10-24 12:04:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 07:10:18 -0400 |
commit | f0e08fac06596a760f074c08521550d93b96336e (patch) | |
tree | 4499759d62e374f9186973c4ce737f560394fea1 /drivers | |
parent | a9ac07deeb4b880aea3eaccf7ec913ac902aeef9 (diff) |
netxen: add PCI IDs for new chip
Add PCI vendor and device IDs for QLE8240 and QLE8242
CNA devices.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 2 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_ethtool.c | 4 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 6 |
3 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 5ba923bd9d77..5d0810f28a01 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -74,8 +74,6 @@ | |||
74 | #define NETXEN_FLASH_TOTAL_SIZE (NETXEN_NUM_FLASH_SECTORS \ | 74 | #define NETXEN_FLASH_TOTAL_SIZE (NETXEN_NUM_FLASH_SECTORS \ |
75 | * NETXEN_FLASH_SECTOR_SIZE) | 75 | * NETXEN_FLASH_SECTOR_SIZE) |
76 | 76 | ||
77 | #define PHAN_VENDOR_ID 0x4040 | ||
78 | |||
79 | #define RCV_DESC_RINGSIZE(rds_ring) \ | 77 | #define RCV_DESC_RINGSIZE(rds_ring) \ |
80 | (sizeof(struct rcv_desc) * (rds_ring)->num_desc) | 78 | (sizeof(struct rcv_desc) * (rds_ring)->num_desc) |
81 | #define RCV_BUFF_RINGSIZE(rds_ring) \ | 79 | #define RCV_BUFF_RINGSIZE(rds_ring) \ |
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c index a3b18e0c9670..c86095eb5d9e 100644 --- a/drivers/net/netxen/netxen_nic_ethtool.c +++ b/drivers/net/netxen/netxen_nic_ethtool.c | |||
@@ -688,8 +688,8 @@ static int netxen_nic_reg_test(struct net_device *dev) | |||
688 | u32 data_read, data_written; | 688 | u32 data_read, data_written; |
689 | 689 | ||
690 | data_read = NXRD32(adapter, NETXEN_PCIX_PH_REG(0)); | 690 | data_read = NXRD32(adapter, NETXEN_PCIX_PH_REG(0)); |
691 | if ((data_read & 0xffff) != PHAN_VENDOR_ID) | 691 | if ((data_read & 0xffff) != adapter->pdev->vendor) |
692 | return 1; | 692 | return 1; |
693 | 693 | ||
694 | data_written = (u32)0xa5a5a5a5; | 694 | data_written = (u32)0xa5a5a5a5; |
695 | 695 | ||
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index fe4059ff82f0..53e728907d5a 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -92,6 +92,11 @@ static void netxen_config_indev_addr(struct net_device *dev, unsigned long); | |||
92 | #define ENTRY(device) \ | 92 | #define ENTRY(device) \ |
93 | {PCI_DEVICE(PCI_VENDOR_ID_NETXEN, (device)), \ | 93 | {PCI_DEVICE(PCI_VENDOR_ID_NETXEN, (device)), \ |
94 | .class = PCI_CLASS_NETWORK_ETHERNET << 8, .class_mask = ~0} | 94 | .class = PCI_CLASS_NETWORK_ETHERNET << 8, .class_mask = ~0} |
95 | #define ENTRY2(device) \ | ||
96 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, (device)), \ | ||
97 | .class = PCI_CLASS_NETWORK_ETHERNET << 8, .class_mask = ~0} | ||
98 | |||
99 | #define PCI_DEVICE_ID_QLOGIC_QLE824X 0x8020 | ||
95 | 100 | ||
96 | static struct pci_device_id netxen_pci_tbl[] __devinitdata = { | 101 | static struct pci_device_id netxen_pci_tbl[] __devinitdata = { |
97 | ENTRY(PCI_DEVICE_ID_NX2031_10GXSR), | 102 | ENTRY(PCI_DEVICE_ID_NX2031_10GXSR), |
@@ -102,6 +107,7 @@ static struct pci_device_id netxen_pci_tbl[] __devinitdata = { | |||
102 | ENTRY(PCI_DEVICE_ID_NX2031_XG_MGMT), | 107 | ENTRY(PCI_DEVICE_ID_NX2031_XG_MGMT), |
103 | ENTRY(PCI_DEVICE_ID_NX2031_XG_MGMT2), | 108 | ENTRY(PCI_DEVICE_ID_NX2031_XG_MGMT2), |
104 | ENTRY(PCI_DEVICE_ID_NX3031), | 109 | ENTRY(PCI_DEVICE_ID_NX3031), |
110 | ENTRY2(PCI_DEVICE_ID_QLOGIC_QLE824X), | ||
105 | {0,} | 111 | {0,} |
106 | }; | 112 | }; |
107 | 113 | ||