summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-04-28 18:29:23 +0000
committermarcel <marcel@FreeBSD.org>2006-04-28 18:29:23 +0000
commit5432375ec3e506099ab5d90de9c0a40e4fa7cb26 (patch)
tree807b9a33704b256f23a50d0ec75097d9551da0e5 /sys
parent349541001ee9c9420644552150181dac42028c5e (diff)
downloadFreeBSD-src-5432375ec3e506099ab5d90de9c0a40e4fa7cb26.zip
FreeBSD-src-5432375ec3e506099ab5d90de9c0a40e4fa7cb26.tar.gz
Implement the ipend() method of the serdev I/F.
Diffstat (limited to 'sys')
-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 19ceab0..5396515 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 d3ff9e7..3c7c191 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;
OpenPOWER on IntegriCloud