blob: 1c3a943330f2d0605e139d6dc75d25681b6fb741 [file] [log] [blame]
Christopher Ferris32ff3f82020-12-14 13:10:04 -08001/****************************************************************************
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>
23struct 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;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070032 __u32 fh;
Christopher Ferris32ff3f82020-12-14 13:10:04 -080033};
34struct 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;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070044 __u8 reserved;
45 __u16 imaxstbl;
Christopher Ferris32ff3f82020-12-14 13:10:04 -080046};
47struct vfio_device_info_cap_zpci_util {
48 struct vfio_info_cap_header header;
49 __u32 size;
50 __u8 util_str[];
51};
52struct vfio_device_info_cap_zpci_pfip {
53 struct vfio_info_cap_header header;
54 __u32 size;
55 __u8 pfip[];
56};
57#endif