summaryrefslogtreecommitdiff
path: root/drivers/accel/amdxdna/aie4_host_queue.h
blob: 1b33eda3f7278c5abaa18af648a755f465883cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2026, Advanced Micro Devices, Inc.
 */

#ifndef _AIE4_HOST_QUEUE_H_
#define _AIE4_HOST_QUEUE_H_

#include <linux/types.h>

#define CTX_MAX_CMDS                    32

struct host_queue_header {
	__u64 read_index;
	struct {
		__u16 major;
		__u16 minor;
	} version;
	__u32 capacity; /* Queue capacity, must be power of two. */
	__u64 write_index;
	__u64 data_address; /* The xdna dev addr for payload. */
};

#endif /* _AIE4_HOST_QUEUE_H_ */