Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/atheros/uart_bus_ar933x.c
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | uart_ar933x_probe(device_t dev) | ||||
bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); | bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); | ||||
sc->sc_sysdev->bas.regshft = 0; | sc->sc_sysdev->bas.regshft = 0; | ||||
sc->sc_sysdev->bas.bst = mips_bus_space_generic; | sc->sc_sysdev->bas.bst = mips_bus_space_generic; | ||||
sc->sc_sysdev->bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR); | sc->sc_sysdev->bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR); | ||||
sc->sc_bas.regshft = 0; | sc->sc_bas.regshft = 0; | ||||
sc->sc_bas.bst = mips_bus_space_generic; | sc->sc_bas.bst = mips_bus_space_generic; | ||||
sc->sc_bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR); | sc->sc_bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR); | ||||
return (uart_bus_probe(dev, 2, freq, 0, 0)); | return (uart_bus_probe(dev, 2, 0, freq, 0, 0)); | ||||
} | } | ||||
/* | /* | ||||
* Assume the UART is setup by the bootloader and just echo that. | * Assume the UART is setup by the bootloader and just echo that. | ||||
*/ | */ | ||||
#if defined(EARLY_PRINTF) | #if defined(EARLY_PRINTF) | ||||
static void | static void | ||||
ar933x_early_putc(int c) | ar933x_early_putc(int c) | ||||
Show All 16 Lines |