1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Use bus_space_handle_t instead of bus_space_tag_t to hold the result

from rman_get_bushandle().
This commit is contained in:
Doug Rabson 2000-05-27 10:02:32 +00:00
parent 20e1658bc2
commit 44eb1261b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60975

View File

@ -113,7 +113,7 @@ mcclock_isa_write(device_t dev, u_int reg, u_int val)
{
struct mcclock_softc *sc = device_get_softc(dev);
bus_space_tag_t iot = rman_get_bustag(sc->port);
bus_space_tag_t ioh = rman_get_bushandle(sc->port);
bus_space_handle_t ioh = rman_get_bushandle(sc->port);
bus_space_write_1(iot, ioh, 0, reg);
bus_space_write_1(iot, ioh, 1, val);
@ -124,7 +124,7 @@ mcclock_isa_read(device_t dev, u_int reg)
{
struct mcclock_softc *sc = device_get_softc(dev);
bus_space_tag_t iot = rman_get_bustag(sc->port);
bus_space_tag_t ioh = rman_get_bushandle(sc->port);
bus_space_handle_t ioh = rman_get_bushandle(sc->port);
bus_space_write_1(iot, ioh, 0, reg);
return bus_space_read_1(iot, ioh, 1);