summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-11-27 12:59:46 +0000
committerkato <kato@FreeBSD.org>1997-11-27 12:59:46 +0000
commit9d800149c5f57d588b35c54523dfbbc797a3e542 (patch)
tree24686a00b708e87ed5f8a8d2c01162150c9065f0 /sys/dev/ep
parentffb62a2a81e43a8c978d643592aabdb7a7b8d6d1 (diff)
downloadFreeBSD-src-9d800149c5f57d588b35c54523dfbbc797a3e542.zip
FreeBSD-src-9d800149c5f57d588b35c54523dfbbc797a3e542.tar.gz
Recognize 3C569 network interface when `PC98' is defined.
Submitted by: HAMADA Naoki <hamada@astec.co.jp>
Diffstat (limited to 'sys/dev/ep')
-rw-r--r--sys/dev/ep/if_ep.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index 466f6df..b029679 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: if_ep.c,v 1.66 1997/11/07 08:52:37 phk Exp $
+ * $Id: if_ep.c,v 1.67 1997/11/20 15:48:32 nate Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@@ -490,11 +490,16 @@ ep_isa_probe(is)
/*
* The iobase was found and MFG_ID was 0x6d50. PROD_ID should be
- * 0x9[0-f]50
+ * 0x9[0-f]50 (IBM-PC)
+ * 0x9[0-f]5[0-f] (PC-98)
*/
GO_WINDOW(0);
k = sc->epb->prod_id;
+#ifdef PC98
+ if ((k & 0xf0f0) != (PROD_ID & 0xf0f0)) {
+#else
if ((k & 0xf0ff) != (PROD_ID & 0xf0ff)) {
+#endif
printf("ep_isa_probe: ignoring model %04x\n", k);
ep_free(sc);
return (0);
OpenPOWER on IntegriCloud