diff options
| author | Warner Losh <imp@FreeBSD.org> | 2010-01-25 19:27:20 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2010-01-25 19:27:20 +0000 |
| commit | f17768d6df9e22593aad5220c2d6732fadca493e (patch) | |
| tree | c75b900efec1724dda16a61cce64da173e05ba5f | |
| parent | fe9df26a36834204923a068c4fe31d67f92c1874 (diff) | |
Notes
| -rw-r--r-- | sys/mips/cavium/obio.c | 8 | ||||
| -rw-r--r-- | sys/mips/cavium/uart_cpu_octeonusart.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/mips/cavium/obio.c b/sys/mips/cavium/obio.c index 1349ae25d776..9ef5b45823ff 100644 --- a/sys/mips/cavium/obio.c +++ b/sys/mips/cavium/obio.c @@ -36,8 +36,8 @@ */ /* - * On-board device autoconfiguration support for Intel IQ80321 - * evaluation boards. + * On-board device autoconfiguration support for Cavium OCTEON 1 family of + * SoC devices. */ #include <sys/cdefs.h> @@ -56,6 +56,8 @@ __FBSDID("$FreeBSD$"); #include <mips/cavium/octeon_pcmap_regs.h> #include <mips/cavium/obiovar.h> +extern struct bus_space octeon_uart_tag; + int obio_probe(device_t); int obio_attach(device_t); @@ -125,7 +127,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid, return (NULL); case SYS_RES_IOPORT: rm = &sc->oba_rman; - bt = sc->oba_st; + bt = &octeon_uart_tag; bh = device_get_unit(child) ? OCTEON_MIO_UART1 : OCTEON_MIO_UART0; start = bh; diff --git a/sys/mips/cavium/uart_cpu_octeonusart.c b/sys/mips/cavium/uart_cpu_octeonusart.c index 78fb7397e9aa..d2d8f56d704f 100644 --- a/sys/mips/cavium/uart_cpu_octeonusart.c +++ b/sys/mips/cavium/uart_cpu_octeonusart.c @@ -70,7 +70,6 @@ __FBSDID("$FreeBSD$"); * 64-bit word bus that's on the octeon. We only support simple read/write * in this space. Everything else is undefined. */ - static uint8_t ou_bs_r_1(void *t, bus_space_handle_t handle, bus_size_t offset) { @@ -127,7 +126,7 @@ ou_bs_w_8(void *t, bus_space_handle_t bsh, bus_size_t offset, uint64_t value) oct_write64(bsh + (offset << 3), value); } -static struct bus_space octeon_uart_tag = { +struct bus_space octeon_uart_tag = { .bs_map = generic_bs_map, .bs_unmap = generic_bs_unmap, .bs_subregion = generic_bs_subregion, |
