tsunami_io.cc (8737:770ccf3af571) tsunami_io.cc (9808:13ffc0066b76)
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)
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), tsunami(p->tsunami),
72 : BasicPioDevice(p, 0x100), tsunami(p->tsunami),
73 pitimer(this, p->name + "pitimer"), rtc(p->name + ".rtc", p)
74{
73 pitimer(this, p->name + "pitimer"), rtc(p->name + ".rtc", p)
74{
75 pioSize = 0x100;
76
77 // set the back pointer from tsunami to myself
78 tsunami->io = this;
79
80 timerData = 0;
81 picr = 0;
82 picInterrupting = false;
83}
84

--- 211 unchanged lines hidden ---
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 ---