platform_bionic/libc/kernel/uapi/linux/vfio_zdev.h
Christopher Ferris 7447a1ceea Update to v6.0 kernel headers.
Kernel headers coming from:

Git: https://android.googlesource.com/kernel/common/
Branch: android-mainline
Tag: android-mainline-6.0

Test: Boots on coral.
Test: Bionic unit tests pass.
Change-Id: I282de83f23b432bef58214108a93700bdadddf0f
2022-10-05 16:58:32 -07:00

57 lines
1.7 KiB
C

/****************************************************************************
****************************************************************************
***
*** 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;
__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