summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_if.m
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2014-01-20 19:38:44 +0000
committerkaiw <kaiw@FreeBSD.org>2014-01-20 19:38:44 +0000
commite9c152dbc2e572c490d3035d77f142253b674ded (patch)
treeae65253d09d5b1583a6bb647cd383e77be00e687 /sys/dev/uart/uart_if.m
parentcb3a8568bd4e3f2bf20a1c342c6957d1a568a5df (diff)
parent681dcc3c572a6831f4cb5f341c90ea4f9278bc81 (diff)
downloadFreeBSD-src-e9c152dbc2e572c490d3035d77f142253b674ded.zip
FreeBSD-src-e9c152dbc2e572c490d3035d77f142253b674ded.tar.gz
MFH@260917.
Diffstat (limited to 'sys/dev/uart/uart_if.m')
-rw-r--r--sys/dev/uart/uart_if.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_if.m b/sys/dev/uart/uart_if.m
index bfac071..aab7771 100644
--- a/sys/dev/uart/uart_if.m
+++ b/sys/dev/uart/uart_if.m
@@ -141,3 +141,19 @@ METHOD int setsig {
METHOD int transmit {
struct uart_softc *this;
};
+
+# grab() - Up call from the console to the upper layers of the driver when
+# the kernel asks to grab the console. This is valid only for console
+# drivers. This method is responsible for transitioning the hardware
+# from an interrupt driven state to a polled state that works with the
+# low-level console interface defined for this device. The kernel
+# currently only calls this when it wants to grab input from the
+# console. Output can still happen asyncrhonously to these calls.
+METHOD void grab {
+ struct uart_softc *this;
+};
+
+# ungrab() - Undoes the effects of grab().
+METHOD void ungrab {
+ struct uart_softc *this;
+};
OpenPOWER on IntegriCloud