gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
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)
 
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
 

Detailed Description

Definition at line 72 of file hsa_packet_processor.hh.

Constructor & Destructor Documentation

◆ HSAQueueDescriptor()

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

Definition at line 83 of file hsa_packet_processor.hh.

Member Function Documentation

◆ isEmpty()

bool HSAQueueDescriptor::isEmpty ( )
inline

◆ isFull()

bool HSAQueueDescriptor::isFull ( )
inline

Definition at line 95 of file hsa_packet_processor.hh.

References spaceRemaining().

◆ numObjs()

uint32_t HSAQueueDescriptor::numObjs ( )
inline

Definition at line 94 of file hsa_packet_processor.hh.

References numElts.

Referenced by HSAPacketProcessor::getCommandsFromHost().

◆ objSize()

uint32_t HSAQueueDescriptor::objSize ( )
inline

Definition at line 93 of file hsa_packet_processor.hh.

References AQL_PACKET_SIZE.

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

◆ ptr()

uint64_t HSAQueueDescriptor::ptr ( uint64_t  ix)
inline

Definition at line 98 of file hsa_packet_processor.hh.

References basePointer, numElts, and objSize().

Referenced by HSAPacketProcessor::getCommandsFromHost().

◆ spaceRemaining()

uint64_t HSAQueueDescriptor::spaceRemaining ( )
inline

Definition at line 91 of file hsa_packet_processor.hh.

References numElts, readIndex, and writeIndex.

Referenced by isEmpty(), and isFull().

◆ spaceUsed()

uint64_t HSAQueueDescriptor::spaceUsed ( )
inline

Member Data Documentation

◆ basePointer

uint64_t HSAQueueDescriptor::basePointer

Definition at line 74 of file hsa_packet_processor.hh.

Referenced by ptr().

◆ dmaInProgress

bool HSAQueueDescriptor::dmaInProgress

◆ doorbellPointer

uint64_t HSAQueueDescriptor::doorbellPointer

◆ hostReadIndexPtr

uint64_t HSAQueueDescriptor::hostReadIndexPtr

◆ numElts

uint32_t HSAQueueDescriptor::numElts

◆ readIndex

uint64_t HSAQueueDescriptor::readIndex

◆ stalledOnDmaBufAvailability

bool HSAQueueDescriptor::stalledOnDmaBufAvailability

◆ writeIndex

uint64_t HSAQueueDescriptor::writeIndex

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

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