Go to the documentation of this file.
38 #ifndef __DEV_ARM_WATCHDOG_GENERIC_HH__
39 #define __DEV_ARM_WATCHDOG_GENERIC_HH__
45 struct GenericWatchdogParams;
62 bool enabled()
const {
return controlStatus.enabled; }
95 "The Generic Watchdog shall be disabled when "
96 "the System Counter is being updated, or "
97 "the results are unpredictable");
132 WCTRLS controlStatus;
156 #endif // __DEV_ARM_WATCHDOG_GENERIC_HH__
EventFunctionWrapper timeoutEvent
void notify(void) override
Called from the SystemCounter when a change in counting speed occurred Events should be rescheduled p...
AddrRangeList getAddrRanges() const override
Every PIO device is obliged to provide an implementation that returns the address ranges the device r...
uint32_t offset
Offset Register.
uint64_t Tick
Tick count type.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
ArmInterruptPin *const ws1
EndBitUnion(WCTRLS) WCTRLS controlStatus
Control and Status Register.
void writeControl(Addr addr, uint32_t data)
This device is the base class which all devices senstive to an address range inherit from.
The AddrRange class encapsulates an address range, and supports a number of tests to check if two ran...
GenericWatchdog(const GenericWatchdogParams ¶ms)
uint64_t compare
Compare Register.
BitUnion32(WCTRLS) Bitfield< 2 > ws1
Listener(GenericWatchdog &_parent)
void serialize(CheckpointOut &cp) const override
Serialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Abstract class for elements whose events depend on the counting speed of the System Counter.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const AddrRange refreshFrame
const AddrRange controlFrame
uint32_t readControl(Addr addr)
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
uint32_t readRefresh(Addr addr)
ArmInterruptPin *const ws0
Watchdog Signals (IRQs)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Generic representation of an Arm interrupt pin.
void writeRefresh(Addr addr, uint32_t data)
std::ostream CheckpointOut
System Counter Listener: This object is being notified any time there is a change in the SystemCounte...
const Params & params() const
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
const uint32_t iidr
Interface Identification Register.
Generated on Tue Mar 23 2021 19:41:26 for gem5 by doxygen 1.8.17