netdev
[Top] [All Lists]

[PATCH] (18/23) sk98: update pci_id table

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH] (18/23) sk98: update pci_id table
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Thu, 11 Nov 2004 16:07:30 -0800
Cc: Michael Heyse <mhk@xxxxxxxxxxxxxxxxx>, Mirko Lindner <mlindner@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20041111154225.5cf85567@xxxxxxxxxxxxxxxxx>
Organization: Open Source Development Lab
References: <4192C60A.1050205@xxxxxxxxxxxxxxxxx> <20041111154225.5cf85567@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Reformat and update pci id table.  Add values from lastest SysKonnect
driver, and use pci_id defines if available.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>

diff -Nru a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c
--- a/drivers/net/sk98lin/skge.c        2004-11-04 10:30:02 -08:00
+++ b/drivers/net/sk98lin/skge.c        2004-11-04 10:30:02 -08:00
@@ -277,24 +277,45 @@
 static uintptr_t TxQueueAddr[SK_MAX_MACS][2] = {{0x680, 0x600},{0x780, 0x700}};
 static uintptr_t RxQueueAddr[SK_MAX_MACS] = {0x400, 0x480};
 
-
-static struct pci_device_id sk98lin_pci_tbl[] = {
-       { PCI_VENDOR_ID_3COM, 0x1700, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_3COM, 0x80eb, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_SYSKONNECT, 0x4300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_SYSKONNECT, 0x4320, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_DLINK, 0x4c00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_MARVELL, 0x4320, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+static struct pci_device_id sk98lin_pci_tbl[] __devinitdata = {
+       { PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940, 
+         PCI_ANY_ID, PCI_ANY_ID }, 
+       { PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940B, 
+         PCI_ANY_ID, PCI_ANY_ID }, 
+       { PCI_VENDOR_ID_SYSKONNECT, PCI_DEVICE_ID_SYSKONNECT_GE,
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_SYSKONNECT, PCI_DEVICE_ID_SYSKONNECT_YU,
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_SYSKONNECT, 0x9E00, /* SK-9Exx 10/100/1000Base-T 
Adapter */
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_DLINK, PCI_DEVICE_ID_DLINK_DGE510T,
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_MARVELL, 0x4320, /* Gigabit Ethernet Controller */
+         PCI_ANY_ID, PCI_ANY_ID },
 #if 0  /* don't handle Yukon2 cards at the moment -- mlindner@xxxxxxxxxxxxx */
-       { PCI_VENDOR_ID_MARVELL, 0x4360, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_MARVELL, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+       { PCI_VENDOR_ID_MARVELL, 0x4350, /* Fast Ethernet Controller */
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_MARVELL, 0x4351, /* Fast Ethernet Controller */
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_MARVELL, 0x4360, /* Gigabit Ethernet Controller */
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_MARVELL, 0x4361, /* Gigabit Ethernet Controller */
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_MARVELL, 0x4362, /* Gigabit Ethernet Controller */
+         PCI_ANY_ID, PCI_ANY_ID },
 #endif
-       { PCI_VENDOR_ID_MARVELL, 0x5005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_CNET, 0x434e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_LINKSYS, 0x1032, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { PCI_VENDOR_ID_LINKSYS, 0x1064, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { 0, }
+       { PCI_VENDOR_ID_MARVELL, 0x5005, /* Marvell (11ab), Belkin */
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_CNET, PCI_DEVICE_ID_CNET_GIGACARD,
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_LINKSYS, PCI_DEVICE_ID_LINKSYS_EG1032,
+         PCI_ANY_ID, PCI_ANY_ID },
+       { PCI_VENDOR_ID_LINKSYS, PCI_DEVICE_ID_LINKSYS_EG1064,
+         PCI_ANY_ID, PCI_ANY_ID },
+       { 0 }
 };
+
+MODULE_DEVICE_TABLE(pci, sk98lin_pci_tbl);
 
 static struct pci_driver skge_driver = {
        .name           = DRIVER_FILE_NAME,

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] (18/23) sk98: update pci_id table, Stephen Hemminger <=