Debian Codegraph @

runtime/hsa-runtime/inc/amd_hsa_signal.h

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////cxx . . $ `<file>/runtime/hsa-runtime/inc/amd_hsa_signal.h`/
2 //
3 // The University of Illinois/NCSA
4 // Open Source License (NCSA)
5 //
6 // Copyright (c) 2014-2020, Advanced Micro Devices, Inc. All rights reserved.
7 //
8 // Developed by:
9 //
10 // AMD Research and AMD HSA Software Development
11 //
12 // Advanced Micro Devices, Inc.
13 //
14 // www.amd.com
15 //
16 // Permission is hereby granted, free of charge, to any person obtaining a copy
17 // of this software and associated documentation files (the "Software"), to
18 // deal with the Software without restriction, including without limitation
19 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
20 // and/or sell copies of the Software, and to permit persons to whom the
21 // Software is furnished to do so, subject to the following conditions:
22 //
23 // - Redistributions of source code must retain the above copyright notice,
24 // this list of conditions and the following disclaimers.
25 // - Redistributions in binary form must reproduce the above copyright
26 // notice, this list of conditions and the following disclaimers in
27 // the documentation and/or other materials provided with the distribution.
28 // - Neither the names of Advanced Micro Devices, Inc,
29 // nor the names of its contributors may be used to endorse or promote
30 // products derived from this Software without specific prior written
31 // permission.
32 //
33 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
36 // THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
37 // OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
38 // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
39 // DEALINGS WITH THE SOFTWARE.
40 //
41 ////////////////////////////////////////////////////////////////////////////////
42
43 #ifndef AMD_HSA_SIGNAL_H
44 #define AMD_HSA_SIGNAL_Hcxx . . $ `runtime/hsa-runtime/inc/amd_hsa_signal.h:44:9`!
45
46 #include "amd_hsa_common.h"cxx . . $ `<file>/runtime/hsa-runtime/inc/amd_hsa_common.h`/
47 #include "amd_hsa_queue.h"cxx . . $ `<file>/runtime/hsa-runtime/inc/amd_hsa_queue.h`/
48
49 // AMD Signal Kind Enumeration Values.
50 typedef int64_t amd_signal_kind64_tcxx . . $ amd_signal_kind64_t#;
51 enum amd_signal_kind_tcxx . . $ amd_signal_kind_t# {
52 AMD_SIGNAL_KIND_INVALIDcxx . . $ AMD_SIGNAL_KIND_INVALID. = 0,
53 AMD_SIGNAL_KIND_USERcxx . . $ AMD_SIGNAL_KIND_USER. = 1,
54 AMD_SIGNAL_KIND_DOORBELLcxx . . $ AMD_SIGNAL_KIND_DOORBELL. = -1,
55 AMD_SIGNAL_KIND_LEGACY_DOORBELLcxx . . $ AMD_SIGNAL_KIND_LEGACY_DOORBELL. = -2
56 };
57
58 // AMD Signal.
59 #define AMD_SIGNAL_ALIGN_BYTEScxx . . $ `runtime/hsa-runtime/inc/amd_hsa_signal.h:59:9`! 64
60 #define AMD_SIGNAL_ALIGNcxx . . $ `runtime/hsa-runtime/inc/amd_hsa_signal.h:60:9`! __ALIGNED__cxx . . $ `runtime/hsa-runtime/inc/amd_hsa_common.h:66:11`!(AMD_SIGNAL_ALIGN_BYTEScxx . . $ `runtime/hsa-runtime/inc/amd_hsa_signal.h:59:9`!)
61 typedef struct AMD_SIGNAL_ALIGNcxx . . $ `runtime/hsa-runtime/inc/amd_hsa_signal.h:60:9`! amd_signal_scxx . . $ amd_signal_s# {
62 amd_signal_kind64_tcxx . . $ amd_signal_kind64_t# kindcxx . . $ amd_signal_s#kind.;
63 unioncxx . . $ amd_signal_s#$anonymous_type_0# {
64 volatile int64_t valuecxx . . $ amd_signal_s#$anonymous_type_0#value.;
65 volatile uint32_tcxx . . $ uint32_t#* legacy_hardware_doorbell_ptrcxx . . $ amd_signal_s#$anonymous_type_0#legacy_hardware_doorbell_ptr.;
66 volatile uint64_tcxx . . $ uint64_t#* hardware_doorbell_ptrcxx . . $ amd_signal_s#$anonymous_type_0#hardware_doorbell_ptr.;
67 };
68 uint64_tcxx . . $ uint64_t# event_mailbox_ptrcxx . . $ amd_signal_s#event_mailbox_ptr.;
69 uint32_tcxx . . $ uint32_t# event_idcxx . . $ amd_signal_s#event_id.;
70 uint32_tcxx . . $ uint32_t# reserved1cxx . . $ amd_signal_s#reserved1.;
71 uint64_tcxx . . $ uint64_t# start_tscxx . . $ amd_signal_s#start_ts.;
72 uint64_tcxx . . $ uint64_t# end_tscxx . . $ amd_signal_s#end_ts.;
73 unioncxx . . $ amd_signal_s#$anonymous_type_1# {
74 amd_queue_v2_tcxx . . $ amd_queue_v2_t#* queue_ptrcxx . . $ amd_signal_s#$anonymous_type_1#queue_ptr.;
75 uint64_tcxx . . $ uint64_t# reserved2cxx . . $ amd_signal_s#$anonymous_type_1#reserved2.;
76 };
77 uint32_tcxx . . $ uint32_t# reserved3cxx . . $ amd_signal_s#reserved3.[2];
78 } amd_signal_tcxx . . $ amd_signal_t#;
79
80 #endif // AMD_HSA_SIGNAL_H