diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2003-09-23 09:55:21 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2003-09-23 09:55:21 +0000 |
| commit | b8759afc2bc45e953a0898e6c4f8b8bf2843cfba (patch) | |
| tree | 1985878b350f815384c361bd5b117b5d6b5f3cb4 | |
| parent | 82df4f3134d636d48f7854df45a3d9337c8ca610 (diff) | |
Notes
| -rw-r--r-- | sys/dev/uart/uart_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 77e4604dbb4c..501156fea0ad 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -325,6 +325,10 @@ uart_bus_attach(device_t dev) if (sc->sc_rres == NULL) return (ENXIO); + sc->sc_bas.iobase = rman_get_start(sc->sc_rres); + sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres); + sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); + sc->sc_irid = 0; sc->sc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->sc_irid, 0, ~0, 1, RF_ACTIVE); |
