• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
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 _UAPI_LINUX_VDPA_H_
20 #define _UAPI_LINUX_VDPA_H_
21 #define VDPA_GENL_NAME "vdpa"
22 #define VDPA_GENL_VERSION 0x1
23 enum vdpa_command {
24   VDPA_CMD_UNSPEC,
25   VDPA_CMD_MGMTDEV_NEW,
26   VDPA_CMD_MGMTDEV_GET,
27   VDPA_CMD_DEV_NEW,
28   VDPA_CMD_DEV_DEL,
29   VDPA_CMD_DEV_GET,
30   VDPA_CMD_DEV_CONFIG_GET,
31 };
32 enum vdpa_attr {
33   VDPA_ATTR_UNSPEC,
34   VDPA_ATTR_PAD = VDPA_ATTR_UNSPEC,
35   VDPA_ATTR_MGMTDEV_BUS_NAME,
36   VDPA_ATTR_MGMTDEV_DEV_NAME,
37   VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES,
38   VDPA_ATTR_DEV_NAME,
39   VDPA_ATTR_DEV_ID,
40   VDPA_ATTR_DEV_VENDOR_ID,
41   VDPA_ATTR_DEV_MAX_VQS,
42   VDPA_ATTR_DEV_MAX_VQ_SIZE,
43   VDPA_ATTR_DEV_MIN_VQ_SIZE,
44   VDPA_ATTR_DEV_NET_CFG_MACADDR,
45   VDPA_ATTR_DEV_NET_STATUS,
46   VDPA_ATTR_DEV_NET_CFG_MAX_VQP,
47   VDPA_ATTR_DEV_NET_CFG_MTU,
48   VDPA_ATTR_DEV_NEGOTIATED_FEATURES,
49   VDPA_ATTR_DEV_MGMTDEV_MAX_VQS,
50   VDPA_ATTR_DEV_SUPPORTED_FEATURES,
51   VDPA_ATTR_MAX,
52 };
53 #endif
54