gem5  v20.1.0.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
SMMUProcess Class Referenceabstract

#include <smmu_v3_proc.hh>

Inheritance diagram for SMMUProcess:
Packet::SenderState SMMUCommandExecProcess SMMUTranslationProcess

Public Member Functions

 SMMUProcess (const std::string &name, SMMUv3 &_smmu)
 
virtual ~SMMUProcess ()
 
SMMUAction run (PacketPtr pkt)
 
const std::string name () const
 
- Public Member Functions inherited from Packet::SenderState
 SenderState ()
 
virtual ~SenderState ()
 

Protected Types

typedef Coroutine::CallerType Yield
 

Protected Member Functions

void reinit ()
 
virtual void main (Yield &yield)=0
 
void doRead (Yield &yield, Addr addr, void *ptr, size_t size)
 
void doWrite (Yield &yield, Addr addr, const void *ptr, size_t size)
 
void doDelay (Yield &yield, Cycles cycles)
 
void doSleep (Yield &yield)
 
void doSemaphoreDown (Yield &yield, SMMUSemaphore &sem)
 
void doSemaphoreUp (SMMUSemaphore &sem)
 
void doWaitForSignal (Yield &yield, SMMUSignal &sig)
 
void doBroadcastSignal (SMMUSignal &sig)
 
void scheduleWakeup (Tick when)
 

Protected Attributes

SMMUv3smmu
 

Private Types

typedef m5::Coroutine< PacketPtr, SMMUActionCoroutine
 

Private Member Functions

void wakeup ()
 

Private Attributes

Coroutinecoroutine
 
std::string myName
 

Additional Inherited Members

- Public Attributes inherited from Packet::SenderState
SenderStatepredecessor
 

Detailed Description

Definition at line 93 of file smmu_v3_proc.hh.

Member Typedef Documentation

◆ Coroutine

Definition at line 96 of file smmu_v3_proc.hh.

◆ Yield

Definition at line 104 of file smmu_v3_proc.hh.

Constructor & Destructor Documentation

◆ SMMUProcess()

SMMUProcess::SMMUProcess ( const std::string &  name,
SMMUv3 _smmu 
)

Definition at line 43 of file smmu_v3_proc.cc.

Referenced by scheduleWakeup().

◆ ~SMMUProcess()

SMMUProcess::~SMMUProcess ( )
virtual

Definition at line 49 of file smmu_v3_proc.cc.

References coroutine.

Member Function Documentation

◆ doBroadcastSignal()

void SMMUProcess::doBroadcastSignal ( SMMUSignal sig)
protected

◆ doDelay()

void SMMUProcess::doDelay ( Yield yield,
Cycles  cycles 
)
protected

◆ doRead()

void SMMUProcess::doRead ( Yield yield,
Addr  addr,
void *  ptr,
size_t  size 
)
protected

◆ doSemaphoreDown()

void SMMUProcess::doSemaphoreDown ( Yield yield,
SMMUSemaphore sem 
)
protected

◆ doSemaphoreUp()

void SMMUProcess::doSemaphoreUp ( SMMUSemaphore sem)
protected

◆ doSleep()

void SMMUProcess::doSleep ( Yield yield)
protected

Definition at line 137 of file smmu_v3_proc.cc.

References ArmISA::a, and ACTION_SLEEP.

Referenced by doSemaphoreDown(), doWaitForSignal(), and SMMUCommandExecProcess::main().

◆ doWaitForSignal()

void SMMUProcess::doWaitForSignal ( Yield yield,
SMMUSignal sig 
)
protected

◆ doWrite()

void SMMUProcess::doWrite ( Yield yield,
Addr  addr,
const void *  ptr,
size_t  size 
)
protected

◆ main()

virtual void SMMUProcess::main ( Yield yield)
protectedpure virtual

Implemented in SMMUTranslationProcess, and SMMUCommandExecProcess.

Referenced by reinit().

◆ name()

const std::string SMMUProcess::name ( ) const
inline

Definition at line 131 of file smmu_v3_proc.hh.

References myName.

Referenced by SMMUTranslationProcess::issuePrefetch().

◆ reinit()

void SMMUProcess::reinit ( )
protected

◆ run()

SMMUAction SMMUProcess::run ( PacketPtr  pkt)

Definition at line 203 of file smmu_v3_proc.cc.

References coroutine.

Referenced by SMMUv3::runProcessAtomic(), and SMMUv3::runProcessTiming().

◆ scheduleWakeup()

void SMMUProcess::scheduleWakeup ( Tick  when)
protected

◆ wakeup()

void SMMUProcess::wakeup ( )
private

Definition at line 55 of file smmu_v3_proc.cc.

References SMMUv3::runProcess(), and smmu.

Referenced by scheduleWakeup().

Member Data Documentation

◆ coroutine

Coroutine* SMMUProcess::coroutine
private

Definition at line 98 of file smmu_v3_proc.hh.

Referenced by reinit(), run(), and ~SMMUProcess().

◆ myName

std::string SMMUProcess::myName
private

Definition at line 99 of file smmu_v3_proc.hh.

Referenced by name().

◆ smmu

SMMUv3& SMMUProcess::smmu
protected

The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:32 for gem5 by doxygen 1.8.17