aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/sfc/efx.c10
-rw-r--r--drivers/net/sfc/efx.h4
-rw-r--r--drivers/net/sfc/falcon.c3
-rw-r--r--drivers/net/sfc/falcon_boards.c3
-rw-r--r--include/linux/pci_ids.h5
5 files changed, 15 insertions, 10 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index b59abc706d93..f8b9be31c82e 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -2197,13 +2197,15 @@ void efx_schedule_reset(struct efx_nic *efx, enum reset_type type)
2197 2197
2198/* PCI device ID table */ 2198/* PCI device ID table */
2199static DEFINE_PCI_DEVICE_TABLE(efx_pci_table) = { 2199static DEFINE_PCI_DEVICE_TABLE(efx_pci_table) = {
2200 {PCI_DEVICE(EFX_VENDID_SFC, FALCON_A_P_DEVID), 2200 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE,
2201 PCI_DEVICE_ID_SOLARFLARE_SFC4000A_0),
2201 .driver_data = (unsigned long) &falcon_a1_nic_type}, 2202 .driver_data = (unsigned long) &falcon_a1_nic_type},
2202 {PCI_DEVICE(EFX_VENDID_SFC, FALCON_B_P_DEVID), 2203 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE,
2204 PCI_DEVICE_ID_SOLARFLARE_SFC4000B),
2203 .driver_data = (unsigned long) &falcon_b0_nic_type}, 2205 .driver_data = (unsigned long) &falcon_b0_nic_type},
2204 {PCI_DEVICE(EFX_VENDID_SFC, BETHPAGE_A_P_DEVID), 2206 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, BETHPAGE_A_P_DEVID),
2205 .driver_data = (unsigned long) &siena_a0_nic_type}, 2207 .driver_data = (unsigned long) &siena_a0_nic_type},
2206 {PCI_DEVICE(EFX_VENDID_SFC, SIENA_A_P_DEVID), 2208 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, SIENA_A_P_DEVID),
2207 .driver_data = (unsigned long) &siena_a0_nic_type}, 2209 .driver_data = (unsigned long) &siena_a0_nic_type},
2208 {0} /* end of list */ 2210 {0} /* end of list */
2209}; 2211};
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h
index b0d1209ea18d..c7e75234c740 100644
--- a/drivers/net/sfc/efx.h
+++ b/drivers/net/sfc/efx.h
@@ -15,10 +15,6 @@
15#include "filter.h" 15#include "filter.h"
16 16
17/* PCI IDs */ 17/* PCI IDs */
18#define EFX_VENDID_SFC 0x1924
19#define FALCON_A_P_DEVID 0x0703
20#define FALCON_A_S_DEVID 0x6703
21#define FALCON_B_P_DEVID 0x0710
22#define BETHPAGE_A_P_DEVID 0x0803 18#define BETHPAGE_A_P_DEVID 0x0803
23#define SIENA_A_P_DEVID 0x0813 19#define SIENA_A_P_DEVID 0x0813
24 20
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index 94bf4aaf984d..9334b5980202 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -1424,7 +1424,8 @@ static int falcon_probe_nic(struct efx_nic *efx)
1424 } 1424 }
1425 1425
1426 dev = pci_dev_get(efx->pci_dev); 1426 dev = pci_dev_get(efx->pci_dev);
1427 while ((dev = pci_get_device(EFX_VENDID_SFC, FALCON_A_S_DEVID, 1427 while ((dev = pci_get_device(PCI_VENDOR_ID_SOLARFLARE,
1428 PCI_DEVICE_ID_SOLARFLARE_SFC4000A_1,
1428 dev))) { 1429 dev))) {
1429 if (dev->bus == efx->pci_dev->bus && 1430 if (dev->bus == efx->pci_dev->bus &&
1430 dev->devfn == efx->pci_dev->devfn + 1) { 1431 dev->devfn == efx->pci_dev->devfn + 1) {
diff --git a/drivers/net/sfc/falcon_boards.c b/drivers/net/sfc/falcon_boards.c
index b9cc846811d6..6cc16b8cc6f4 100644
--- a/drivers/net/sfc/falcon_boards.c
+++ b/drivers/net/sfc/falcon_boards.c
@@ -764,7 +764,8 @@ int falcon_probe_board(struct efx_nic *efx, u16 revision_info)
764 764
765 if (board->type) { 765 if (board->type) {
766 netif_info(efx, probe, efx->net_dev, "board is %s rev %c%d\n", 766 netif_info(efx, probe, efx->net_dev, "board is %s rev %c%d\n",
767 (efx->pci_dev->subsystem_vendor == EFX_VENDID_SFC) 767 (efx->pci_dev->subsystem_vendor ==
768 PCI_VENDOR_ID_SOLARFLARE)
768 ? board->type->ref_model : board->type->gen_type, 769 ? board->type->ref_model : board->type->gen_type,
769 'A' + board->major, board->minor); 770 'A' + board->major, board->minor);
770 return 0; 771 return 0;
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index ae96bbe54518..1679ff6931f9 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -2302,6 +2302,11 @@
2302#define PCI_DEVICE_ID_RENESAS_SH7785 0x0007 2302#define PCI_DEVICE_ID_RENESAS_SH7785 0x0007
2303#define PCI_DEVICE_ID_RENESAS_SH7786 0x0010 2303#define PCI_DEVICE_ID_RENESAS_SH7786 0x0010
2304 2304
2305#define PCI_VENDOR_ID_SOLARFLARE 0x1924
2306#define PCI_DEVICE_ID_SOLARFLARE_SFC4000A_0 0x0703
2307#define PCI_DEVICE_ID_SOLARFLARE_SFC4000A_1 0x6703
2308#define PCI_DEVICE_ID_SOLARFLARE_SFC4000B 0x0710
2309
2305#define PCI_VENDOR_ID_TDI 0x192E 2310#define PCI_VENDOR_ID_TDI 0x192E
2306#define PCI_DEVICE_ID_TDI_EHCI 0x0101 2311#define PCI_DEVICE_ID_TDI_EHCI 0x0101
2307 2312