aboutsummaryrefslogtreecommitdiff
path: root/include/hw/char/pl011.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/char/pl011.h')
-rw-r--r--include/hw/char/pl011.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/char/pl011.h b/include/hw/char/pl011.h
index dc2c90e..926322e 100644
--- a/include/hw/char/pl011.h
+++ b/include/hw/char/pl011.h
@@ -27,6 +27,9 @@ OBJECT_DECLARE_SIMPLE_TYPE(PL011State, PL011)
/* This shares the same struct (and cast macro) as the base pl011 device */
#define TYPE_PL011_LUMINARY "pl011_luminary"
+/* Depth of UART FIFO in bytes, when FIFO mode is enabled (else depth == 1) */
+#define PL011_FIFO_DEPTH 16
+
struct PL011State {
SysBusDevice parent_obj;
@@ -39,7 +42,7 @@ struct PL011State {
uint32_t dmacr;
uint32_t int_enabled;
uint32_t int_level;
- uint32_t read_fifo[16];
+ uint32_t read_fifo[PL011_FIFO_DEPTH];
uint32_t ilpr;
uint32_t ibrd;
uint32_t fbrd;