xref: /linux/arch/powerpc/include/uapi/asm/spu_info.h (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /*
3  * SPU info structures
4  *
5  * (C) Copyright 2006 IBM Corp.
6  *
7  * Author: Dwayne Grant McConnell <decimal@us.ibm.com>
8  */
9 
10 #ifndef _UAPI_SPU_INFO_H
11 #define _UAPI_SPU_INFO_H
12 
13 #include <linux/types.h>
14 
15 #ifndef __KERNEL__
16 struct mfc_cq_sr {
17 	__u64 mfc_cq_data0_RW;
18 	__u64 mfc_cq_data1_RW;
19 	__u64 mfc_cq_data2_RW;
20 	__u64 mfc_cq_data3_RW;
21 };
22 #endif /* __KERNEL__ */
23 
24 struct spu_dma_info {
25 	__u64 dma_info_type;
26 	__u64 dma_info_mask;
27 	__u64 dma_info_status;
28 	__u64 dma_info_stall_and_notify;
29 	__u64 dma_info_atomic_command_status;
30 	struct mfc_cq_sr dma_info_command_data[16];
31 };
32 
33 struct spu_proxydma_info {
34 	__u64 proxydma_info_type;
35 	__u64 proxydma_info_mask;
36 	__u64 proxydma_info_status;
37 	struct mfc_cq_sr proxydma_info_command_data[8];
38 };
39 
40 #endif /* _UAPI_SPU_INFO_H */
41