• 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   VDPA_CMD_DEV_VSTATS_GET,
32 };
33 enum vdpa_attr {
34   VDPA_ATTR_UNSPEC,
35   VDPA_ATTR_PAD = VDPA_ATTR_UNSPEC,
36   VDPA_ATTR_MGMTDEV_BUS_NAME,
37   VDPA_ATTR_MGMTDEV_DEV_NAME,
38   VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES,
39   VDPA_ATTR_DEV_NAME,
40   VDPA_ATTR_DEV_ID,
41   VDPA_ATTR_DEV_VENDOR_ID,
42   VDPA_ATTR_DEV_MAX_VQS,
43   VDPA_ATTR_DEV_MAX_VQ_SIZE,
44   VDPA_ATTR_DEV_MIN_VQ_SIZE,
45   VDPA_ATTR_DEV_NET_CFG_MACADDR,
46   VDPA_ATTR_DEV_NET_STATUS,
47   VDPA_ATTR_DEV_NET_CFG_MAX_VQP,
48   VDPA_ATTR_DEV_NET_CFG_MTU,
49   VDPA_ATTR_DEV_NEGOTIATED_FEATURES,
50   VDPA_ATTR_DEV_MGMTDEV_MAX_VQS,
51   VDPA_ATTR_DEV_SUPPORTED_FEATURES,
52   VDPA_ATTR_DEV_QUEUE_INDEX,
53   VDPA_ATTR_DEV_VENDOR_ATTR_NAME,
54   VDPA_ATTR_DEV_VENDOR_ATTR_VALUE,
55   VDPA_ATTR_DEV_FEATURES,
56   VDPA_ATTR_MAX,
57 };
58 #endif
59