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; --- 55 unchanged lines hidden (view full) --- 64 65TsunamiIO::RTC::RTC(const string &n, const TsunamiIOParams *p) 66 : MC146818(p->tsunami, n, p->time, p->year_is_bcd, p->frequency), 67 tsunami(p->tsunami) 68{ 69} 70 71TsunamiIO::TsunamiIO(const Params *p) |
72 : BasicPioDevice(p, 0x100), tsunami(p->tsunami), |
73 pitimer(this, p->name + "pitimer"), rtc(p->name + ".rtc", p) 74{ |
75 // set the back pointer from tsunami to myself 76 tsunami->io = this; 77 78 timerData = 0; 79 picr = 0; 80 picInterrupting = false; 81} 82 --- 211 unchanged lines hidden --- |