gem5  v21.2.0.0
Namespaces | Macros
kfd_event_defines.h File Reference
#include "dev/hsa/kfd_ioctl.h"

Go to the source code of this file.

Namespaces

 gem5
 Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223.
 

Macros

#define KFD_GPU_ID_HASH_WIDTH   16
 
#define PAGE_SHIFT   12
 
#define KFD_MMAP_TYPE_SHIFT   (62 - PAGE_SHIFT)
 
#define KFD_MMAP_TYPE_MASK   (0x3ULL << KFD_MMAP_TYPE_SHIFT)
 
#define KFD_MMAP_TYPE_DOORBELL   (0x3ULL << KFD_MMAP_TYPE_SHIFT)
 
#define KFD_MMAP_TYPE_EVENTS   (0x2ULL << KFD_MMAP_TYPE_SHIFT)
 
#define SLOTS_PER_PAGE   KFD_SIGNAL_EVENT_LIMIT
 
#define KFD_MMAP_GPU_ID_SHIFT   (46 - PAGE_SHIFT)
 
#define KFD_MMAP_GPU_ID_MASK
 
#define KFD_MMAP_GPU_ID(gpu_id)   ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT) & KFD_MMAP_GPU_ID_MASK)
 

Macro Definition Documentation

◆ KFD_GPU_ID_HASH_WIDTH

#define KFD_GPU_ID_HASH_WIDTH   16

Definition at line 39 of file kfd_event_defines.h.

◆ KFD_MMAP_GPU_ID

#define KFD_MMAP_GPU_ID (   gpu_id)    ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT) & KFD_MMAP_GPU_ID_MASK)

Definition at line 51 of file kfd_event_defines.h.

◆ KFD_MMAP_GPU_ID_MASK

#define KFD_MMAP_GPU_ID_MASK
Value:

Definition at line 49 of file kfd_event_defines.h.

◆ KFD_MMAP_GPU_ID_SHIFT

#define KFD_MMAP_GPU_ID_SHIFT   (46 - PAGE_SHIFT)

Definition at line 48 of file kfd_event_defines.h.

◆ KFD_MMAP_TYPE_DOORBELL

#define KFD_MMAP_TYPE_DOORBELL   (0x3ULL << KFD_MMAP_TYPE_SHIFT)

Definition at line 44 of file kfd_event_defines.h.

◆ KFD_MMAP_TYPE_EVENTS

#define KFD_MMAP_TYPE_EVENTS   (0x2ULL << KFD_MMAP_TYPE_SHIFT)

Definition at line 45 of file kfd_event_defines.h.

◆ KFD_MMAP_TYPE_MASK

#define KFD_MMAP_TYPE_MASK   (0x3ULL << KFD_MMAP_TYPE_SHIFT)

Definition at line 43 of file kfd_event_defines.h.

◆ KFD_MMAP_TYPE_SHIFT

#define KFD_MMAP_TYPE_SHIFT   (62 - PAGE_SHIFT)

Definition at line 42 of file kfd_event_defines.h.

◆ PAGE_SHIFT

#define PAGE_SHIFT   12

Definition at line 41 of file kfd_event_defines.h.

◆ SLOTS_PER_PAGE

#define SLOTS_PER_PAGE   KFD_SIGNAL_EVENT_LIMIT

Definition at line 46 of file kfd_event_defines.h.

KFD_GPU_ID_HASH_WIDTH
#define KFD_GPU_ID_HASH_WIDTH
Definition: kfd_event_defines.h:39
KFD_MMAP_GPU_ID_SHIFT
#define KFD_MMAP_GPU_ID_SHIFT
Definition: kfd_event_defines.h:48

Generated on Tue Dec 21 2021 11:34:46 for gem5 by doxygen 1.8.17