diff options
author | marius <marius@FreeBSD.org> | 2004-08-14 23:54:27 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2004-08-14 23:54:27 +0000 |
commit | e7f46aca577945ad56f6838b9271e623dd375f20 (patch) | |
tree | 45f3053dc7134b15d707744ad441add24d7905eb /sys/dev/uart/uart_bus_isa.c | |
parent | a3cb350a8c345e37992de17a5d6c55ac37c245a3 (diff) | |
download | FreeBSD-src-e7f46aca577945ad56f6838b9271e623dd375f20.zip FreeBSD-src-e7f46aca577945ad56f6838b9271e623dd375f20.tar.gz |
- Introduce an uart_cpu_identify() which is implemented in uart_cpu_<arch>.c
and that can be used as an identify function for all kinds of busses on a
certain platform. Expect for sparc64 these are only stubs right now. [1]
- For sparc64, add code to its uart_cpu_identify() for registering the on-
board ISA UARTs and their resources based on information obtained from
Open Firmware.
It would be better if this would be done in the OFW ISA code. However, due
to the common FreeBSD ISA code and PNP-IDs not always being present in the
properties of the ISA nodes there seems to be no good way to implement that.
Therefore special casing UARTs as the sole really relevant ISA devices on
sparc64 seemed reasonable. [2]
Approved by: marcel
Discussed with: marcel [1], tmm [2]
Tested by: make universe
Diffstat (limited to 'sys/dev/uart/uart_bus_isa.c')
-rw-r--r-- | sys/dev/uart/uart_bus_isa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_bus_isa.c b/sys/dev/uart/uart_bus_isa.c index d6b5cda..72e0549 100644 --- a/sys/dev/uart/uart_bus_isa.c +++ b/sys/dev/uart/uart_bus_isa.c @@ -39,11 +39,13 @@ __FBSDID("$FreeBSD$"); #include <dev/uart/uart.h> #include <dev/uart/uart_bus.h> +#include <dev/uart/uart_cpu.h> static int uart_isa_probe(device_t dev); static device_method_t uart_isa_methods[] = { /* Device interface */ + DEVMETHOD(device_identify, uart_cpu_identify), DEVMETHOD(device_probe, uart_isa_probe), DEVMETHOD(device_attach, uart_bus_attach), DEVMETHOD(device_detach, uart_bus_detach), |