tsunami_io.cc (4918:3214e3694fb2) tsunami_io.cc (5336:c7e21f4e5a2e)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 191 unchanged lines hidden (view full) ---

200{
201 DPRINTF(MC146818, "RTC Timer Interrupt\n");
202 schedule(curTick + interval);
203 //Actually interrupt the processor here
204 tsunami->cchip->postRTC();
205}
206
207const char *
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 191 unchanged lines hidden (view full) ---

200{
201 DPRINTF(MC146818, "RTC Timer Interrupt\n");
202 schedule(curTick + interval);
203 //Actually interrupt the processor here
204 tsunami->cchip->postRTC();
205}
206
207const char *
208TsunamiIO::RTC::RTCEvent::description()
208TsunamiIO::RTC::RTCEvent::description() const
209{
210 return "tsunami RTC interrupt";
211}
212
213TsunamiIO::PITimer::PITimer(const string &name)
214 : _name(name), counter0(name + ".counter0"), counter1(name + ".counter1"),
215 counter2(name + ".counter2")
216{

--- 207 unchanged lines hidden (view full) ---

424 case PIT_MODE_SQWAVE:
425 break;
426 default:
427 panic("Unimplemented PITimer mode.\n");
428 }
429}
430
431const char *
209{
210 return "tsunami RTC interrupt";
211}
212
213TsunamiIO::PITimer::PITimer(const string &name)
214 : _name(name), counter0(name + ".counter0"), counter1(name + ".counter1"),
215 counter2(name + ".counter2")
216{

--- 207 unchanged lines hidden (view full) ---

424 case PIT_MODE_SQWAVE:
425 break;
426 default:
427 panic("Unimplemented PITimer mode.\n");
428 }
429}
430
431const char *
432TsunamiIO::PITimer::Counter::CounterEvent::description()
432TsunamiIO::PITimer::Counter::CounterEvent::description() const
433{
434 return "tsunami 8254 Interval timer";
435}
436
437TsunamiIO::TsunamiIO(const Params *p)
438 : BasicPioDevice(p), tsunami(p->tsunami), pitimer(p->name + "pitimer"),
439 rtc(p->name + ".rtc", p->tsunami, p)
440{

--- 219 unchanged lines hidden ---
433{
434 return "tsunami 8254 Interval timer";
435}
436
437TsunamiIO::TsunamiIO(const Params *p)
438 : BasicPioDevice(p), tsunami(p->tsunami), pitimer(p->name + "pitimer"),
439 rtc(p->name + ".rtc", p->tsunami, p)
440{

--- 219 unchanged lines hidden ---