diff options
author | nyan <nyan@FreeBSD.org> | 2002-09-29 13:31:26 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-09-29 13:31:26 +0000 |
commit | 7ce1df07a88c69597f49afb85fe366f4800efdf8 (patch) | |
tree | d78b0f04b947db04843ce30c2205b8a8e881a12e /sys/pc98/cbus | |
parent | 8435c561b3b443cf2e01f970e7322a964489187d (diff) | |
download | FreeBSD-src-7ce1df07a88c69597f49afb85fe366f4800efdf8.zip FreeBSD-src-7ce1df07a88c69597f49afb85fe366f4800efdf8.tar.gz |
Added some buggy PC-98 PnP cards support.
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r-- | sys/pc98/cbus/sio_cbus.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/sys/pc98/cbus/sio_cbus.c b/sys/pc98/cbus/sio_cbus.c index bfcfcc3..10bbdc1 100644 --- a/sys/pc98/cbus/sio_cbus.c +++ b/sys/pc98/cbus/sio_cbus.c @@ -61,6 +61,13 @@ static driver_t sio_isa_driver = { static struct isa_pnp_id sio_ids[] = { {0x0100e4a5, "RSA-98III"}, + {0x11802fbf, NULL}, /* OYO8011 - PC-9801-12X */ + {0x4180a3b8, NULL}, /* NEC8041 - PC-9821CB-B04 */ + {0x4182a3b8, NULL}, /* NEC8241 - (Nw150) */ + {0x5181a3b8, NULL}, /* NEC8151 - PC-9821CB2-B04 */ + {0x5182a3b8, NULL}, /* NEC8251 - PC-9801-12X */ + {0x7182a3b8, NULL}, /* NEC8271 - PC-9801-12X */ + {0x9181a3b8, NULL}, /* NEC8191 - PC-9801-120 */ {0} }; @@ -68,20 +75,28 @@ static int sio_isa_probe(dev) device_t dev; { -#ifdef PC98 int logical_id; -#endif + /* Check isapnp ids */ if (ISA_PNP_PROBE(device_get_parent(dev), dev, sio_ids) == ENXIO) return (ENXIO); -#ifdef PC98 + logical_id = isa_get_logicalid(dev); switch (logical_id) { case 0x0100e4a5: /* RSA-98III */ SET_FLAG(dev, SET_IFTYPE(COM_IF_RSA98III)); break; + case 0x11802fbf: /* PC-9801-12X */ + case 0x4180a3b8: /* PC-9821CB-B04 */ + case 0x4182a3b8: /* (Nw150) */ + case 0x5181a3b8: /* PC-9821CB2-B04 */ + case 0x5182a3b8: /* PC-9801-12X */ + case 0x7182a3b8: /* PC-9801-12X */ + case 0x9181a3b8: /* PC-9801-120 */ + SET_FLAG(dev, SET_IFTYPE(COM_IF_NS16550)); + break; } -#endif + return (sioprobe(dev, 0, 0UL, 0)); } |