From 2331fb5799ee5caf1f53ee826d349ad947e53fc5 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 7 Nov 2003 22:04:26 +0000 Subject: [PATCH] Ahh, the joys of badge engineering. Tell the sk driver that the Linksys EG1032 is yet another variation. It looks just like the 3c940 except it only has a Marvell logo and no 3com logo. --- sys/dev/sk/if_sk.c | 6 ++++++ sys/dev/sk/if_skreg.h | 10 ++++++++++ sys/pci/if_sk.c | 6 ++++++ sys/pci/if_skreg.h | 10 ++++++++++ 4 files changed, 32 insertions(+) diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 27732368b59c..0358635415c3 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -156,6 +156,11 @@ static struct sk_type sk_devs[] = { DEVICEID_3COM_3C940, "3Com 3C940 Gigabit Ethernet" }, + { + VENDORID_LINKSYS, + DEVICEID_LINKSYS_EG1032, + "Linksys EG1032 Gigabit Ethernet" + }, { 0, 0, NULL } }; @@ -1519,6 +1524,7 @@ skc_attach(dev) break; case DEVICEID_SK_V2: case DEVICEID_3COM_3C940: + case DEVICEID_LINKSYS_EG1032: sc->sk_type = SK_YUKON; break; } diff --git a/sys/dev/sk/if_skreg.h b/sys/dev/sk/if_skreg.h index be7b9a250aed..04c2930482ca 100644 --- a/sys/dev/sk/if_skreg.h +++ b/sys/dev/sk/if_skreg.h @@ -75,6 +75,16 @@ */ #define DEVICEID_3COM_3C940 0x1700 +/* + * Linksys PCI vendor ID + */ +#define VENDORID_LINKSYS 0x1737 + +/* + * Linksys gigabit ethernet device ID + */ +#define DEVICEID_LINKSYS_EG1032 0x1032 + /* * GEnesis registers. The GEnesis chip has a 256-byte I/O window * but internally it has a 16K register space. This 16K space is diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 27732368b59c..0358635415c3 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -156,6 +156,11 @@ static struct sk_type sk_devs[] = { DEVICEID_3COM_3C940, "3Com 3C940 Gigabit Ethernet" }, + { + VENDORID_LINKSYS, + DEVICEID_LINKSYS_EG1032, + "Linksys EG1032 Gigabit Ethernet" + }, { 0, 0, NULL } }; @@ -1519,6 +1524,7 @@ skc_attach(dev) break; case DEVICEID_SK_V2: case DEVICEID_3COM_3C940: + case DEVICEID_LINKSYS_EG1032: sc->sk_type = SK_YUKON; break; } diff --git a/sys/pci/if_skreg.h b/sys/pci/if_skreg.h index be7b9a250aed..04c2930482ca 100644 --- a/sys/pci/if_skreg.h +++ b/sys/pci/if_skreg.h @@ -75,6 +75,16 @@ */ #define DEVICEID_3COM_3C940 0x1700 +/* + * Linksys PCI vendor ID + */ +#define VENDORID_LINKSYS 0x1737 + +/* + * Linksys gigabit ethernet device ID + */ +#define DEVICEID_LINKSYS_EG1032 0x1032 + /* * GEnesis registers. The GEnesis chip has a 256-byte I/O window * but internally it has a 16K register space. This 16K space is