gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::HSAQueueDescriptor Class Reference

#include <hsa_packet_processor.hh>

Public Member Functions

 HSAQueueDescriptor (uint64_t base_ptr, uint64_t db_ptr, uint64_t hri_ptr, uint32_t size, GfxVersion gfxVersion)
 
uint64_t spaceRemaining ()
 
uint64_t spaceUsed ()
 
uint32_t objSize ()
 
uint32_t numObjs ()
 
bool isFull ()
 
bool isEmpty ()
 
uint64_t ptr (uint64_t ix)
 

Public Attributes

uint64_t basePointer
 
uint64_t doorbellPointer
 
uint64_t writeIndex
 
uint64_t readIndex
 
uint32_t numElts
 
uint64_t hostReadIndexPtr
 
bool stalledOnDmaBufAvailability
 
bool dmaInProgress
 
GfxVersion gfxVersion
 

Detailed Description

Definition at line 78 of file hsa_packet_processor.hh.

Constructor & Destructor Documentation

◆ HSAQueueDescriptor()

gem5::HSAQueueDescriptor::HSAQueueDescriptor ( uint64_t base_ptr,
uint64_t db_ptr,
uint64_t hri_ptr,
uint32_t size,
GfxVersion gfxVersion )
inline

Definition at line 91 of file hsa_packet_processor.hh.

Member Function Documentation

◆ isEmpty()

bool gem5::HSAQueueDescriptor::isEmpty ( )
inline

◆ isFull()

bool gem5::HSAQueueDescriptor::isFull ( )
inline

Definition at line 104 of file hsa_packet_processor.hh.

References spaceRemaining().

◆ numObjs()

uint32_t gem5::HSAQueueDescriptor::numObjs ( )
inline

Definition at line 103 of file hsa_packet_processor.hh.

References numElts.

Referenced by gem5::HSAPacketProcessor::getCommandsFromHost().

◆ objSize()

uint32_t gem5::HSAQueueDescriptor::objSize ( )
inline

Definition at line 102 of file hsa_packet_processor.hh.

References AQL_PACKET_SIZE.

Referenced by gem5::HSAPacketProcessor::getCommandsFromHost(), and ptr().

◆ ptr()

uint64_t gem5::HSAQueueDescriptor::ptr ( uint64_t ix)
inline

◆ spaceRemaining()

uint64_t gem5::HSAQueueDescriptor::spaceRemaining ( )
inline

Definition at line 100 of file hsa_packet_processor.hh.

References numElts, readIndex, and writeIndex.

Referenced by isEmpty(), and isFull().

◆ spaceUsed()

uint64_t gem5::HSAQueueDescriptor::spaceUsed ( )
inline

Member Data Documentation

◆ basePointer

uint64_t gem5::HSAQueueDescriptor::basePointer

◆ dmaInProgress

bool gem5::HSAQueueDescriptor::dmaInProgress

◆ doorbellPointer

uint64_t gem5::HSAQueueDescriptor::doorbellPointer

◆ gfxVersion

GfxVersion gem5::HSAQueueDescriptor::gfxVersion

Definition at line 89 of file hsa_packet_processor.hh.

◆ hostReadIndexPtr

uint64_t gem5::HSAQueueDescriptor::hostReadIndexPtr

◆ numElts

◆ readIndex

◆ stalledOnDmaBufAvailability

bool gem5::HSAQueueDescriptor::stalledOnDmaBufAvailability

◆ writeIndex


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

Generated on Tue Jun 18 2024 16:24:12 for gem5 by doxygen 1.11.0