From 2e9f960200f87530cd84a52990e6ba860eb6c295 Mon Sep 17 00:00:00 2001 From: gonzo Date: Wed, 15 Apr 2009 02:28:26 +0000 Subject: 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. --- sys/mips/alchemy/uart_cpu_alchemy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/mips/alchemy/uart_cpu_alchemy.c') 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); -- cgit v1.1