summaryrefslogtreecommitdiff
path: root/src/dev/intel_8254_timer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/intel_8254_timer.hh')
-rw-r--r--src/dev/intel_8254_timer.hh16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/dev/intel_8254_timer.hh b/src/dev/intel_8254_timer.hh
index 9391b0f9e..bb650d33b 100644
--- a/src/dev/intel_8254_timer.hh
+++ b/src/dev/intel_8254_timer.hh
@@ -90,7 +90,7 @@ class Intel8254Timer : public EventManager
CounterEvent(Counter*);
/** Event process */
- virtual void process();
+ void process();
/** Event description */
virtual const char *description() const;
@@ -104,6 +104,8 @@ class Intel8254Timer : public EventManager
std::string _name;
const std::string &name() const { return _name; }
+ unsigned int num;
+
CounterEvent event;
/** Current count value */
@@ -134,7 +136,7 @@ class Intel8254Timer : public EventManager
Intel8254Timer *parent;
public:
- Counter(Intel8254Timer *p, const std::string &name);
+ Counter(Intel8254Timer *p, const std::string &name, unsigned int num);
/** Latch the current count (if one is not already latched) */
void latchCount();
@@ -181,8 +183,18 @@ class Intel8254Timer : public EventManager
/** PIT has three seperate counters */
Counter *counter[3];
+ virtual void
+ counterInterrupt(unsigned int num)
+ {
+ DPRINTF(Intel8254Timer, "Timer interrupt from counter %d.\n", num);
+ }
+
public:
+ virtual
+ ~Intel8254Timer()
+ {}
+
Intel8254Timer(EventManager *em, const std::string &name,
Counter *counter0, Counter *counter1, Counter *counter2);