gem5  v22.0.0.1
hsa_signal.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2019 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 #ifndef DEV_HSA_HSA_SIGNAL_H
32 #define DEV_HSA_HSA_SIGNAL_H
33 
34 #include <cstdint>
35 
36 namespace gem5
37 {
38 
39 // AMD Signal Kind Enumeration Values.
40 typedef int64_t amd_signal_kind64_t;
42 {
47 };
48 
49 // AMD Signal.
50 typedef struct amd_signal_s
51 {
53  union
54  {
55  volatile int64_t value;
56  volatile uint32_t* legacy_hardware_doorbell_ptr;
57  volatile uint64_t* hardware_doorbell_ptr;
58  };
60  uint32_t event_id;
61  uint32_t reserved1;
62  uint64_t start_ts;
63  uint64_t end_ts;
64  union
65  {
66  uint64_t queue_ptr;
67  uint64_t reserved2;
68  };
69  uint32_t reserved3[2];
70 } amd_signal_t;
71 
72 } // namespace gem5
73 
74 #endif // DEV_HSA_HSA_SIGNAL_H
gem5::AMD_SIGNAL_KIND_USER
@ AMD_SIGNAL_KIND_USER
Definition: hsa_signal.hh:44
gem5::amd_signal_s::end_ts
uint64_t end_ts
Definition: hsa_signal.hh:63
gem5::amd_signal_s::event_mailbox_ptr
uint64_t event_mailbox_ptr
Definition: hsa_signal.hh:59
gem5::amd_signal_s::reserved3
uint32_t reserved3[2]
Definition: hsa_signal.hh:69
gem5::amd_signal_s::start_ts
uint64_t start_ts
Definition: hsa_signal.hh:62
gem5::amd_signal_s::reserved1
uint32_t reserved1
Definition: hsa_signal.hh:61
gem5::AMD_SIGNAL_KIND_DOORBELL
@ AMD_SIGNAL_KIND_DOORBELL
Definition: hsa_signal.hh:45
gem5::amd_signal_s::kind
amd_signal_kind64_t kind
Definition: hsa_signal.hh:52
gem5::amd_signal_s::value
volatile int64_t value
Definition: hsa_signal.hh:55
gem5::AMD_SIGNAL_KIND_INVALID
@ AMD_SIGNAL_KIND_INVALID
Definition: hsa_signal.hh:43
gem5::amd_signal_kind_t
amd_signal_kind_t
Definition: hsa_signal.hh:41
gem5::amd_signal_t
struct gem5::amd_signal_s amd_signal_t
gem5::amd_signal_s::event_id
uint32_t event_id
Definition: hsa_signal.hh:60
gem5::amd_signal_s::reserved2
uint64_t reserved2
Definition: hsa_signal.hh:67
gem5::AMD_SIGNAL_KIND_LEGACY_DOORBELL
@ AMD_SIGNAL_KIND_LEGACY_DOORBELL
Definition: hsa_signal.hh:46
gem5::amd_signal_kind64_t
int64_t amd_signal_kind64_t
Definition: hsa_signal.hh:40
gem5::amd_signal_s::hardware_doorbell_ptr
volatile uint64_t * hardware_doorbell_ptr
Definition: hsa_signal.hh:57
gem5::amd_signal_s
Definition: hsa_signal.hh:50
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: gpu_translation_state.hh:37
gem5::amd_signal_s::queue_ptr
uint64_t queue_ptr
Definition: hsa_signal.hh:66
gem5::amd_signal_s::legacy_hardware_doorbell_ptr
volatile uint32_t * legacy_hardware_doorbell_ptr
Definition: hsa_signal.hh:56

Generated on Sat Jun 18 2022 08:12:24 for gem5 by doxygen 1.8.17