31#include "debug/I8254.hh"
60 pkt->
setLE(uint8_t(-1));
62 panic(
"Read from undefined i8254 register.\n");
76 pit.writeControl(pkt->
getLE<uint8_t>());
78 panic(
"Write to undefined i8254 register.\n");
87 pit.serialize(
"pit", cp);
93 pit.unserialize(
"pit", cp);
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.
void makeAtomicResponse()
T getLE() const
Get the data in the packet byte swapped from little endian to host endian.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
std::vector< IntSourcePin< I8254 > * > intPin
void startup() override
startup() is the final initialization call before simulation.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
void counterInterrupt(unsigned int num)
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
void serialize(CheckpointOut &cp) const override
Serialize an object.
#define panic(...)
This implements a cprintf based panic() function.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::ostream CheckpointOut
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.
Declaration of the Packet class.