• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _VFIO_ZDEV_H_
20 #define _VFIO_ZDEV_H_
21 #include <linux/types.h>
22 #include <linux/vfio.h>
23 struct vfio_device_info_cap_zpci_base {
24   struct vfio_info_cap_header header;
25   __u64 start_dma;
26   __u64 end_dma;
27   __u16 pchid;
28   __u16 vfn;
29   __u16 fmb_length;
30   __u8 pft;
31   __u8 gid;
32   __u32 fh;
33 };
34 struct vfio_device_info_cap_zpci_group {
35   struct vfio_info_cap_header header;
36   __u64 dasm;
37   __u64 msi_addr;
38   __u64 flags;
39 #define VFIO_DEVICE_INFO_ZPCI_FLAG_REFRESH 1
40   __u16 mui;
41   __u16 noi;
42   __u16 maxstbl;
43   __u8 version;
44   __u8 reserved;
45   __u16 imaxstbl;
46 };
47 struct vfio_device_info_cap_zpci_util {
48   struct vfio_info_cap_header header;
49   __u32 size;
50   __u8 util_str[];
51 };
52 struct vfio_device_info_cap_zpci_pfip {
53   struct vfio_info_cap_header header;
54   __u32 size;
55   __u8 pfip[];
56 };
57 #endif
58