gem5  v22.1.0.0
hsa_queue.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2017 Advanced Micro Devices, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions and the following disclaimer in the documentation
13  * and/or other materials provided with the distribution.
14  *
15  * 3. Neither the name of the copyright holder nor the names of its
16  * contributors may be used to endorse or promote products derived from this
17  * software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 #ifndef __DEV_HSA_HSA_QUEUE_HH__
33 #define __DEV_HSA_HSA_QUEUE_HH__
34 
35 #include <cstdint>
36 
37 namespace gem5
38 {
39 
41 {
44 };
45 
47 {
48  uint64_t handle;
49 };
50 
52 {
54  uint32_t features;
55  void *base_address;
57  uint32_t size;
58  uint32_t reserved1;
59  uint64_t id;
60 };
61 
62 typedef uint32_t _amd_queue_properties32_t;
63 
65 {
67  uint32_t reserved1[4];
68  volatile uint64_t write_dispatch_id;
71  uint32_t max_cu_id;
72  uint32_t max_wave_id;
74  volatile uint32_t legacy_doorbell_lock;
75  uint32_t reserved2[9];
76  volatile uint64_t read_dispatch_id;
86  uint32_t reserved3[2];
88  uint32_t reserved4[14];
89 };
90 
91 } // namespace gem5
92 
93 #endif // __DEV_HSA_HSA_QUEUE_HH__
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
_hsa_queue_type_t
Definition: hsa_queue.hh:41
@ _HSA_QUEUE_TYPE_MULTI
Definition: hsa_queue.hh:42
@ _HSA_QUEUE_TYPE_SINGLE
Definition: hsa_queue.hh:43
uint32_t _amd_queue_properties32_t
Definition: hsa_queue.hh:62
uint32_t max_wave_id
Definition: hsa_queue.hh:72
uint32_t private_segment_aperture_base_hi
Definition: hsa_queue.hh:70
volatile uint32_t legacy_doorbell_lock
Definition: hsa_queue.hh:74
_hsa_signal_t queue_inactive_signal
Definition: hsa_queue.hh:87
uint32_t read_dispatch_id_field_base_byte_offset
Definition: hsa_queue.hh:77
uint32_t group_segment_aperture_base_hi
Definition: hsa_queue.hh:69
volatile uint64_t write_dispatch_id
Definition: hsa_queue.hh:68
uint32_t reserved4[14]
Definition: hsa_queue.hh:88
uint32_t compute_tmpring_size_pad
Definition: hsa_queue.hh:80
uint32_t scratch_workitem_byte_size
Definition: hsa_queue.hh:84
uint32_t reserved2[9]
Definition: hsa_queue.hh:75
uint32_t reserved3[2]
Definition: hsa_queue.hh:86
_hsa_queue_t hsa_queue
Definition: hsa_queue.hh:66
uint32_t compute_tmpring_size_wavesize
Definition: hsa_queue.hh:79
uint64_t scratch_backing_memory_byte_size
Definition: hsa_queue.hh:83
uint64_t scratch_backing_memory_location
Definition: hsa_queue.hh:82
_amd_queue_properties32_t queue_properties
Definition: hsa_queue.hh:85
uint32_t max_cu_id
Definition: hsa_queue.hh:71
uint32_t compute_tmpring_size_waves
Definition: hsa_queue.hh:78
uint32_t reserved1[4]
Definition: hsa_queue.hh:67
volatile uint64_t read_dispatch_id
Definition: hsa_queue.hh:76
uint32_t scratch_resource_descriptor[4]
Definition: hsa_queue.hh:81
volatile uint64_t max_legacy_doorbell_dispatch_id_plus_1
Definition: hsa_queue.hh:73
uint32_t features
Definition: hsa_queue.hh:54
_hsa_signal_t doorbell_signal
Definition: hsa_queue.hh:56
uint32_t reserved1
Definition: hsa_queue.hh:58
_hsa_queue_type_t type
Definition: hsa_queue.hh:53

Generated on Wed Dec 21 2022 10:22:33 for gem5 by doxygen 1.9.1