malta_io.cc (5222:bb733a878f85) malta_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;

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

203{
204 DPRINTF(MC146818, "RTC Timer Interrupt\n");
205 schedule(curTick + interval);
206 //Actually interrupt the processor here
207 malta->cchip->postRTC();
208}
209
210const 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;

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

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

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

456 break;
457 default:
458 panic("Unimplemented PITimer mode.\n");
459 }
460 */
461}
462
463const char *
212{
213 return "malta RTC interrupt";
214}
215
216MaltaIO::PITimer::PITimer(const string &name)
217 : _name(name), counter0(name + ".counter0"), counter1(name + ".counter1"),
218 counter2(name + ".counter2")
219{

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

456 break;
457 default:
458 panic("Unimplemented PITimer mode.\n");
459 }
460 */
461}
462
463const char *
464MaltaIO::PITimer::Counter::CounterEvent::description()
464MaltaIO::PITimer::Counter::CounterEvent::description() const
465{
466 return "malta 8254 Interval timer";
467}
468
469MaltaIO::MaltaIO(Params *p)
470 : BasicPioDevice(p), malta(p->malta), pitimer(p->name + "pitimer"),
471 rtc(p->name + ".rtc", p->malta, p->frequency)
472{

--- 221 unchanged lines hidden ---
465{
466 return "malta 8254 Interval timer";
467}
468
469MaltaIO::MaltaIO(Params *p)
470 : BasicPioDevice(p), malta(p->malta), pitimer(p->name + "pitimer"),
471 rtc(p->name + ".rtc", p->malta, p->frequency)
472{

--- 221 unchanged lines hidden ---