summaryrefslogtreecommitdiff
path: root/dev/tsunami_uart.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-05-26 18:49:24 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-05-26 18:49:24 -0400
commit242b59b534f07724212878535b294cdea1f6a302 (patch)
treef1b0817bcefc56264d175856ad52f033adcfbfcb /dev/tsunami_uart.hh
parent57d82e625472495750a97636bed146a7333cfe07 (diff)
parentfffae72b451088e385168ba432d82b0b0d44d2cc (diff)
downloadgem5-242b59b534f07724212878535b294cdea1f6a302.tar.xz
removal of bootloader from config file, merged
--HG-- extra : convert_revision : 9168d939d4e707b00be6609368b592a0829a7226
Diffstat (limited to 'dev/tsunami_uart.hh')
-rw-r--r--dev/tsunami_uart.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev/tsunami_uart.hh b/dev/tsunami_uart.hh
index d57b255ae..84e415067 100644
--- a/dev/tsunami_uart.hh
+++ b/dev/tsunami_uart.hh
@@ -48,6 +48,7 @@ class TsunamiUart : public PioDevice
Addr addr;
static const Addr size = 0x8;
+
protected:
SimConsole *cons;
int status_store;
@@ -55,6 +56,19 @@ class TsunamiUart : public PioDevice
bool valid_char;
uint8_t IER;
+ class IntrEvent : public Event
+ {
+ protected:
+ TsunamiUart *uart;
+ public:
+ IntrEvent(TsunamiUart *u);
+ virtual void process();
+ virtual const char *description();
+ void scheduleIntr();
+ };
+
+ IntrEvent intrEvent;
+
public:
TsunamiUart(const string &name, SimConsole *c, MemoryController *mmu,
Addr a, HierParams *hier, Bus *bus);