summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2006-04-28 18:29:23 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2006-04-28 18:29:23 +0000
commita31f91a061ec20129d1ccb2377c0e28c25210146 (patch)
tree807b9a33704b256f23a50d0ec75097d9551da0e5
parent8a2f9e6c0f573e35118107e36e2985ddca896c79 (diff)
Notes
-rw-r--r--sys/dev/uart/uart_bus.h1
-rw-r--r--sys/dev/uart/uart_core.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_bus.h b/sys/dev/uart/uart_bus.h
index 19ceab0d2cef..5396515a8c91 100644
--- a/sys/dev/uart/uart_bus.h
+++ b/sys/dev/uart/uart_bus.h
@@ -140,6 +140,7 @@ extern char uart_driver_name[];
int uart_bus_attach(device_t dev);
int uart_bus_detach(device_t dev);
serdev_intr_t *uart_bus_ihand(device_t dev, int ipend);
+int uart_bus_ipend(device_t dev);
int uart_bus_probe(device_t dev, int regshft, int rclk, int rid, int chan);
int uart_bus_sysdev(device_t dev);
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c
index d3ff9e77c25b..3c7c191b7443 100644
--- a/sys/dev/uart/uart_core.c
+++ b/sys/dev/uart/uart_core.c
@@ -267,6 +267,15 @@ uart_bus_ihand(device_t dev, int ipend)
}
int
+uart_bus_ipend(device_t dev)
+{
+ struct uart_softc *sc;
+
+ sc = device_get_softc(dev);
+ return (UART_IPEND(sc));
+}
+
+int
uart_bus_sysdev(device_t dev)
{
struct uart_softc *sc;