Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/dev/uart/uart_dev_pl011.c
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static struct ofw_compat_data compat_data[] = { | static struct ofw_compat_data compat_data[] = { | ||||
{"arm,pl011", (uintptr_t)&uart_pl011_class}, | {"arm,pl011", (uintptr_t)&uart_pl011_class}, | ||||
{NULL, (uintptr_t)NULL}, | {NULL, (uintptr_t)NULL}, | ||||
}; | }; | ||||
UART_FDT_CLASS_AND_DEVICE(compat_data); | UART_FDT_CLASS_AND_DEVICE(compat_data); | ||||
#ifdef DEV_ACPI | |||||
static struct acpi_uart_compat_data acpi_compat_data[] = { | |||||
{"ARMH0011", &uart_pl011_class, ACPI_DBG2_ARM_PL011, 2, 0, 0, 0, "uart plo11"}, | |||||
{"ARMH0011", &uart_pl011_class, ACPI_DBG2_ARM_SBSA_GENERIC, 2, 0, 0, 0, "uart plo11"}, | |||||
{NULL, NULL, 0, 0, 0, 0, 0, NULL}, | |||||
}; | |||||
UART_ACPI_CLASS_AND_DEVICE(acpi_compat_data); | |||||
#endif | |||||
static int | static int | ||||
uart_pl011_bus_attach(struct uart_softc *sc) | uart_pl011_bus_attach(struct uart_softc *sc) | ||||
{ | { | ||||
struct uart_bas *bas; | struct uart_bas *bas; | ||||
int reg; | int reg; | ||||
bas = &sc->sc_bas; | bas = &sc->sc_bas; | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |