blob: 03efc773db237e5f8bb05c100353d5c4e4640e62 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Ferris32ff3f82020-12-14 13:10:04 -08007#ifndef _VFIO_ZDEV_H_
8#define _VFIO_ZDEV_H_
9#include <linux/types.h>
10#include <linux/vfio.h>
11struct 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 Ferris7447a1c2022-10-04 18:24:44 -070020 __u32 fh;
Christopher Ferris32ff3f82020-12-14 13:10:04 -080021};
22struct 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 Ferris7447a1c2022-10-04 18:24:44 -070032 __u8 reserved;
33 __u16 imaxstbl;
Christopher Ferris32ff3f82020-12-14 13:10:04 -080034};
35struct vfio_device_info_cap_zpci_util {
36 struct vfio_info_cap_header header;
37 __u32 size;
38 __u8 util_str[];
39};
40struct vfio_device_info_cap_zpci_pfip {
41 struct vfio_info_cap_header header;
42 __u32 size;
43 __u8 pfip[];
44};
45#endif