mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
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:
parent
1ce6e9e1c5
commit
d77db02192
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51765
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user