blob: ed61cdd402cb558a31bc08e49e46e189430948d0 [file] [log] [blame]
Christopher Ferrisa9750ed2021-05-03 14:02:49 -07001/****************************************************************************
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
23enum 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,
Christopher Ferrisa4792612022-01-10 13:51:15 -080030 VDPA_CMD_DEV_CONFIG_GET,
Christopher Ferris80ae69d2022-08-02 16:32:21 -070031 VDPA_CMD_DEV_VSTATS_GET,
Christopher Ferrisa9750ed2021-05-03 14:02:49 -070032};
33enum vdpa_attr {
34 VDPA_ATTR_UNSPEC,
Christopher Ferris1ed55342022-03-22 16:06:25 -070035 VDPA_ATTR_PAD = VDPA_ATTR_UNSPEC,
Christopher Ferrisa9750ed2021-05-03 14:02:49 -070036 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,
Christopher Ferrisa4792612022-01-10 13:51:15 -080044 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,
Christopher Ferris1ed55342022-03-22 16:06:25 -070049 VDPA_ATTR_DEV_NEGOTIATED_FEATURES,
50 VDPA_ATTR_DEV_MGMTDEV_MAX_VQS,
51 VDPA_ATTR_DEV_SUPPORTED_FEATURES,
Christopher Ferris80ae69d2022-08-02 16:32:21 -070052 VDPA_ATTR_DEV_QUEUE_INDEX,
53 VDPA_ATTR_DEV_VENDOR_ATTR_NAME,
54 VDPA_ATTR_DEV_VENDOR_ATTR_VALUE,
Christopher Ferris6cd53a52022-12-12 23:39:16 +000055 VDPA_ATTR_DEV_FEATURES,
56 VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES,
Christopher Ferrisa9750ed2021-05-03 14:02:49 -070057 VDPA_ATTR_MAX,
58};
59#endif