37 #ifndef __DEV_MALTA_IO_HH__
38 #define __DEV_MALTA_IO_HH__
45 #include "params/MaltaIO.hh"
60 RTC(
const std::string &
name,
const MaltaIOParams *
p);
143 #endif // __DEV_MALTA_IO_HH__
void serialize(CheckpointOut &cp) const override
Serialize an object.
MaltaIO(const Params *p)
Initialize all the data for devices supported by Malta I/O.
Emulation of the Malta CChip CSRs.
Real-Time Clock (MC146818)
Programmable Interval Timer (Intel 8254)
Tick frequency() const
Return the freqency of the RTC.
RTC(const std::string &name, const MaltaIOParams *p)
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
uint8_t mask1
Mask of the PIC1.
const std::string & name() const
void postIntr(uint8_t interrupt)
Post an Interrupt to the CPU.
uint16_t timerData
The interval is set via two writes to the PIT.
uint64_t Tick
Tick count type.
void clearIntr(uint8_t interrupt)
Clear an Interrupt to the CPU.
void startup() override
Start running.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
Intel8254Timer pitimer
Intel 8253 Periodic Interval Timer.
Top level class for Malta Chipset emulation.
Malta * malta
A pointer to the Malta device which be belong to.
std::ostream CheckpointOut
uint8_t mode1
Mode of PIC1.
uint8_t mode2
Mode of PIC2.
const SimObjectParams * _params
Cached copy of the object parameters.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
MaltaCChip * cchip
Pointer to the Malta CChip.
Malta I/O device is a catch all for all the south bridge stuff we care to implement.
uint8_t mask2
Mask of the PIC2.
void postRTC()
post an RTC interrupt to the CPU
bool picInterrupting
Is the pic interrupting right now or not.
const Params * params() const
Declaration of top level class for the Malta chipset.
uint8_t picr
Raw PIC interrupt register before masking.