37 #ifndef __DEV_TSUNAMI_IO_HH__
38 #define __DEV_TSUNAMI_IO_HH__
45 #include "params/TsunamiIO.hh"
61 RTC(
const std::string &
n,
const TsunamiIOParams *
p);
133 void postPIC(uint8_t bitvector);
151 #endif // __DEV_TSUNAMI_IO_HH__
Emulation of the Tsunami CChip CSRs.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Real-Time Clock (MC146818)
void postRTC()
post an RTC interrupt to the CPU
Programmable Interval Timer (Intel 8254)
Top level class for Tsunami Chipset emulation.
uint8_t mode1
Mode of PIC1.
void clearPIC(uint8_t bitvector)
Clear a posted interrupt.
void startup() override
Start running.
TsunamiCChip * cchip
Pointer to the Tsunami CChip.
uint16_t timerData
The interval is set via two writes to the PIT.
bool picInterrupting
Is the pic interrupting right now or not.
const Params * params() const
uint64_t Tick
Tick count type.
Declaration of top level class for the Tsunami chipset.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
RTC(const std::string &n, const TsunamiIOParams *p)
Tsunami * tsunami
A pointer to the Tsunami device which be belong to.
Tick frequency() const
Return the freqency of the RTC.
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.
TsunamiIO(const Params *p)
Initialize all the data for devices supported by Tsunami I/O.
uint8_t mode2
Mode of PIC2.
uint8_t mask2
Mask of the PIC2.
std::ostream CheckpointOut
Intel8254Timer pitimer
Intel 8253 Periodic Interval Timer.
uint8_t picr
Raw PIC interrupt register before masking.
const SimObjectParams * _params
Cached copy of the object parameters.
Tsunami I/O device is a catch all for all the south bridge stuff we care to implement.
uint8_t mask1
Mask of the PIC1.
void postPIC(uint8_t bitvector)
Post an PIC interrupt to the CPU via the CChip.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.