gem5  v21.1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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  * For use for simulation and test purposes only
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright notice,
11  * this list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright notice,
14  * this list of conditions and the following disclaimer in the documentation
15  * and/or other materials provided with the distribution.
16  *
17  * 3. Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from this
19  * software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  */
33 #ifndef DEV_HSA_HSA_SIGNAL_H
34 #define DEV_HSA_HSA_SIGNAL_H
35 
36 #include <cstdint>
37 
38 namespace gem5
39 {
40 
41 // AMD Signal Kind Enumeration Values.
42 typedef int64_t amd_signal_kind64_t;
44 {
49 };
50 
51 // AMD Signal.
52 typedef struct amd_signal_s
53 {
55  union
56  {
57  volatile int64_t value;
58  volatile uint32_t* legacy_hardware_doorbell_ptr;
59  volatile uint64_t* hardware_doorbell_ptr;
60  };
62  uint32_t event_id;
63  uint32_t reserved1;
64  uint64_t start_ts;
65  uint64_t end_ts;
66  union
67  {
68  uint64_t queue_ptr;
69  uint64_t reserved2;
70  };
71  uint32_t reserved3[2];
72 } amd_signal_t;
73 
74 } // namespace gem5
75 
76 #endif // DEV_HSA_HSA_SIGNAL_H
gem5::AMD_SIGNAL_KIND_USER
@ AMD_SIGNAL_KIND_USER
Definition: hsa_signal.hh:46
gem5::amd_signal_s::end_ts
uint64_t end_ts
Definition: hsa_signal.hh:65
gem5::amd_signal_s::event_mailbox_ptr
uint64_t event_mailbox_ptr
Definition: hsa_signal.hh:61
gem5::amd_signal_s::reserved3
uint32_t reserved3[2]
Definition: hsa_signal.hh:71
gem5::amd_signal_s::start_ts
uint64_t start_ts
Definition: hsa_signal.hh:64
gem5::amd_signal_s::reserved1
uint32_t reserved1
Definition: hsa_signal.hh:63
gem5::AMD_SIGNAL_KIND_DOORBELL
@ AMD_SIGNAL_KIND_DOORBELL
Definition: hsa_signal.hh:47
gem5::amd_signal_s::kind
amd_signal_kind64_t kind
Definition: hsa_signal.hh:54
gem5::amd_signal_s::value
volatile int64_t value
Definition: hsa_signal.hh:57
gem5::AMD_SIGNAL_KIND_INVALID
@ AMD_SIGNAL_KIND_INVALID
Definition: hsa_signal.hh:45
gem5::amd_signal_kind_t
amd_signal_kind_t
Definition: hsa_signal.hh:43
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:62
gem5::amd_signal_s::reserved2
uint64_t reserved2
Definition: hsa_signal.hh:69
gem5::AMD_SIGNAL_KIND_LEGACY_DOORBELL
@ AMD_SIGNAL_KIND_LEGACY_DOORBELL
Definition: hsa_signal.hh:48
gem5::amd_signal_kind64_t
int64_t amd_signal_kind64_t
Definition: hsa_signal.hh:42
gem5::amd_signal_s::hardware_doorbell_ptr
volatile uint64_t * hardware_doorbell_ptr
Definition: hsa_signal.hh:59
gem5::amd_signal_s
Definition: hsa_signal.hh:52
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: decoder.cc:40
gem5::amd_signal_s::queue_ptr
uint64_t queue_ptr
Definition: hsa_signal.hh:68
gem5::amd_signal_s::legacy_hardware_doorbell_ptr
volatile uint32_t * legacy_hardware_doorbell_ptr
Definition: hsa_signal.hh:58

Generated on Wed Jul 28 2021 12:10:26 for gem5 by doxygen 1.8.17