diff options
author | mdodd <mdodd@FreeBSD.org> | 2000-01-23 08:23:38 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2000-01-23 08:23:38 +0000 |
commit | 48769ea871efb3220ebb00766ff84b1181cdd8ba (patch) | |
tree | a4cea2fc283185ca38547e8602956b87cbd17185 /sys/dev/ep | |
parent | 5ecc620e52c82ff8a4617b8355920319eb28dc8d (diff) | |
download | FreeBSD-src-48769ea871efb3220ebb00766ff84b1181cdd8ba.zip FreeBSD-src-48769ea871efb3220ebb00766ff84b1181cdd8ba.tar.gz |
Add the ID for the 3c509-TPC.
Also, while I'm here, add a mechanism to catch unknown board IDs that
are likely to be 3c509s and allow them to be attached.
PR: kern/16304
Submitted by: Kelly Yancey <kbyanc@posi.net>
Diffstat (limited to 'sys/dev/ep')
-rw-r--r-- | sys/dev/ep/if_ep_isa.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/ep/if_ep_isa.c b/sys/dev/ep/if_ep_isa.c index dfb396e..6eb257f 100644 --- a/sys/dev/ep/if_ep_isa.c +++ b/sys/dev/ep/if_ep_isa.c @@ -67,16 +67,19 @@ struct isa_ident { }; const char * ep_isa_match_id (u_int32_t, struct isa_ident *); +#define ISA_ID_3C509_XXX 0x0506d509 #define ISA_ID_3C509_TP 0x506d5090 #define ISA_ID_3C509_BNC 0x506d5091 #define ISA_ID_3C509_COMBO 0x506d5094 #define ISA_ID_3C509_TPO 0x506d5095 +#define ISA_ID_3C509_TPC 0x506d5098 static struct isa_ident ep_isa_devs[] = { { ISA_ID_3C509_TP, "3Com 3C509-TP EtherLink III" }, { ISA_ID_3C509_BNC, "3Com 3C509-BNC EtherLink III" }, { ISA_ID_3C509_COMBO, "3Com 3C509-Combo EtherLink III" }, { ISA_ID_3C509_TPO, "3Com 3C509-TPO EtherLink III" }, + { ISA_ID_3C509_TPC, "3Com 3C509-TPC EtherLink III" }, { 0, NULL }, }; @@ -85,6 +88,7 @@ static struct isa_pnp_id ep_ids[] = { { 0x91506d50, "3Com 3C509B-BNC EtherLink III (PnP)" },/* TCM5091 */ { 0x94506d50, "3Com 3C509B-Combo EtherLink III (PnP)" },/* TCM5094 */ { 0x95506d50, "3Com 3C509B-TPO EtherLink III (PnP)" },/* TCM5095 */ + { 0x98506d50, "3Com 3C509B-TPC EtherLink III (PnP)" },/* TCM5098 */ { 0xf780d041, NULL }, /* PNP80f7 */ { 0, NULL }, }; @@ -130,6 +134,14 @@ ep_isa_match_id (id, isa_devs) return (i->name); i++; } + /* + * If we see a card that is likely to be a 3c509 + * return something so that it will work; be annoying + * so that the user will tell us about it though. + */ + if ((id >> 8) == ISA_ID_3C509_XXX) { + return ("Unknown 3c509; notify maintainer!"); + } return (NULL); } |