diff options
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r-- | dev/tsunami_io.hh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh index fe904605c..e945eb53d 100644 --- a/dev/tsunami_io.hh +++ b/dev/tsunami_io.hh @@ -72,8 +72,10 @@ class TsunamiIO : public MmapDevice class RTCEvent : public Event { + protected: + Tsunami* tsunami; public: - RTCEvent(); + RTCEvent(Tsunami* t); virtual void process(); virtual const char *description(); @@ -86,6 +88,8 @@ class TsunamiIO : public MmapDevice uint8_t mode1; uint8_t mode2; + Tsunami *tsunami; + /* This timer is initilized, but after I wrote the code it doesn't seem to be used again, and best I can tell it too is not connected to any interrupt port */ @@ -103,9 +107,13 @@ class TsunamiIO : public MmapDevice uint32_t timerData; + uint32_t freq; + public: - TsunamiIO(const std::string &name, /*Tsunami *t,*/ time_t init_time, - Addr addr, Addr mask, MemoryController *mmu); + uint32_t frequency() const { return freq; } + + TsunamiIO(const std::string &name, Tsunami *t, time_t init_time, + Addr addr, Addr mask, uint32_t f, MemoryController *mmu); void set_time(time_t t); |