summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/serial/mc68681_p.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-23 17:42:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-23 17:42:46 +0000
commit4f0ffa57d8930fc835aba70fc61f52cda4f84810 (patch)
tree5eaf355859dd77b75bea5dcb8187a5f8f2c2a67a /c/src/libchip/serial/mc68681_p.h
parentNew file describing mc68681 libchip driver. (diff)
downloadrtems-4f0ffa57d8930fc835aba70fc61f52cda4f84810.tar.bz2
Removed RTS and DTR handling code since the MC68681 seems to only have
automatic handling of RTS/CTS. This only protects the on-chip buffers and FIFOs -- not the termios queues as the RTS/CTS code in here did. It may be necessary in the future to enable this automatic support. Interrupt processing code added. In some places, channel and duart base addresses were swapped.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/serial/mc68681_p.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/c/src/libchip/serial/mc68681_p.h b/c/src/libchip/serial/mc68681_p.h
index 14ab682251..e9010199ff 100644
--- a/c/src/libchip/serial/mc68681_p.h
+++ b/c/src/libchip/serial/mc68681_p.h
@@ -165,6 +165,10 @@ extern "C" {
#define MC68681_FRAMING_ERROR 0x40
#define MC68681_RECEIVED_BREAK 0x80
+#define MC68681_RX_ERRORS \
+ (MC68681_OVERRUN_ERROR|MC68681_PARITY_ERROR| \
+ MC68681_FRAMING_ERROR|MC68681_RECEIVED_BREAK)
+
/*
* Interupt Status Register Definitions.
*
@@ -225,7 +229,6 @@ extern "C" {
typedef struct _mc68681_context
{
int mate;
- unsigned8 ucModemCtrl;
} mc68681_context;
/*
@@ -257,22 +260,6 @@ static void mc68681_write_polled(
char cChar
);
-static int mc68681_assert_RTS(
- int minor
-);
-
-static int mc68681_negate_RTS(
- int minor
-);
-
-static int mc68681_assert_DTR(
- int minor
-);
-
-static int mc68681_negate_DTR(
- int minor
-);
-
static void mc68681_initialize_interrupts(int minor);
static int mc68681_flush(int major, int minor, void *arg);