Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 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; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 20 | __u32 fh; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 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; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 32 | __u8 reserved; |
| 33 | __u16 imaxstbl; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 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 |