summaryrefslogtreecommitdiff
path: root/mainline/runtime/sdk/linux_bionic/include/bionic/libc/kernel/uapi/linux/vfio_zdev.h
blob: 03efc773db237e5f8bb05c100353d5c4e4640e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * This file is auto-generated. Modifications will be lost.
 *
 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
 * for more information.
 */
#ifndef _VFIO_ZDEV_H_
#define _VFIO_ZDEV_H_
#include <linux/types.h>
#include <linux/vfio.h>
struct vfio_device_info_cap_zpci_base {
  struct vfio_info_cap_header header;
  __u64 start_dma;
  __u64 end_dma;
  __u16 pchid;
  __u16 vfn;
  __u16 fmb_length;
  __u8 pft;
  __u8 gid;
  __u32 fh;
};
struct vfio_device_info_cap_zpci_group {
  struct vfio_info_cap_header header;
  __u64 dasm;
  __u64 msi_addr;
  __u64 flags;
#define VFIO_DEVICE_INFO_ZPCI_FLAG_REFRESH 1
  __u16 mui;
  __u16 noi;
  __u16 maxstbl;
  __u8 version;
  __u8 reserved;
  __u16 imaxstbl;
};
struct vfio_device_info_cap_zpci_util {
  struct vfio_info_cap_header header;
  __u32 size;
  __u8 util_str[];
};
struct vfio_device_info_cap_zpci_pfip {
  struct vfio_info_cap_header header;
  __u32 size;
  __u8 pfip[];
};
#endif