The UART device infrasturcture wants these defined. Define them just
like we do in Malta. We may want to look at consolidating things because *ALL* mips will *ALWAYS* be memory mapped. The only wrinkle is that the tag may need to be a custom one (see endian issues with the Atheros port for one example).
This commit is contained in:
parent
d60f4f18dc
commit
4b54a733ce
@ -50,6 +50,9 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <mips/octeon1/octeonreg.h>
|
||||
|
||||
bus_space_tag_t uart_bus_space_io;
|
||||
bus_space_tag_t uart_bus_space_mem;
|
||||
|
||||
extern struct uart_class uart_oct16550_class;
|
||||
extern struct uart_ops octeon_usart_ops;
|
||||
extern struct bus_space octeon_bs_tag;
|
||||
@ -80,5 +83,8 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
|
||||
|
||||
di->bas.bsh = OCTEON_UART0ADR;
|
||||
uart_getenv(devtype, di, class);
|
||||
|
||||
uart_bus_space_io = NULL;
|
||||
uart_bus_space_mem = mips_bus_space_generic;
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user