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