Go to the documentation of this file.
38 #ifndef __DEV_ARM_LOCALTIMER_HH__
39 #define __DEV_ARM_LOCALTIMER_HH__
48 #include "params/CpuLocalTimer.hh"
60 class ArmInterruptPin;
178 void init()
override;
200 #endif // __DEV_ARM_SP804_HH__
TimerCtrl timerControl
Control register as specified above.
void init() override
Inits the local timers.
EndBitUnion(TimerCtrl) BitUnion32(WatchdogCtrl) Bitfield< 0 > enable
uint32_t timerLoadValue
Value to load into counters when periodic mode reaches 0.
bool pendingIntTimer
If an interrupt is currently pending.
Timer(const std::string &name, CpuLocalTimer *_parent, ArmInterruptPin *int_timer, ArmInterruptPin *int_watchdog)
bool rawIntTimer
If timer has caused an interrupt.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Bitfield< 3 > watchdogMode
std::vector< std::unique_ptr< Timer > > localTimer
Timers that do the actual work.
Basic support for object serialization.
BaseGic * gic
Pointer to the GIC for causing an interrupt.
void restartWatchdogCounter(uint32_t val)
Tick write(PacketPtr pkt) override
Handle a write to the device.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
ArmInterruptPin * intTimer
Interrupt to cause/clear.
uint64_t Tick
Tick count type.
Bitfield< 15, 8 > prescalar
Tick read(PacketPtr pkt) override
Handle a read to the device.
WatchdogCtrl watchdogControl
EventFunctionWrapper watchdogZeroEvent
void write(PacketPtr pkt, Addr daddr)
Handle write for a single timer.
ArmInterruptPin * intWatchdog
void restartTimerCounter(uint32_t val)
Restart the counter ticking at val.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Bitfield< 7, 4 > reserved
uint32_t watchdogLoadValue
EndBitUnion(WatchdogCtrl) protected CpuLocalTimer * parent
Pointer to parent class.
void timerAtZero()
Called when the counter reaches 0.
CpuLocalTimer(const Params &p)
The constructor for RealView just registers itself with the MMU.
EventFunctionWrapper timerZeroEvent
void serialize(CheckpointOut &cp) const override
Serialize an object.
Bitfield< 7, 3 > reserved
Generic representation of an Arm interrupt pin.
std::ostream CheckpointOut
BitUnion32(TimerCtrl) Bitfield< 0 > enable
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void read(PacketPtr pkt, Addr daddr)
Handle read for a single timer.
void serialize(CheckpointOut &cp) const override
Serialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
uint32_t watchdogDisableReg
Generated on Sun Jul 30 2023 01:56:55 for gem5 by doxygen 1.8.17