diff options
author | gonzo <gonzo@FreeBSD.org> | 2009-04-19 22:02:14 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2009-04-19 22:02:14 +0000 |
commit | 3e1136f76b8ef94685bafc77846cb3263a0205af (patch) | |
tree | 587c2de902574167b4ccb6fe12e16f3cfbae4bbd /sys/mips/alchemy | |
parent | f5a7a5d71cda881653c3e667b96c9f912f99b1af (diff) | |
download | FreeBSD-src-3e1136f76b8ef94685bafc77846cb3263a0205af.zip FreeBSD-src-3e1136f76b8ef94685bafc77846cb3263a0205af.tar.gz |
- Make mips_bus_space_generic be of type bus_space_tag_t instead of
struct bus_space and update all relevant places.
Diffstat (limited to 'sys/mips/alchemy')
-rw-r--r-- | sys/mips/alchemy/obio.c | 2 | ||||
-rw-r--r-- | sys/mips/alchemy/uart_cpu_alchemy.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/mips/alchemy/obio.c b/sys/mips/alchemy/obio.c index 7e61ff5..8d83928 100644 --- a/sys/mips/alchemy/obio.c +++ b/sys/mips/alchemy/obio.c @@ -269,7 +269,7 @@ obio_activate_resource(device_t bus, device_t child, int type, int rid, vaddr = (void *)MIPS_PHYS_TO_KSEG1((intptr_t)rman_get_start(r)); rman_set_virtual(r, vaddr); - rman_set_bustag(r, &mips_bus_space_generic); + rman_set_bustag(r, mips_bus_space_generic); rman_set_bushandle(r, (bus_space_handle_t)vaddr); } diff --git a/sys/mips/alchemy/uart_cpu_alchemy.c b/sys/mips/alchemy/uart_cpu_alchemy.c index d38d4cd..c995130 100644 --- a/sys/mips/alchemy/uart_cpu_alchemy.c +++ b/sys/mips/alchemy/uart_cpu_alchemy.c @@ -63,7 +63,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) di->ops = uart_getops(&uart_ns8250_class); di->bas.chan = 0; - di->bas.bst = &mips_bus_space_generic; + di->bas.bst = mips_bus_space_generic; di->bas.regshft = 0; di->bas.rclk = 0; di->baudrate = 115200; @@ -72,7 +72,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) di->parity = UART_PARITY_NONE; uart_bus_space_io = 0; - uart_bus_space_mem = &mips_bus_space_generic; + uart_bus_space_mem = mips_bus_space_generic; di->bas.bsh = MIPS_PHYS_TO_KSEG1(UART0_BASE); return (0); |