Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_dev_pl011.c
Context not available. | |||||
.uc_rshift = 2 | .uc_rshift = 2 | ||||
}; | }; | ||||
#ifdef FDT | |||||
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); | ||||
#endif | |||||
#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) | ||||
Context not available. |