xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/vfio_zdev.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker /*
2*8d67ca89SAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*8d67ca89SAndroid Build Coastguard Worker  *
4*8d67ca89SAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*8d67ca89SAndroid Build Coastguard Worker  * for more information.
6*8d67ca89SAndroid Build Coastguard Worker  */
7*8d67ca89SAndroid Build Coastguard Worker #ifndef _VFIO_ZDEV_H_
8*8d67ca89SAndroid Build Coastguard Worker #define _VFIO_ZDEV_H_
9*8d67ca89SAndroid Build Coastguard Worker #include <linux/types.h>
10*8d67ca89SAndroid Build Coastguard Worker #include <linux/vfio.h>
11*8d67ca89SAndroid Build Coastguard Worker struct vfio_device_info_cap_zpci_base {
12*8d67ca89SAndroid Build Coastguard Worker   struct vfio_info_cap_header header;
13*8d67ca89SAndroid Build Coastguard Worker   __u64 start_dma;
14*8d67ca89SAndroid Build Coastguard Worker   __u64 end_dma;
15*8d67ca89SAndroid Build Coastguard Worker   __u16 pchid;
16*8d67ca89SAndroid Build Coastguard Worker   __u16 vfn;
17*8d67ca89SAndroid Build Coastguard Worker   __u16 fmb_length;
18*8d67ca89SAndroid Build Coastguard Worker   __u8 pft;
19*8d67ca89SAndroid Build Coastguard Worker   __u8 gid;
20*8d67ca89SAndroid Build Coastguard Worker   __u32 fh;
21*8d67ca89SAndroid Build Coastguard Worker };
22*8d67ca89SAndroid Build Coastguard Worker struct vfio_device_info_cap_zpci_group {
23*8d67ca89SAndroid Build Coastguard Worker   struct vfio_info_cap_header header;
24*8d67ca89SAndroid Build Coastguard Worker   __u64 dasm;
25*8d67ca89SAndroid Build Coastguard Worker   __u64 msi_addr;
26*8d67ca89SAndroid Build Coastguard Worker   __u64 flags;
27*8d67ca89SAndroid Build Coastguard Worker #define VFIO_DEVICE_INFO_ZPCI_FLAG_REFRESH 1
28*8d67ca89SAndroid Build Coastguard Worker   __u16 mui;
29*8d67ca89SAndroid Build Coastguard Worker   __u16 noi;
30*8d67ca89SAndroid Build Coastguard Worker   __u16 maxstbl;
31*8d67ca89SAndroid Build Coastguard Worker   __u8 version;
32*8d67ca89SAndroid Build Coastguard Worker   __u8 reserved;
33*8d67ca89SAndroid Build Coastguard Worker   __u16 imaxstbl;
34*8d67ca89SAndroid Build Coastguard Worker };
35*8d67ca89SAndroid Build Coastguard Worker struct vfio_device_info_cap_zpci_util {
36*8d67ca89SAndroid Build Coastguard Worker   struct vfio_info_cap_header header;
37*8d67ca89SAndroid Build Coastguard Worker   __u32 size;
38*8d67ca89SAndroid Build Coastguard Worker   __u8 util_str[];
39*8d67ca89SAndroid Build Coastguard Worker };
40*8d67ca89SAndroid Build Coastguard Worker struct vfio_device_info_cap_zpci_pfip {
41*8d67ca89SAndroid Build Coastguard Worker   struct vfio_info_cap_header header;
42*8d67ca89SAndroid Build Coastguard Worker   __u32 size;
43*8d67ca89SAndroid Build Coastguard Worker   __u8 pfip[];
44*8d67ca89SAndroid Build Coastguard Worker };
45*8d67ca89SAndroid Build Coastguard Worker #endif
46