summaryrefslogtreecommitdiffstats
path: root/sys/mips/alchemy/uart_cpu_alchemy.c
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2009-04-15 02:28:26 +0000
committergonzo <gonzo@FreeBSD.org>2009-04-15 02:28:26 +0000
commit2e9f960200f87530cd84a52990e6ba860eb6c295 (patch)
tree60983c081e4a042108494d5ad65f6b991b704ee1 /sys/mips/alchemy/uart_cpu_alchemy.c
parent7cef6c82d60a94b9e456159bbe5b5fc06151a91a (diff)
downloadFreeBSD-src-2e9f960200f87530cd84a52990e6ba860eb6c295.zip
FreeBSD-src-2e9f960200f87530cd84a52990e6ba860eb6c295.tar.gz
Use FreeBSD/arm approach for handling bus space access: space tag is a pointer
to bus_space structure that defines access methods and hence every bus can define own accessors. Default space is mips_bus_space_generic. It's a simple interface to physical memory, values are read with regard to host system byte order.
Diffstat (limited to 'sys/mips/alchemy/uart_cpu_alchemy.c')
-rw-r--r--sys/mips/alchemy/uart_cpu_alchemy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/alchemy/uart_cpu_alchemy.c b/sys/mips/alchemy/uart_cpu_alchemy.c
index 931aed6..d38d4cd 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 = 0;
+ 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_PHYS_TO_KSEG1(UART0_BASE);
+ uart_bus_space_mem = &mips_bus_space_generic;
di->bas.bsh = MIPS_PHYS_TO_KSEG1(UART0_BASE);
return (0);
OpenPOWER on IntegriCloud