gem5  v22.1.0.0
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 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 

Definition at line 91 of file hsa_packet_processor.hh.

Member Function Documentation

◆ isEmpty()

bool gem5::HSAQueueDescriptor::isEmpty ( )

◆ isFull()

bool gem5::HSAQueueDescriptor::isFull ( )

Definition at line 104 of file hsa_packet_processor.hh.

References spaceRemaining().

◆ numObjs()

uint32_t gem5::HSAQueueDescriptor::numObjs ( )

Definition at line 103 of file hsa_packet_processor.hh.

References numElts.

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

◆ objSize()

uint32_t gem5::HSAQueueDescriptor::objSize ( )

Definition at line 102 of file hsa_packet_processor.hh.


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

◆ ptr()

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

◆ spaceRemaining()

uint64_t gem5::HSAQueueDescriptor::spaceRemaining ( )

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 ( )

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.

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 Dec 21 2022 10:23:19 for gem5 by doxygen 1.9.1