Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 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 | }; |
| 33 | struct vfio_device_info_cap_zpci_group { |
| 34 | struct vfio_info_cap_header header; |
| 35 | __u64 dasm; |
| 36 | __u64 msi_addr; |
| 37 | __u64 flags; |
| 38 | #define VFIO_DEVICE_INFO_ZPCI_FLAG_REFRESH 1 |
| 39 | __u16 mui; |
| 40 | __u16 noi; |
| 41 | __u16 maxstbl; |
| 42 | __u8 version; |
| 43 | }; |
| 44 | struct vfio_device_info_cap_zpci_util { |
| 45 | struct vfio_info_cap_header header; |
| 46 | __u32 size; |
| 47 | __u8 util_str[]; |
| 48 | }; |
| 49 | struct vfio_device_info_cap_zpci_pfip { |
| 50 | struct vfio_info_cap_header header; |
| 51 | __u32 size; |
| 52 | __u8 pfip[]; |
| 53 | }; |
| 54 | #endif |