Go to the documentation of this file.
38 #ifndef __DEV_ARM_SP804_HH__
39 #define __DEV_ARM_SP804_HH__
46 #include "params/Sp804.hh"
171 #endif // __DEV_ARM_SP804_HH__
void restartCounter(uint32_t val)
Restart the counter ticking at val.
EventFunctionWrapper zeroEvent
ArmInterruptPin *const interrupt
Pointer to the interrupt pin.
BitUnion32(CTRL) Bitfield< 0 > oneShot
void serialize(CheckpointOut &cp) const override
Serialize an object.
Bitfield< 7 > timerEnable
void serialize(CheckpointOut &cp) const override
Serialize an object.
const Tick clock
Number of ticks in a clock input.
void write(PacketPtr pkt, Addr daddr)
Handle write for a single timer.
uint32_t loadValue
Value to load into counter when periodic mode reaches 0.
void read(PacketPtr pkt, Addr daddr)
Handle read for a single timer.
AmbaPioDeviceParams Params
void counterAtZero()
Called when the counter reaches 0.
Sp804(const Params &p)
The constructor for RealView just registers itself with the MMU.
Basic support for object serialization.
Tick read(PacketPtr pkt) override
Handle a read to the device.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
EndBitUnion(PciCommandRegister) union PCIConfig
uint64_t Tick
Tick count type.
CTRL control
Control register as specified above.
bool rawInt
If timer has caused an interrupt.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
EndBitUnion(CTRL) protected Sp804 * parent
Pointer to parent class.
Timer timer0
Timers that do the actual work.
Timer(std::string __name, Sp804 *parent, ArmInterruptPin *_interrupt, Tick clock)
Tick write(PacketPtr pkt) override
All writes are simply ignored.
Bitfield< 3, 2 > timerPrescale
Generic representation of an Arm interrupt pin.
std::ostream CheckpointOut
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
bool pendingInt
If an interrupt is currently pending.
Generated on Sun Jul 30 2023 01:56:55 for gem5 by doxygen 1.8.17