summaryrefslogtreecommitdiff
path: root/dev/tsunami_io.hh
diff options
context:
space:
mode:
authorMiguel Serrano <mserrano@umich.edu>2005-07-01 15:10:18 -0400
committerMiguel Serrano <mserrano@umich.edu>2005-07-01 15:10:18 -0400
commit16a2357e8637fed706a94ab0da6226df8a2e7f07 (patch)
tree3ee9fbbcc2d24e19049bc2c23d61e95235210ee1 /dev/tsunami_io.hh
parent8b042182626b94ed6380f0ba6b99c0e862aa710f (diff)
downloadgem5-16a2357e8637fed706a94ab0da6226df8a2e7f07.tar.xz
.
--HG-- extra : convert_revision : 1ed206b27498641b64d7f35c74ea1f0623398d4e
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r--dev/tsunami_io.hh21
1 files changed, 10 insertions, 11 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh
index dca651d4b..4b28635e8 100644
--- a/dev/tsunami_io.hh
+++ b/dev/tsunami_io.hh
@@ -75,18 +75,14 @@ class TsunamiIO : public PioDevice
uint8_t mode;
/** The status of the PIT */
uint8_t status;
- /** The counts (current and latched) of the PIT */
- union {
- uint16_t whole;
- struct {
- uint8_t msb;
- uint8_t lsb;
- } half;
- } current_count, latched_count;
-
- /** Thse state of the output latch of the PIT */
+ /** The current count of the PIT */
+ uint16_t current_count;
+ /** The latched count of the PIT */
+ uint16_t latched_count;
+ /** The state of the output latch of the PIT */
bool latch_on;
- bool read_msb;
+ /** The next count half (byte) to read */
+ enum {READ_LSB, READ_MSB} read_byte;
public:
/**
@@ -158,6 +154,9 @@ class TsunamiIO : public PioDevice
Tsunami* tsunami;
Tick interval;
+ /** Count of the number of RTC interrupts that have occured */
+ uint32_t intr_count;
+
public:
/**
* RTC Event initializes the RTC event by scheduling an event