diff options
author | nyan <nyan@FreeBSD.org> | 2000-08-17 12:15:45 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2000-08-17 12:15:45 +0000 |
commit | 25d5946a2e96f2dba025397ed31046e3e7ebfdde (patch) | |
tree | bf6f1110ddcd9d9c93755bdacc339e8c8b22aa11 /sys/dev/ed/if_ed_isa.c | |
parent | 395771585c2aca7ec6d0a59b0a95b19012b3f890 (diff) | |
download | FreeBSD-src-25d5946a2e96f2dba025397ed31046e3e7ebfdde.zip FreeBSD-src-25d5946a2e96f2dba025397ed31046e3e7ebfdde.tar.gz |
- Fixed the conversion to bus_space interface.
- Added PC-98 Cbus devices support.
The original patch is submitted by chi@bd.mbn.or.jp (Chiharu Shibata)
- Removed old ed driver.
Diffstat (limited to 'sys/dev/ed/if_ed_isa.c')
-rw-r--r-- | sys/dev/ed/if_ed_isa.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/ed/if_ed_isa.c b/sys/dev/ed/if_ed_isa.c index 8894fda..f4572f7 100644 --- a/sys/dev/ed/if_ed_isa.c +++ b/sys/dev/ed/if_ed_isa.c @@ -66,6 +66,7 @@ ed_isa_probe(dev) device_t dev; { struct ed_softc *sc = device_get_softc(dev); + int flags = device_get_flags(dev); int error = 0; bzero(sc, sizeof(struct ed_softc)); @@ -85,22 +86,22 @@ ed_isa_probe(dev) /* Heuristic probes */ - error = ed_probe_WD80x3(dev); + error = ed_probe_WD80x3(dev, 0, flags); if (error == 0) goto end; ed_release_resources(dev); - error = ed_probe_3Com(dev); + error = ed_probe_3Com(dev, 0, flags); if (error == 0) goto end; ed_release_resources(dev); - error = ed_probe_Novell(dev); + error = ed_probe_Novell(dev, 0, flags); if (error == 0) goto end; ed_release_resources(dev); - error = ed_probe_HP_pclanp(dev); + error = ed_probe_HP_pclanp(dev, 0, flags); if (error == 0) goto end; ed_release_resources(dev); @@ -125,17 +126,18 @@ ed_isa_attach(dev) ed_alloc_port(dev, sc->port_rid, sc->port_used); if (sc->mem_used) ed_alloc_memory(dev, sc->mem_rid, sc->mem_used); + ed_alloc_irq(dev, sc->irq_rid, 0); - + error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, edintr, sc, &sc->irq_handle); if (error) { ed_release_resources(dev); return (error); - } + } return ed_attach(sc, device_get_unit(dev), flags); -} +} static device_method_t ed_isa_methods[] = { /* Device interface */ |