summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/serial/ns16550_p.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-25 16:53:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-25 16:53:21 +0000
commit70a94515a7f0e6de540894beae14fb9534cdc21e (patch)
tree882c6eead3c679b983e391ea53239b21da37475d /c/src/libchip/serial/ns16550_p.h
parentRemoved TX ring buffer. (diff)
downloadrtems-70a94515a7f0e6de540894beae14fb9534cdc21e.tar.bz2
Rewrote NS16550 TX interrupt processing to use termios for the buffer
and manage the interrupt sources like the other drivers. This let use remove the ns16550_flush() routine.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/serial/ns16550_p.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/c/src/libchip/serial/ns16550_p.h b/c/src/libchip/serial/ns16550_p.h
index 95d4ec77b1..1ffd0725c7 100644
--- a/c/src/libchip/serial/ns16550_p.h
+++ b/c/src/libchip/serial/ns16550_p.h
@@ -82,6 +82,10 @@ typedef volatile struct _SP_WRITE_REGISTERS {
#define SP_INT_LS_ENABLE 0x04
#define SP_INT_MS_ENABLE 0x08
+#define NS16550_ENABLE_ALL_INTR (SP_INT_RX_ENABLE | SP_INT_TX_ENABLE)
+#define NS16550_DISABLE_ALL_INTR 0x00
+#define NS16550_ENABLE_ALL_INTR_EXCEPT_TX (SP_INT_RX_ENABLE)
+
/*
* Define serial port interrupt id register structure.
*/
@@ -201,8 +205,6 @@ NS16550_STATIC int ns16550_negate_DTR(
NS16550_STATIC void ns16550_initialize_interrupts(int minor);
-NS16550_STATIC int ns16550_flush(int major, int minor, void *arg);
-
NS16550_STATIC int ns16550_write_support_int(
int minor,
const char *buf,
@@ -219,6 +221,11 @@ NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
int minor
);
+NS16550_STATIC void ns16550_enable_interrupts(
+ int minor,
+ int mask
+);
+
#ifdef __cplusplus
}
#endif