mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-09 07:08:59 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
47 lines
No EOL
1.2 KiB
C
Vendored
47 lines
No EOL
1.2 KiB
C
Vendored
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
|
/*
|
|
* vdpa device management interface
|
|
* Copyright (c) 2020 Mellanox Technologies Ltd. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _LINUX_VDPA_H_
|
|
#define _LINUX_VDPA_H_
|
|
|
|
#define VDPA_GENL_NAME "vdpa"
|
|
#define VDPA_GENL_VERSION 0x1
|
|
|
|
enum vdpa_command {
|
|
VDPA_CMD_UNSPEC,
|
|
VDPA_CMD_MGMTDEV_NEW,
|
|
VDPA_CMD_MGMTDEV_GET, /* can dump */
|
|
VDPA_CMD_DEV_NEW,
|
|
VDPA_CMD_DEV_DEL,
|
|
VDPA_CMD_DEV_GET, /* can dump */
|
|
VDPA_CMD_DEV_CONFIG_GET, /* can dump */
|
|
};
|
|
|
|
enum vdpa_attr {
|
|
VDPA_ATTR_UNSPEC,
|
|
|
|
/* bus name (optional) + dev name together make the parent device handle */
|
|
VDPA_ATTR_MGMTDEV_BUS_NAME, /* string */
|
|
VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */
|
|
VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */
|
|
|
|
VDPA_ATTR_DEV_NAME, /* string */
|
|
VDPA_ATTR_DEV_ID, /* u32 */
|
|
VDPA_ATTR_DEV_VENDOR_ID, /* u32 */
|
|
VDPA_ATTR_DEV_MAX_VQS, /* u32 */
|
|
VDPA_ATTR_DEV_MAX_VQ_SIZE, /* u16 */
|
|
VDPA_ATTR_DEV_MIN_VQ_SIZE, /* u16 */
|
|
|
|
VDPA_ATTR_DEV_NET_CFG_MACADDR, /* binary */
|
|
VDPA_ATTR_DEV_NET_STATUS, /* u8 */
|
|
VDPA_ATTR_DEV_NET_CFG_MAX_VQP, /* u16 */
|
|
VDPA_ATTR_DEV_NET_CFG_MTU, /* u16 */
|
|
|
|
/* new attributes must be added above here */
|
|
VDPA_ATTR_MAX,
|
|
};
|
|
|
|
#endif |