Go to the documentation of this file.
32 #include "debug/CMOS.hh"
59 panic(
"Read from undefined CMOS port.\n");
78 panic(
"Write to undefined CMOS port.\n");
92 "Reading CMOS RTC reg %x as %x.\n",
reg,
val);
96 "Reading non-volitile CMOS address %x as %x.\n",
reg,
val);
106 DPRINTF(CMOS,
"Writing CMOS RTC reg %x with %x.\n",
110 DPRINTF(CMOS,
"Writing non-volitile CMOS address %x with %x.\n",
void makeAtomicResponse()
Addr pioAddr
Address that the device listens to.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
#define UNSERIALIZE_SCALAR(scalar)
uint8_t readRegister(uint8_t reg)
uint64_t Tick
Tick count type.
void writeRegister(uint8_t reg, uint8_t val)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
uint8_t readData(const uint8_t addr)
RTC read data.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
void startup() override
startup() is the final initialization call before simulation.
#define SERIALIZE_ARRAY(member, size)
#define SERIALIZE_SCALAR(scalar)
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
T getLE() const
Get the data in the packet byte swapped from little endian to host endian.
void serialize(CheckpointOut &cp) const override
Serialize an object.
void writeData(const uint8_t addr, const uint8_t data)
RTC write data.
#define UNSERIALIZE_ARRAY(member, size)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
void setLE(T v)
Set the value in the data pointer to v as little endian.
std::ostream CheckpointOut
std::vector< IntSourcePin< X86RTC > * > intPin
#define panic(...)
This implements a cprintf based panic() function.
virtual void startup()
Start ticking.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17