gem5  v21.2.1.1
Public Member Functions | Public Attributes | List of all members
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 76 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 89 of file hsa_packet_processor.hh.

Member Function Documentation

◆ isEmpty()

bool gem5::HSAQueueDescriptor::isEmpty ( )
inline

◆ isFull()

bool gem5::HSAQueueDescriptor::isFull ( )
inline

Definition at line 102 of file hsa_packet_processor.hh.

References spaceRemaining().

◆ numObjs()

uint32_t gem5::HSAQueueDescriptor::numObjs ( )
inline

Definition at line 101 of file hsa_packet_processor.hh.

References numElts.

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

◆ objSize()

uint32_t gem5::HSAQueueDescriptor::objSize ( )
inline

Definition at line 100 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 98 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 87 of file hsa_packet_processor.hh.

Referenced by ptr().

◆ hostReadIndexPtr

uint64_t gem5::HSAQueueDescriptor::hostReadIndexPtr

◆ numElts

uint32_t gem5::HSAQueueDescriptor::numElts

◆ readIndex

uint64_t gem5::HSAQueueDescriptor::readIndex

◆ stalledOnDmaBufAvailability

bool gem5::HSAQueueDescriptor::stalledOnDmaBufAvailability

◆ writeIndex

uint64_t gem5::HSAQueueDescriptor::writeIndex

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

Generated on Wed May 4 2022 12:14:38 for gem5 by doxygen 1.8.17