gem5 v24.0.0.0
Loading...
Searching...
No Matches
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
36namespace gem5
37{
38
39// AMD Signal Kind Enumeration Values.
40typedef int64_t amd_signal_kind64_t;
48
49// AMD Signal.
50typedef 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];
71
72typedef struct
73{
74 uint64_t start_ts;
75 uint64_t end_ts;
77
78} // namespace gem5
79
80#endif // DEV_HSA_HSA_SIGNAL_H
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36
amd_signal_kind_t
Definition hsa_signal.hh:42
@ AMD_SIGNAL_KIND_LEGACY_DOORBELL
Definition hsa_signal.hh:46
@ AMD_SIGNAL_KIND_DOORBELL
Definition hsa_signal.hh:45
@ AMD_SIGNAL_KIND_USER
Definition hsa_signal.hh:44
@ AMD_SIGNAL_KIND_INVALID
Definition hsa_signal.hh:43
int64_t amd_signal_kind64_t
Definition hsa_signal.hh:40
struct gem5::amd_signal_s amd_signal_t
volatile uint64_t * hardware_doorbell_ptr
Definition hsa_signal.hh:57
volatile int64_t value
Definition hsa_signal.hh:55
uint32_t reserved3[2]
Definition hsa_signal.hh:69
uint64_t event_mailbox_ptr
Definition hsa_signal.hh:59
volatile uint32_t * legacy_hardware_doorbell_ptr
Definition hsa_signal.hh:56
amd_signal_kind64_t kind
Definition hsa_signal.hh:52

Generated on Tue Jun 18 2024 16:24:03 for gem5 by doxygen 1.11.0