Go to the documentation of this file.
29 #ifndef __DEV_X86_I8254_HH__
30 #define __DEV_X86_I8254_HH__
35 #include "params/I8254.hh"
74 if (if_name ==
"int_pin")
89 for (
int i = 0;
i <
p->port_int_pin_connection_count;
i++) {
91 "%s.int_pin[%d]",
name(),
i),
i,
this));
131 #endif //__DEV_X86_SOUTH_BRIDGE_I8254_HH__
uint8_t readCounter(unsigned int num)
const PortID InvalidPortID
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void writeCounter(unsigned int num, const uint8_t data)
uint64_t Tick
Tick count type.
void startup() override
startup() is the final initialization call before simulation.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
void writeControl(const CtrlReg data)
Write control word.
bool outputHigh(unsigned int num)
const Params * params() const
void serialize(CheckpointOut &cp) const override
Serialize an object.
X86Intel8254Timer(const std::string &name, I8254 *_parent)
const std::string & name() const
void writeCounter(unsigned int num, const uint8_t data)
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
void writeControl(uint8_t val)
Ports are used to interface objects to each other.
Programmable Interval Timer (Intel 8254)
std::vector< IntSourcePin< I8254 > * > intPin
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
uint8_t readCounter(unsigned int num)
This is exposed globally, independent of the ISA.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
virtual const std::string name() const
const SimObjectParams * _params
Cached copy of the object parameters.
bool outputHigh(unsigned int num)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
void counterInterrupt(unsigned int num)
std::ostream CheckpointOut
void counterInterrupt(unsigned int num)
std::string csprintf(const char *format, const Args &...args)
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17