From a6600fdd8885f9765c859935a5c97d9017653745 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 11 Oct 2008 01:49:39 -0700 Subject: Devices: Make the Intel8254Timer device only use pointers to its counters. --- src/dev/alpha/tsunami_io.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/dev/alpha/tsunami_io.cc') diff --git a/src/dev/alpha/tsunami_io.cc b/src/dev/alpha/tsunami_io.cc index 2aaf323a2..9c88904e3 100644 --- a/src/dev/alpha/tsunami_io.cc +++ b/src/dev/alpha/tsunami_io.cc @@ -114,19 +114,19 @@ TsunamiIO::read(PacketPtr pkt) pkt->set(0x00); break; case TSDEV_TMR0_DATA: - pkt->set(pitimer.counter0.read()); + pkt->set(pitimer.readCounter(0)); break; case TSDEV_TMR1_DATA: - pkt->set(pitimer.counter1.read()); + pkt->set(pitimer.readCounter(1)); break; case TSDEV_TMR2_DATA: - pkt->set(pitimer.counter2.read()); + pkt->set(pitimer.readCounter(2)); break; case TSDEV_RTC_DATA: pkt->set(rtc.readData(rtcAddr)); break; case TSDEV_CTRL_PORTB: - if (pitimer.counter2.outputHigh()) + if (pitimer.outputHigh(2)) pkt->set(PORTB_SPKR_HIGH); else pkt->set(0x00); @@ -189,13 +189,13 @@ TsunamiIO::write(PacketPtr pkt) mode2 = pkt->get(); break; case TSDEV_TMR0_DATA: - pitimer.counter0.write(pkt->get()); + pitimer.writeCounter(0, pkt->get()); break; case TSDEV_TMR1_DATA: - pitimer.counter1.write(pkt->get()); + pitimer.writeCounter(1, pkt->get()); break; case TSDEV_TMR2_DATA: - pitimer.counter2.write(pkt->get()); + pitimer.writeCounter(2, pkt->get()); break; case TSDEV_TMR_CTRL: pitimer.writeControl(pkt->get()); -- cgit v1.2.3