MLIR-AIE
hsa_ext_air.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////////////
2//
3// The University of Illinois/NCSA
4// Open Source License (NCSA)
5//
6// Copyright (c) 2023, 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 HSA_RUNTIME_EXT_AIR_H_
44#define HSA_RUNTIME_EXT_AIR_H_
45
46#include <stdint.h>
47
48#define AIR_ADDRESS_ABSOLUTE 0x0L
49#define AIR_ADDRESS_ABSOLUTE_RANGE 0x1L
50#define AIR_ADDRESS_HERD_RELATIVE 0x2L
51#define AIR_ADDRESS_HERD_RELATIVE_RANGE 0x3L
52
53#ifdef __cplusplus
54extern "C" {
55#endif /* __cplusplus */
56
57/**
58 * @brief AIR vendor-specific packet type.
59 */
95
96/**
97 * @brief AIR agent attributes.
98 */
112
113#ifdef __cplusplus
114} // end extern "C" block
115#endif
116
117#endif // header guard
hsa_air_agent_info_t
AIR agent attributes.
Definition hsa_ext_air.h:99
@ AIR_AGENT_INFO_CONTROLLER_ID
@ AIR_AGENT_INFO_HERD_ROWS
@ AIR_AGENT_INFO_FIRMWARE_VER
@ AIR_AGENT_INFO_NUM_REGIONS
@ AIR_AGENT_INFO_TILE_PROG_MEM_SIZE
@ AIR_AGENT_INFO_VENDOR_NAME
@ AIR_AGENT_INFO_L2_MEM_SIZE
@ AIR_AGENT_INFO_HERD_SIZE
@ AIR_AGENT_INFO_HERD_COLS
@ AIR_AGENT_INFO_NAME
@ AIR_AGENT_INFO_TILE_DATA_MEM_SIZE
hsa_air_packet_type_t
AIR vendor-specific packet type.
Definition hsa_ext_air.h:60
@ AIR_PKT_TYPE_HERD_SHIM_DMA_MEMCPY
Definition hsa_ext_air.h:90
@ AIR_PKT_TYPE_SEGMENT_INITIALIZE
Definition hsa_ext_air.h:69
@ AIR_PKT_TYPE_CORE_STATUS
Definition hsa_ext_air.h:66
@ AIR_PKT_TYPE_HERD_SHIM_DMA_1D_STRIDED_MEMCPY
Definition hsa_ext_air.h:91
@ AIR_PKT_TYPE_AIRBIN
Definition hsa_ext_air.h:86
@ AIR_PKT_TYPE_PUT_STREAM
Definition hsa_ext_air.h:62
@ AIR_PKT_TYPE_POST_RDMA_RECV
Definition hsa_ext_air.h:81
@ AIR_PKT_TYPE_XAIE_LOCK
Definition hsa_ext_air.h:75
@ AIR_PKT_TYPE_SDMA_STATUS
Definition hsa_ext_air.h:64
@ AIR_PKT_TYPE_HELLO
Definition hsa_ext_air.h:70
@ AIR_PKT_TYPE_GET_INFO
Definition hsa_ext_air.h:73
@ AIR_PKT_TYPE_GET_STREAM
Definition hsa_ext_air.h:63
@ AIR_PKT_TYPE_TRANSLATE
Definition hsa_ext_air.h:87
@ AIR_PKT_TYPE_GET_CAPABILITIES
Definition hsa_ext_air.h:72
@ AIR_PKT_TYPE_CONFIGURE
Definition hsa_ext_air.h:78
@ AIR_PKT_TYPE_READ_AIE_REG32
Definition hsa_ext_air.h:84
@ AIR_PKT_TYPE_WRITE_AIE_REG32
Definition hsa_ext_air.h:85
@ AIR_PKT_TYPE_DEVICE_INITIALIZE
Definition hsa_ext_air.h:68
@ AIR_PKT_TYPE_PROG_FIRMWARE
Definition hsa_ext_air.h:83
@ AIR_PKT_TYPE_POST_RDMA_WQE
Definition hsa_ext_air.h:80
@ AIR_PKT_TYPE_ND_MEMCPY
Definition hsa_ext_air.h:92
@ AIR_PKT_TYPE_INVALID
Definition hsa_ext_air.h:61
@ AIR_PKT_TYPE_CDMA
Definition hsa_ext_air.h:77
@ AIR_PKT_TYPE_ALLOCATE_HERD_SHIM_DMAS
Definition hsa_ext_air.h:71
@ AIR_PKT_TYPE_TDMA_STATUS
Definition hsa_ext_air.h:65
@ AIR_PKT_TYPE_SHIM_DMA_MEMCPY
Definition hsa_ext_air.h:89