Manage objfiles with shared_ptr
[deliverable/binutils-gdb.git] / sim / bfin / dv-bfin_uart.h
index ccb7af461373e93f8f7a464a73a57c38ba25f513..78e36e77ef74cf52eaba982b8828198eda5013c9 100644 (file)
@@ -1,7 +1,7 @@
 /* Blackfin Universal Asynchronous Receiver/Transmitter (UART) model.
    For "old style" UARTs on BF53x/etc... parts.
 
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2019 Free Software Foundation, Inc.
    Contributed by Analog Devices, Inc.
 
    This file is part of simulators.
 #ifndef DV_BFIN_UART_H
 #define DV_BFIN_UART_H
 
-/* XXX: This should be pushed into the model data.  */
-#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 +48,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
This page took 0.024582 seconds and 4 git commands to generate.