1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2026, Advanced Micro Devices, Inc. 4 */ 5 6 #ifndef _AIE4_HOST_QUEUE_H_ 7 #define _AIE4_HOST_QUEUE_H_ 8 9 #include <linux/types.h> 10 11 #define CTX_MAX_CMDS 32 12 13 struct host_queue_header { 14 __u64 read_index; 15 struct { 16 __u16 major; 17 __u16 minor; 18 } version; 19 __u32 capacity; /* Queue capacity, must be power of two. */ 20 __u64 write_index; 21 __u64 data_address; /* The xdna dev addr for payload. */ 22 }; 23 24 #endif /* _AIE4_HOST_QUEUE_H_ */ 25