summaryrefslogtreecommitdiff
path: root/libc/kernel/uapi/linux/vfio_zdev.h
blob: c678e9a71d4c62db7493439ca17e64f1c78c8c9f (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
46
47
48
49
50
51
52
53
54
/****************************************************************************
 ****************************************************************************
 ***
 ***   This header was automatically generated from a Linux kernel header
 ***   of the same name, to make information necessary for userspace to
 ***   call into the kernel available to libc.  It contains only constants,
 ***   structures, and macros generated from the original header, and thus,
 ***   contains no copyrightable information.
 ***
 ***   To edit the content of this header, modify the corresponding
 ***   source file (e.g. under external/kernel-headers/original/) then
 ***   run bionic/libc/kernel/tools/update_all.py
 ***
 ***   Any manual change here will be lost the next time this script will
 ***   be run. You've been warned!
 ***
 ****************************************************************************
 ****************************************************************************/
#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;
};
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;
};
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