29#ifndef __DEV_LUPIO_LUPIO_TMR_HH__
30#define __DEV_LUPIO_LUPIO_TMR_HH__
35#include "params/LupioTMR.hh"
LupioTMR: A virtual timer device which provides a real time counter, as well as a configurable timer ...
void updateIRQ(int level, int cpu)
Post or clear timer interrupts.
const ByteOrder byteOrder
std::vector< LupioTimer > timers
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
void lupioTMRCallback(int cpu)
Process the timer's event.
uint64_t lupioTMRRead(const uint8_t addr, int size)
Function to return data pertaining to the timer, such as the simulated time in ticks.
LupioTMR(const Params ¶ms)
void lupioTMRSet(int cpu)
Schedule the next timer event.
Tick read(PacketPtr pkt) override
Implement BasicPioDevice virtual functions.
uint64_t lupioTMRCurrentTime()
Return the simulated time.
void lupioTMRWrite(const uint8_t addr, uint64_t val64, int size)
Function to launch or stop the timer depending on the load value.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Tick
Tick count type.