33 #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 writeRegister(uint8_t reg, uint8_t val)
void set(T v, ByteOrder endian)
Set the value in the data pointer to v using the specified endianness.
uint8_t readData(const uint8_t addr)
RTC read data.
uint8_t readRegister(uint8_t reg)
void writeData(const uint8_t addr, const uint8_t data)
RTC write data.
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
T get(ByteOrder endian) const
Get the data in the packet byte swapped from the specified endianness.
#define UNSERIALIZE_SCALAR(scalar)
void makeAtomicResponse()
uint64_t Tick
Tick count type.
#define SERIALIZE_ARRAY(member, size)
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.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
#define SERIALIZE_SCALAR(scalar)
#define UNSERIALIZE_ARRAY(member, size)
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
std::ostream CheckpointOut
virtual void startup()
Start ticking.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Addr pioAddr
Address that the device listens to.