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);
114 return dynamic_cast<const Params *
>(
_params);
143 #endif // __DEV_MALTA_IO_HH__ 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)
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.
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
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.
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
virtual void startup()
Start ticking.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
uint8_t mode1
Mode of PIC1.
const Params * params() const
uint8_t mode2
Mode of PIC2.
const SimObjectParams * _params
Cached copy of the object parameters.
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.
const std::string & name() const
void postRTC()
post an RTC interrupt to the CPU
Tick frequency() const
Return the freqency of the RTC.
bool picInterrupting
Is the pic interrupting right now or not.
Declaration of top level class for the Malta chipset.
uint8_t picr
Raw PIC interrupt register before masking.