31 #ifndef __DEV_X86_CMOS_HH__
32 #define __DEV_X86_CMOS_HH__
36 #include "params/Cmos.hh"
75 rtc(this,
"rtc", p->time, true,
ULL(5000000000), p->int_pin)
93 #endif //__DEV_X86_CMOS_HH__
void writeRegister(uint8_t reg, uint8_t val)
uint8_t readRegister(uint8_t reg)
Real-Time Clock (MC146818)
uint64_t frequency() const
uint64_t Tick
Tick count type.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void startup() override
startup() is the final initialization call before simulation.
#define ULL(N)
uint64_t constant
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
std::ostream CheckpointOut
void serialize(CheckpointOut &cp) const override
Serialize an object.
X86RTC(EventManager *em, const std::string &n, const struct tm time, bool bcd, Tick frequency, IntSourcePin *_intPin)