aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/dv-bfin_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/bfin/dv-bfin_uart.h')
-rw-r--r--sim/bfin/dv-bfin_uart.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/sim/bfin/dv-bfin_uart.h b/sim/bfin/dv-bfin_uart.h
index ccb7af4..52074f6 100644
--- a/sim/bfin/dv-bfin_uart.h
+++ b/sim/bfin/dv-bfin_uart.h
@@ -26,8 +26,8 @@
#define BFIN_MMR_UART_SIZE 0x30
struct bfin_uart;
-bu16 bfin_uart_get_next_byte (struct hw *, bu16, bool *fresh);
-bu16 bfin_uart_write_byte (struct hw *, bu16);
+bu16 bfin_uart_get_next_byte (struct hw *, bu16, bu16, bool *fresh);
+bu16 bfin_uart_write_byte (struct hw *, bu16, bu16);
bu16 bfin_uart_get_status (struct hw *);
unsigned bfin_uart_write_buffer (struct hw *, const unsigned char *, unsigned);
unsigned bfin_uart_read_buffer (struct hw *, unsigned char *, unsigned);
@@ -51,4 +51,14 @@ void bfin_uart_reschedule (struct hw *);
#define ETBEI (1 << 1)
#define ELSI (1 << 2)
+/* UART_MCR */
+#define XOFF (1 << 0)
+#define MRTS (1 << 1)
+#define RFIT (1 << 2)
+#define RFRT (1 << 3)
+#define LOOP_ENA (1 << 4)
+#define FCPOL (1 << 5)
+#define ARTS (1 << 6)
+#define ACTS (1 << 7)
+
#endif