Use rmand_get_bus{tag,handle} rather than hard wiring things to

I386_BUS_SPACE_IO.  Compiles now on the Alpha, but likely will not
work due to bus space address <-> virtual address mapping bogons that
work for i386 but not alpha.
This commit is contained in:
imp 1999-09-28 19:59:41 +00:00
parent 7c20265b64
commit 199022b994

View File

@ -108,7 +108,7 @@ aha_isa_probe(device_t dev)
/*
* Ensure this port has not already been claimed already
* by a PCI, EISA or ISA adapter.
* by another adapter.
*/
if (aha_check_probed_iop(ioport) != 0)
continue;
@ -124,8 +124,8 @@ aha_isa_probe(device_t dev)
continue;
/* Allocate a softc for use during probing */
aha = aha_alloc(device_get_unit(dev), I386_BUS_SPACE_IO,
ioport);
aha = aha_alloc(device_get_unit(dev), rman_get_bustag(port_res),
rman_get_bushandle(port_res));
if (aha == NULL) {
bus_release_resource(dev, SYS_RES_IOPORT, port_rid,