aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2003-05-03 02:04:58 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2003-05-03 02:04:58 +0000
commit7571a866b91ceed03f1ff7170ea70f240994228c (patch)
treebeb55751260ce0cb3003a07ae655302a3477d708 /sys
parent0e7902c6cdae66af50e9761169cf10c1052db1c8 (diff)
downloadsrc-7571a866b91ceed03f1ff7170ea70f240994228c.tar.gz
src-7571a866b91ceed03f1ff7170ea70f240994228c.zip
Force PnP devices to set SMIT mode.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
Notes
Notes: svn path=/head/; revision=114562
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ct/ct_isa.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/ct/ct_isa.c b/sys/dev/ct/ct_isa.c
index af63f813ed70..c4555a97cec5 100644
--- a/sys/dev/ct/ct_isa.c
+++ b/sys/dev/ct/ct_isa.c
@@ -142,6 +142,15 @@ ct_isa_match(device_t dev)
if (ISA_PNP_PROBE(device_get_parent(dev), dev, ct_pnp_ids) == ENXIO)
return ENXIO;
+ switch (isa_get_logicalid(dev)) {
+ case 0x0100e7b1: /* LHA-301 */
+ case 0x110154dc: /* SC-98III */
+ case 0x4120acb4: /* IFC-NN */
+ /* XXX - force to SMIT mode */
+ device_set_flags(dev, device_get_flags(dev) | 0x40000);
+ break;
+ }
+
if (isa_get_port(dev) == -1)
bus_set_resource(dev, SYS_RES_IOPORT, 0,
BSHW_IOBASE, BSHW_IOSZ);