Update to v5.15 kernel headers.
Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.15 Test: Builds, and ran bionic unit tests on flame. Change-Id: I86901ea6d89fb0f7384b90a47bef35d194083c24
This commit is contained in:
parent
d7b0bde05f
commit
2abfa9e4f8
75 changed files with 1099 additions and 335 deletions
|
@ -801,6 +801,9 @@
|
|||
#if defined(__NR_process_madvise)
|
||||
#define SYS_process_madvise __NR_process_madvise
|
||||
#endif
|
||||
#if defined(__NR_process_mrelease)
|
||||
#define SYS_process_mrelease __NR_process_mrelease
|
||||
#endif
|
||||
#if defined(__NR_process_vm_readv)
|
||||
#define SYS_process_vm_readv __NR_process_vm_readv
|
||||
#endif
|
||||
|
|
|
@ -35,38 +35,12 @@ struct ccs_modesel_head {
|
|||
__u8 block_length_med;
|
||||
__u8 block_length_lo;
|
||||
};
|
||||
#define COMMAND_COMPLETE 0x00
|
||||
#define EXTENDED_MESSAGE 0x01
|
||||
#define EXTENDED_MODIFY_DATA_POINTER 0x00
|
||||
#define EXTENDED_SDTR 0x01
|
||||
#define EXTENDED_EXTENDED_IDENTIFY 0x02
|
||||
#define EXTENDED_WDTR 0x03
|
||||
#define EXTENDED_PPR 0x04
|
||||
#define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05
|
||||
#define SAVE_POINTERS 0x02
|
||||
#define RESTORE_POINTERS 0x03
|
||||
#define DISCONNECT 0x04
|
||||
#define INITIATOR_ERROR 0x05
|
||||
#define ABORT_TASK_SET 0x06
|
||||
#define MESSAGE_REJECT 0x07
|
||||
#define NOP 0x08
|
||||
#define MSG_PARITY_ERROR 0x09
|
||||
#define LINKED_CMD_COMPLETE 0x0a
|
||||
#define LINKED_FLG_CMD_COMPLETE 0x0b
|
||||
#define TARGET_RESET 0x0c
|
||||
#define ABORT_TASK 0x0d
|
||||
#define CLEAR_TASK_SET 0x0e
|
||||
#define INITIATE_RECOVERY 0x0f
|
||||
#define RELEASE_RECOVERY 0x10
|
||||
#define TERMINATE_IO_PROC 0x11
|
||||
#define CLEAR_ACA 0x16
|
||||
#define LOGICAL_UNIT_RESET 0x17
|
||||
#define SIMPLE_QUEUE_TAG 0x20
|
||||
#define HEAD_OF_QUEUE_TAG 0x21
|
||||
#define ORDERED_QUEUE_TAG 0x22
|
||||
#define IGNORE_WIDE_RESIDUE 0x23
|
||||
#define ACA 0x24
|
||||
#define QAS_REQUEST 0x55
|
||||
#define SCSI_IOCTL_GET_IDLUN 0x5382
|
||||
#define SCSI_IOCTL_PROBE_HOST 0x5385
|
||||
#define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
|
||||
|
|
|
@ -418,4 +418,5 @@
|
|||
#define __NR_landlock_create_ruleset (__NR_SYSCALL_BASE + 444)
|
||||
#define __NR_landlock_add_rule (__NR_SYSCALL_BASE + 445)
|
||||
#define __NR_landlock_restrict_self (__NR_SYSCALL_BASE + 446)
|
||||
#define __NR_process_mrelease (__NR_SYSCALL_BASE + 448)
|
||||
#endif
|
||||
|
|
|
@ -430,4 +430,5 @@
|
|||
#define __NR_landlock_create_ruleset (__NR_SYSCALL_BASE + 444)
|
||||
#define __NR_landlock_add_rule (__NR_SYSCALL_BASE + 445)
|
||||
#define __NR_landlock_restrict_self (__NR_SYSCALL_BASE + 446)
|
||||
#define __NR_process_mrelease (__NR_SYSCALL_BASE + 448)
|
||||
#endif
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#ifndef _UAPI__ASM_ARM_UNISTD_H
|
||||
#define _UAPI__ASM_ARM_UNISTD_H
|
||||
#define __NR_OABI_SYSCALL_BASE 0x900000
|
||||
#define __NR_SYSCALL_MASK 0x0fffff
|
||||
#define __NR_SYSCALL_BASE 0
|
||||
#include <asm/unistd-eabi.h>
|
||||
#define __NR_sync_file_range2 __NR_arm_sync_file_range
|
||||
|
|
|
@ -98,6 +98,7 @@
|
|||
#define SO_PREFER_BUSY_POLL 69
|
||||
#define SO_BUSY_POLL_BUDGET 70
|
||||
#define SO_NETNS_COOKIE 71
|
||||
#define SO_BUF_LOCK 72
|
||||
#if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__)
|
||||
#define SO_TIMESTAMP SO_TIMESTAMP_OLD
|
||||
#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
|
||||
|
|
|
@ -410,8 +410,9 @@
|
|||
#ifdef __ARCH_WANT_MEMFD_SECRET
|
||||
#define __NR_memfd_secret 447
|
||||
#endif
|
||||
#define __NR_process_mrelease 448
|
||||
#undef __NR_syscalls
|
||||
#define __NR_syscalls 448
|
||||
#define __NR_syscalls 449
|
||||
#if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
|
||||
#define __NR_fcntl __NR3264_fcntl
|
||||
#define __NR_statfs __NR3264_statfs
|
||||
|
|
|
@ -257,6 +257,7 @@ struct kvm_debug_exit_arch {
|
|||
#define KVM_GUESTDBG_USE_HW_BP 0x00020000
|
||||
#define KVM_GUESTDBG_INJECT_DB 0x00040000
|
||||
#define KVM_GUESTDBG_INJECT_BP 0x00080000
|
||||
#define KVM_GUESTDBG_BLOCKIRQ 0x00100000
|
||||
struct kvm_guest_debug_arch {
|
||||
__u64 debugreg[8];
|
||||
};
|
||||
|
|
|
@ -455,4 +455,5 @@
|
|||
#define __NR_landlock_add_rule 445
|
||||
#define __NR_landlock_restrict_self 446
|
||||
#define __NR_memfd_secret 447
|
||||
#define __NR_process_mrelease 448
|
||||
#endif
|
||||
|
|
|
@ -377,4 +377,5 @@
|
|||
#define __NR_landlock_add_rule 445
|
||||
#define __NR_landlock_restrict_self 446
|
||||
#define __NR_memfd_secret 447
|
||||
#define __NR_process_mrelease 448
|
||||
#endif
|
||||
|
|
|
@ -330,6 +330,7 @@
|
|||
#define __NR_landlock_add_rule (__X32_SYSCALL_BIT + 445)
|
||||
#define __NR_landlock_restrict_self (__X32_SYSCALL_BIT + 446)
|
||||
#define __NR_memfd_secret (__X32_SYSCALL_BIT + 447)
|
||||
#define __NR_process_mrelease (__X32_SYSCALL_BIT + 448)
|
||||
#define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512)
|
||||
#define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513)
|
||||
#define __NR_ioctl (__X32_SYSCALL_BIT + 514)
|
||||
|
|
|
@ -207,6 +207,15 @@ extern "C" {
|
|||
#define AFBC_FORMAT_MOD_DB (1ULL << 10)
|
||||
#define AFBC_FORMAT_MOD_BCH (1ULL << 11)
|
||||
#define AFBC_FORMAT_MOD_USM (1ULL << 12)
|
||||
#define DRM_FORMAT_MOD_ARM_TYPE_AFRC 0x02
|
||||
#define DRM_FORMAT_MOD_ARM_AFRC(__afrc_mode) DRM_FORMAT_MOD_ARM_CODE(DRM_FORMAT_MOD_ARM_TYPE_AFRC, __afrc_mode)
|
||||
#define AFRC_FORMAT_MOD_CU_SIZE_MASK 0xf
|
||||
#define AFRC_FORMAT_MOD_CU_SIZE_16 (1ULL)
|
||||
#define AFRC_FORMAT_MOD_CU_SIZE_24 (2ULL)
|
||||
#define AFRC_FORMAT_MOD_CU_SIZE_32 (3ULL)
|
||||
#define AFRC_FORMAT_MOD_CU_SIZE_P0(__afrc_cu_size) (__afrc_cu_size)
|
||||
#define AFRC_FORMAT_MOD_CU_SIZE_P12(__afrc_cu_size) ((__afrc_cu_size) << 4)
|
||||
#define AFRC_FORMAT_MOD_LAYOUT_SCAN (1ULL << 8)
|
||||
#define DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED DRM_FORMAT_MOD_ARM_CODE(DRM_FORMAT_MOD_ARM_TYPE_MISC, 1ULL)
|
||||
#define DRM_FORMAT_MOD_ALLWINNER_TILED fourcc_mod_code(ALLWINNER, 1)
|
||||
#define __fourcc_mod_amlogic_layout_mask 0xff
|
||||
|
|
|
@ -351,6 +351,7 @@ typedef struct drm_i915_irq_wait {
|
|||
#define I915_SCHEDULER_CAP_PREEMPTION (1ul << 2)
|
||||
#define I915_SCHEDULER_CAP_SEMAPHORES (1ul << 3)
|
||||
#define I915_SCHEDULER_CAP_ENGINE_BUSY_STATS (1ul << 4)
|
||||
#define I915_SCHEDULER_CAP_STATIC_PRIORITY_MAP (1ul << 5)
|
||||
#define I915_PARAM_HUC_STATUS 42
|
||||
#define I915_PARAM_HAS_EXEC_ASYNC 43
|
||||
#define I915_PARAM_HAS_EXEC_FENCE 44
|
||||
|
@ -365,6 +366,7 @@ typedef struct drm_i915_irq_wait {
|
|||
#define I915_PARAM_HAS_EXEC_SUBMIT_FENCE 53
|
||||
#define I915_PARAM_PERF_REVISION 54
|
||||
#define I915_PARAM_HAS_EXEC_TIMELINE_FENCES 55
|
||||
#define I915_PARAM_HAS_USERPTR_PROBE 56
|
||||
typedef struct drm_i915_getparam {
|
||||
__s32 param;
|
||||
int __user * value;
|
||||
|
@ -455,6 +457,7 @@ struct drm_i915_gem_mmap_offset {
|
|||
#define I915_MMAP_OFFSET_WC 1
|
||||
#define I915_MMAP_OFFSET_WB 2
|
||||
#define I915_MMAP_OFFSET_UC 3
|
||||
#define I915_MMAP_OFFSET_FIXED 4
|
||||
__u64 extensions;
|
||||
};
|
||||
struct drm_i915_gem_set_domain {
|
||||
|
@ -592,11 +595,11 @@ struct drm_i915_gem_busy {
|
|||
__u32 handle;
|
||||
__u32 busy;
|
||||
};
|
||||
struct drm_i915_gem_caching {
|
||||
__u32 handle;
|
||||
#define I915_CACHING_NONE 0
|
||||
#define I915_CACHING_CACHED 1
|
||||
#define I915_CACHING_DISPLAY 2
|
||||
struct drm_i915_gem_caching {
|
||||
__u32 handle;
|
||||
__u32 caching;
|
||||
};
|
||||
#define I915_TILING_NONE 0
|
||||
|
@ -784,20 +787,7 @@ struct drm_i915_gem_context_create_ext_setparam {
|
|||
struct i915_user_extension base;
|
||||
struct drm_i915_gem_context_param param;
|
||||
};
|
||||
struct drm_i915_gem_context_create_ext_clone {
|
||||
#define I915_CONTEXT_CREATE_EXT_CLONE 1
|
||||
struct i915_user_extension base;
|
||||
__u32 clone_id;
|
||||
__u32 flags;
|
||||
#define I915_CONTEXT_CLONE_ENGINES (1u << 0)
|
||||
#define I915_CONTEXT_CLONE_FLAGS (1u << 1)
|
||||
#define I915_CONTEXT_CLONE_SCHEDATTR (1u << 2)
|
||||
#define I915_CONTEXT_CLONE_SSEU (1u << 3)
|
||||
#define I915_CONTEXT_CLONE_TIMELINE (1u << 4)
|
||||
#define I915_CONTEXT_CLONE_VM (1u << 5)
|
||||
#define I915_CONTEXT_CLONE_UNKNOWN - (I915_CONTEXT_CLONE_VM << 1)
|
||||
__u64 rsvd;
|
||||
};
|
||||
struct drm_i915_gem_context_destroy {
|
||||
__u32 ctx_id;
|
||||
__u32 pad;
|
||||
|
@ -825,6 +815,7 @@ struct drm_i915_gem_userptr {
|
|||
__u64 user_size;
|
||||
__u32 flags;
|
||||
#define I915_USERPTR_READ_ONLY 0x1
|
||||
#define I915_USERPTR_PROBE 0x2
|
||||
#define I915_USERPTR_UNSYNCHRONIZED 0x80000000
|
||||
__u32 handle;
|
||||
};
|
||||
|
|
|
@ -39,10 +39,11 @@ struct drm_msm_timespec {
|
|||
#define MSM_PARAM_MAX_FREQ 0x04
|
||||
#define MSM_PARAM_TIMESTAMP 0x05
|
||||
#define MSM_PARAM_GMEM_BASE 0x06
|
||||
#define MSM_PARAM_NR_RINGS 0x07
|
||||
#define MSM_PARAM_PRIORITIES 0x07
|
||||
#define MSM_PARAM_PP_PGTABLE 0x08
|
||||
#define MSM_PARAM_FAULTS 0x09
|
||||
#define MSM_PARAM_SUSPENDS 0x0a
|
||||
#define MSM_PARAM_NR_RINGS MSM_PARAM_PRIORITIES
|
||||
struct drm_msm_param {
|
||||
__u32 pipe;
|
||||
__u32 param;
|
||||
|
|
|
@ -163,6 +163,104 @@ struct drm_tegra_gem_get_flags {
|
|||
#define DRM_IOCTL_TEGRA_GEM_GET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_GET_TILING, struct drm_tegra_gem_get_tiling)
|
||||
#define DRM_IOCTL_TEGRA_GEM_SET_FLAGS DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_SET_FLAGS, struct drm_tegra_gem_set_flags)
|
||||
#define DRM_IOCTL_TEGRA_GEM_GET_FLAGS DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_GET_FLAGS, struct drm_tegra_gem_get_flags)
|
||||
#define DRM_TEGRA_CHANNEL_CAP_CACHE_COHERENT (1 << 0)
|
||||
struct drm_tegra_channel_open {
|
||||
__u32 host1x_class;
|
||||
__u32 flags;
|
||||
__u32 context;
|
||||
__u32 version;
|
||||
__u32 capabilities;
|
||||
__u32 padding;
|
||||
};
|
||||
struct drm_tegra_channel_close {
|
||||
__u32 context;
|
||||
__u32 padding;
|
||||
};
|
||||
#define DRM_TEGRA_CHANNEL_MAP_READ (1 << 0)
|
||||
#define DRM_TEGRA_CHANNEL_MAP_WRITE (1 << 1)
|
||||
#define DRM_TEGRA_CHANNEL_MAP_READ_WRITE (DRM_TEGRA_CHANNEL_MAP_READ | DRM_TEGRA_CHANNEL_MAP_WRITE)
|
||||
struct drm_tegra_channel_map {
|
||||
__u32 context;
|
||||
__u32 handle;
|
||||
__u32 flags;
|
||||
__u32 mapping;
|
||||
};
|
||||
struct drm_tegra_channel_unmap {
|
||||
__u32 context;
|
||||
__u32 mapping;
|
||||
};
|
||||
#define DRM_TEGRA_SUBMIT_RELOC_SECTOR_LAYOUT (1 << 0)
|
||||
struct drm_tegra_submit_buf {
|
||||
__u32 mapping;
|
||||
__u32 flags;
|
||||
struct {
|
||||
__u64 target_offset;
|
||||
__u32 gather_offset_words;
|
||||
__u32 shift;
|
||||
} reloc;
|
||||
};
|
||||
#define DRM_TEGRA_SUBMIT_CMD_GATHER_UPTR 0
|
||||
#define DRM_TEGRA_SUBMIT_CMD_WAIT_SYNCPT 1
|
||||
#define DRM_TEGRA_SUBMIT_CMD_WAIT_SYNCPT_RELATIVE 2
|
||||
struct drm_tegra_submit_cmd_gather_uptr {
|
||||
__u32 words;
|
||||
__u32 reserved[3];
|
||||
};
|
||||
struct drm_tegra_submit_cmd_wait_syncpt {
|
||||
__u32 id;
|
||||
__u32 value;
|
||||
__u32 reserved[2];
|
||||
};
|
||||
struct drm_tegra_submit_cmd {
|
||||
__u32 type;
|
||||
__u32 flags;
|
||||
union {
|
||||
struct drm_tegra_submit_cmd_gather_uptr gather_uptr;
|
||||
struct drm_tegra_submit_cmd_wait_syncpt wait_syncpt;
|
||||
__u32 reserved[4];
|
||||
};
|
||||
};
|
||||
struct drm_tegra_submit_syncpt {
|
||||
__u32 id;
|
||||
__u32 flags;
|
||||
__u32 increments;
|
||||
__u32 value;
|
||||
};
|
||||
struct drm_tegra_channel_submit {
|
||||
__u32 context;
|
||||
__u32 num_bufs;
|
||||
__u32 num_cmds;
|
||||
__u32 gather_data_words;
|
||||
__u64 bufs_ptr;
|
||||
__u64 cmds_ptr;
|
||||
__u64 gather_data_ptr;
|
||||
__u32 syncobj_in;
|
||||
__u32 syncobj_out;
|
||||
struct drm_tegra_submit_syncpt syncpt;
|
||||
};
|
||||
struct drm_tegra_syncpoint_allocate {
|
||||
__u32 id;
|
||||
__u32 padding;
|
||||
};
|
||||
struct drm_tegra_syncpoint_free {
|
||||
__u32 id;
|
||||
__u32 padding;
|
||||
};
|
||||
struct drm_tegra_syncpoint_wait {
|
||||
__s64 timeout_ns;
|
||||
__u32 id;
|
||||
__u32 threshold;
|
||||
__u32 value;
|
||||
__u32 padding;
|
||||
};
|
||||
#define DRM_IOCTL_TEGRA_CHANNEL_OPEN DRM_IOWR(DRM_COMMAND_BASE + 0x10, struct drm_tegra_channel_open)
|
||||
#define DRM_IOCTL_TEGRA_CHANNEL_CLOSE DRM_IOWR(DRM_COMMAND_BASE + 0x11, struct drm_tegra_channel_close)
|
||||
#define DRM_IOCTL_TEGRA_CHANNEL_MAP DRM_IOWR(DRM_COMMAND_BASE + 0x12, struct drm_tegra_channel_map)
|
||||
#define DRM_IOCTL_TEGRA_CHANNEL_UNMAP DRM_IOWR(DRM_COMMAND_BASE + 0x13, struct drm_tegra_channel_unmap)
|
||||
#define DRM_IOCTL_TEGRA_CHANNEL_SUBMIT DRM_IOWR(DRM_COMMAND_BASE + 0x14, struct drm_tegra_channel_submit)
|
||||
#define DRM_IOCTL_TEGRA_SYNCPOINT_ALLOCATE DRM_IOWR(DRM_COMMAND_BASE + 0x20, struct drm_tegra_syncpoint_allocate)
|
||||
#define DRM_IOCTL_TEGRA_SYNCPOINT_FREE DRM_IOWR(DRM_COMMAND_BASE + 0x21, struct drm_tegra_syncpoint_free)
|
||||
#define DRM_IOCTL_TEGRA_SYNCPOINT_WAIT DRM_IOWR(DRM_COMMAND_BASE + 0x22, struct drm_tegra_syncpoint_wait)
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -30,6 +30,9 @@ extern "C" {
|
|||
#define DRM_V3D_GET_BO_OFFSET 0x05
|
||||
#define DRM_V3D_SUBMIT_TFU 0x06
|
||||
#define DRM_V3D_SUBMIT_CSD 0x07
|
||||
#define DRM_V3D_PERFMON_CREATE 0x08
|
||||
#define DRM_V3D_PERFMON_DESTROY 0x09
|
||||
#define DRM_V3D_PERFMON_GET_VALUES 0x0a
|
||||
#define DRM_IOCTL_V3D_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_CL, struct drm_v3d_submit_cl)
|
||||
#define DRM_IOCTL_V3D_WAIT_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_WAIT_BO, struct drm_v3d_wait_bo)
|
||||
#define DRM_IOCTL_V3D_CREATE_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_CREATE_BO, struct drm_v3d_create_bo)
|
||||
|
@ -38,6 +41,9 @@ extern "C" {
|
|||
#define DRM_IOCTL_V3D_GET_BO_OFFSET DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_GET_BO_OFFSET, struct drm_v3d_get_bo_offset)
|
||||
#define DRM_IOCTL_V3D_SUBMIT_TFU DRM_IOW(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_TFU, struct drm_v3d_submit_tfu)
|
||||
#define DRM_IOCTL_V3D_SUBMIT_CSD DRM_IOW(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_CSD, struct drm_v3d_submit_csd)
|
||||
#define DRM_IOCTL_V3D_PERFMON_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_PERFMON_CREATE, struct drm_v3d_perfmon_create)
|
||||
#define DRM_IOCTL_V3D_PERFMON_DESTROY DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_PERFMON_DESTROY, struct drm_v3d_perfmon_destroy)
|
||||
#define DRM_IOCTL_V3D_PERFMON_GET_VALUES DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_PERFMON_GET_VALUES, struct drm_v3d_perfmon_get_values)
|
||||
#define DRM_V3D_SUBMIT_CL_FLUSH_CACHE 0x01
|
||||
struct drm_v3d_submit_cl {
|
||||
__u32 bcl_start;
|
||||
|
@ -53,6 +59,8 @@ struct drm_v3d_submit_cl {
|
|||
__u64 bo_handles;
|
||||
__u32 bo_handle_count;
|
||||
__u32 flags;
|
||||
__u32 perfmon_id;
|
||||
__u32 pad;
|
||||
};
|
||||
struct drm_v3d_wait_bo {
|
||||
__u32 handle;
|
||||
|
@ -81,6 +89,7 @@ enum drm_v3d_param {
|
|||
DRM_V3D_PARAM_SUPPORTS_TFU,
|
||||
DRM_V3D_PARAM_SUPPORTS_CSD,
|
||||
DRM_V3D_PARAM_SUPPORTS_CACHE_FLUSH,
|
||||
DRM_V3D_PARAM_SUPPORTS_PERFMON,
|
||||
};
|
||||
struct drm_v3d_get_param {
|
||||
__u32 param;
|
||||
|
@ -111,6 +120,111 @@ struct drm_v3d_submit_csd {
|
|||
__u32 bo_handle_count;
|
||||
__u32 in_sync;
|
||||
__u32 out_sync;
|
||||
__u32 perfmon_id;
|
||||
};
|
||||
enum {
|
||||
V3D_PERFCNT_FEP_VALID_PRIMTS_NO_PIXELS,
|
||||
V3D_PERFCNT_FEP_VALID_PRIMS,
|
||||
V3D_PERFCNT_FEP_EZ_NFCLIP_QUADS,
|
||||
V3D_PERFCNT_FEP_VALID_QUADS,
|
||||
V3D_PERFCNT_TLB_QUADS_STENCIL_FAIL,
|
||||
V3D_PERFCNT_TLB_QUADS_STENCILZ_FAIL,
|
||||
V3D_PERFCNT_TLB_QUADS_STENCILZ_PASS,
|
||||
V3D_PERFCNT_TLB_QUADS_ZERO_COV,
|
||||
V3D_PERFCNT_TLB_QUADS_NONZERO_COV,
|
||||
V3D_PERFCNT_TLB_QUADS_WRITTEN,
|
||||
V3D_PERFCNT_PTB_PRIM_VIEWPOINT_DISCARD,
|
||||
V3D_PERFCNT_PTB_PRIM_CLIP,
|
||||
V3D_PERFCNT_PTB_PRIM_REV,
|
||||
V3D_PERFCNT_QPU_IDLE_CYCLES,
|
||||
V3D_PERFCNT_QPU_ACTIVE_CYCLES_VERTEX_COORD_USER,
|
||||
V3D_PERFCNT_QPU_ACTIVE_CYCLES_FRAG,
|
||||
V3D_PERFCNT_QPU_CYCLES_VALID_INSTR,
|
||||
V3D_PERFCNT_QPU_CYCLES_TMU_STALL,
|
||||
V3D_PERFCNT_QPU_CYCLES_SCOREBOARD_STALL,
|
||||
V3D_PERFCNT_QPU_CYCLES_VARYINGS_STALL,
|
||||
V3D_PERFCNT_QPU_IC_HIT,
|
||||
V3D_PERFCNT_QPU_IC_MISS,
|
||||
V3D_PERFCNT_QPU_UC_HIT,
|
||||
V3D_PERFCNT_QPU_UC_MISS,
|
||||
V3D_PERFCNT_TMU_TCACHE_ACCESS,
|
||||
V3D_PERFCNT_TMU_TCACHE_MISS,
|
||||
V3D_PERFCNT_VPM_VDW_STALL,
|
||||
V3D_PERFCNT_VPM_VCD_STALL,
|
||||
V3D_PERFCNT_BIN_ACTIVE,
|
||||
V3D_PERFCNT_RDR_ACTIVE,
|
||||
V3D_PERFCNT_L2T_HITS,
|
||||
V3D_PERFCNT_L2T_MISSES,
|
||||
V3D_PERFCNT_CYCLE_COUNT,
|
||||
V3D_PERFCNT_QPU_CYCLES_STALLED_VERTEX_COORD_USER,
|
||||
V3D_PERFCNT_QPU_CYCLES_STALLED_FRAGMENT,
|
||||
V3D_PERFCNT_PTB_PRIMS_BINNED,
|
||||
V3D_PERFCNT_AXI_WRITES_WATCH_0,
|
||||
V3D_PERFCNT_AXI_READS_WATCH_0,
|
||||
V3D_PERFCNT_AXI_WRITE_STALLS_WATCH_0,
|
||||
V3D_PERFCNT_AXI_READ_STALLS_WATCH_0,
|
||||
V3D_PERFCNT_AXI_WRITE_BYTES_WATCH_0,
|
||||
V3D_PERFCNT_AXI_READ_BYTES_WATCH_0,
|
||||
V3D_PERFCNT_AXI_WRITES_WATCH_1,
|
||||
V3D_PERFCNT_AXI_READS_WATCH_1,
|
||||
V3D_PERFCNT_AXI_WRITE_STALLS_WATCH_1,
|
||||
V3D_PERFCNT_AXI_READ_STALLS_WATCH_1,
|
||||
V3D_PERFCNT_AXI_WRITE_BYTES_WATCH_1,
|
||||
V3D_PERFCNT_AXI_READ_BYTES_WATCH_1,
|
||||
V3D_PERFCNT_TLB_PARTIAL_QUADS,
|
||||
V3D_PERFCNT_TMU_CONFIG_ACCESSES,
|
||||
V3D_PERFCNT_L2T_NO_ID_STALL,
|
||||
V3D_PERFCNT_L2T_COM_QUE_STALL,
|
||||
V3D_PERFCNT_L2T_TMU_WRITES,
|
||||
V3D_PERFCNT_TMU_ACTIVE_CYCLES,
|
||||
V3D_PERFCNT_TMU_STALLED_CYCLES,
|
||||
V3D_PERFCNT_CLE_ACTIVE,
|
||||
V3D_PERFCNT_L2T_TMU_READS,
|
||||
V3D_PERFCNT_L2T_CLE_READS,
|
||||
V3D_PERFCNT_L2T_VCD_READS,
|
||||
V3D_PERFCNT_L2T_TMUCFG_READS,
|
||||
V3D_PERFCNT_L2T_SLC0_READS,
|
||||
V3D_PERFCNT_L2T_SLC1_READS,
|
||||
V3D_PERFCNT_L2T_SLC2_READS,
|
||||
V3D_PERFCNT_L2T_TMU_W_MISSES,
|
||||
V3D_PERFCNT_L2T_TMU_R_MISSES,
|
||||
V3D_PERFCNT_L2T_CLE_MISSES,
|
||||
V3D_PERFCNT_L2T_VCD_MISSES,
|
||||
V3D_PERFCNT_L2T_TMUCFG_MISSES,
|
||||
V3D_PERFCNT_L2T_SLC0_MISSES,
|
||||
V3D_PERFCNT_L2T_SLC1_MISSES,
|
||||
V3D_PERFCNT_L2T_SLC2_MISSES,
|
||||
V3D_PERFCNT_CORE_MEM_WRITES,
|
||||
V3D_PERFCNT_L2T_MEM_WRITES,
|
||||
V3D_PERFCNT_PTB_MEM_WRITES,
|
||||
V3D_PERFCNT_TLB_MEM_WRITES,
|
||||
V3D_PERFCNT_CORE_MEM_READS,
|
||||
V3D_PERFCNT_L2T_MEM_READS,
|
||||
V3D_PERFCNT_PTB_MEM_READS,
|
||||
V3D_PERFCNT_PSE_MEM_READS,
|
||||
V3D_PERFCNT_TLB_MEM_READS,
|
||||
V3D_PERFCNT_GMP_MEM_READS,
|
||||
V3D_PERFCNT_PTB_W_MEM_WORDS,
|
||||
V3D_PERFCNT_TLB_W_MEM_WORDS,
|
||||
V3D_PERFCNT_PSE_R_MEM_WORDS,
|
||||
V3D_PERFCNT_TLB_R_MEM_WORDS,
|
||||
V3D_PERFCNT_TMU_MRU_HITS,
|
||||
V3D_PERFCNT_COMPUTE_ACTIVE,
|
||||
V3D_PERFCNT_NUM,
|
||||
};
|
||||
#define DRM_V3D_MAX_PERF_COUNTERS 32
|
||||
struct drm_v3d_perfmon_create {
|
||||
__u32 id;
|
||||
__u32 ncounters;
|
||||
__u8 counters[DRM_V3D_MAX_PERF_COUNTERS];
|
||||
};
|
||||
struct drm_v3d_perfmon_destroy {
|
||||
__u32 id;
|
||||
};
|
||||
struct drm_v3d_perfmon_get_values {
|
||||
__u32 id;
|
||||
__u32 pad;
|
||||
__u64 values_ptr;
|
||||
};
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -56,6 +56,9 @@ extern "C" {
|
|||
#define DRM_VMW_GB_SURFACE_CREATE_EXT 27
|
||||
#define DRM_VMW_GB_SURFACE_REF_EXT 28
|
||||
#define DRM_VMW_MSG 29
|
||||
#define DRM_VMW_MKSSTAT_RESET 30
|
||||
#define DRM_VMW_MKSSTAT_ADD 31
|
||||
#define DRM_VMW_MKSSTAT_REMOVE 32
|
||||
#define DRM_VMW_PARAM_NUM_STREAMS 0
|
||||
#define DRM_VMW_PARAM_NUM_FREE_STREAMS 1
|
||||
#define DRM_VMW_PARAM_3D 2
|
||||
|
@ -360,6 +363,19 @@ struct drm_vmw_msg_arg {
|
|||
__s32 send_only;
|
||||
__u32 receive_len;
|
||||
};
|
||||
struct drm_vmw_mksstat_add_arg {
|
||||
__u64 stat;
|
||||
__u64 info;
|
||||
__u64 strs;
|
||||
__u64 stat_len;
|
||||
__u64 info_len;
|
||||
__u64 strs_len;
|
||||
__u64 description;
|
||||
__u64 id;
|
||||
};
|
||||
struct drm_vmw_mksstat_remove_arg {
|
||||
__u64 id;
|
||||
};
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -226,6 +226,7 @@ enum bpf_attach_type {
|
|||
BPF_SK_SKB_VERDICT,
|
||||
BPF_SK_REUSEPORT_SELECT,
|
||||
BPF_SK_REUSEPORT_SELECT_OR_MIGRATE,
|
||||
BPF_PERF_EVENT,
|
||||
__MAX_BPF_ATTACH_TYPE
|
||||
};
|
||||
#define MAX_BPF_ATTACH_TYPE __MAX_BPF_ATTACH_TYPE
|
||||
|
@ -237,6 +238,7 @@ enum bpf_link_type {
|
|||
BPF_LINK_TYPE_ITER = 4,
|
||||
BPF_LINK_TYPE_NETNS = 5,
|
||||
BPF_LINK_TYPE_XDP = 6,
|
||||
BPF_LINK_TYPE_PERF_EVENT = 7,
|
||||
MAX_BPF_LINK_TYPE,
|
||||
};
|
||||
#define BPF_F_ALLOW_OVERRIDE (1U << 0)
|
||||
|
@ -447,6 +449,9 @@ union bpf_attr {
|
|||
__aligned_u64 iter_info;
|
||||
__u32 iter_info_len;
|
||||
};
|
||||
struct {
|
||||
__u64 bpf_cookie;
|
||||
} perf_event;
|
||||
};
|
||||
} link_create;
|
||||
struct {
|
||||
|
@ -471,7 +476,7 @@ union bpf_attr {
|
|||
__u32 flags;
|
||||
} prog_bind_map;
|
||||
} __attribute__((aligned(8)));
|
||||
#define __BPF_FUNC_MAPPER(FN) FN(unspec), FN(map_lookup_elem), FN(map_update_elem), FN(map_delete_elem), FN(probe_read), FN(ktime_get_ns), FN(trace_printk), FN(get_prandom_u32), FN(get_smp_processor_id), FN(skb_store_bytes), FN(l3_csum_replace), FN(l4_csum_replace), FN(tail_call), FN(clone_redirect), FN(get_current_pid_tgid), FN(get_current_uid_gid), FN(get_current_comm), FN(get_cgroup_classid), FN(skb_vlan_push), FN(skb_vlan_pop), FN(skb_get_tunnel_key), FN(skb_set_tunnel_key), FN(perf_event_read), FN(redirect), FN(get_route_realm), FN(perf_event_output), FN(skb_load_bytes), FN(get_stackid), FN(csum_diff), FN(skb_get_tunnel_opt), FN(skb_set_tunnel_opt), FN(skb_change_proto), FN(skb_change_type), FN(skb_under_cgroup), FN(get_hash_recalc), FN(get_current_task), FN(probe_write_user), FN(current_task_under_cgroup), FN(skb_change_tail), FN(skb_pull_data), FN(csum_update), FN(set_hash_invalid), FN(get_numa_node_id), FN(skb_change_head), FN(xdp_adjust_head), FN(probe_read_str), FN(get_socket_cookie), FN(get_socket_uid), FN(set_hash), FN(setsockopt), FN(skb_adjust_room), FN(redirect_map), FN(sk_redirect_map), FN(sock_map_update), FN(xdp_adjust_meta), FN(perf_event_read_value), FN(perf_prog_read_value), FN(getsockopt), FN(override_return), FN(sock_ops_cb_flags_set), FN(msg_redirect_map), FN(msg_apply_bytes), FN(msg_cork_bytes), FN(msg_pull_data), FN(bind), FN(xdp_adjust_tail), FN(skb_get_xfrm_state), FN(get_stack), FN(skb_load_bytes_relative), FN(fib_lookup), FN(sock_hash_update), FN(msg_redirect_hash), FN(sk_redirect_hash), FN(lwt_push_encap), FN(lwt_seg6_store_bytes), FN(lwt_seg6_adjust_srh), FN(lwt_seg6_action), FN(rc_repeat), FN(rc_keydown), FN(skb_cgroup_id), FN(get_current_cgroup_id), FN(get_local_storage), FN(sk_select_reuseport), FN(skb_ancestor_cgroup_id), FN(sk_lookup_tcp), FN(sk_lookup_udp), FN(sk_release), FN(map_push_elem), FN(map_pop_elem), FN(map_peek_elem), FN(msg_push_data), FN(msg_pop_data), FN(rc_pointer_rel), FN(spin_lock), FN(spin_unlock), FN(sk_fullsock), FN(tcp_sock), FN(skb_ecn_set_ce), FN(get_listener_sock), FN(skc_lookup_tcp), FN(tcp_check_syncookie), FN(sysctl_get_name), FN(sysctl_get_current_value), FN(sysctl_get_new_value), FN(sysctl_set_new_value), FN(strtol), FN(strtoul), FN(sk_storage_get), FN(sk_storage_delete), FN(send_signal), FN(tcp_gen_syncookie), FN(skb_output), FN(probe_read_user), FN(probe_read_kernel), FN(probe_read_user_str), FN(probe_read_kernel_str), FN(tcp_send_ack), FN(send_signal_thread), FN(jiffies64), FN(read_branch_records), FN(get_ns_current_pid_tgid), FN(xdp_output), FN(get_netns_cookie), FN(get_current_ancestor_cgroup_id), FN(sk_assign), FN(ktime_get_boot_ns), FN(seq_printf), FN(seq_write), FN(sk_cgroup_id), FN(sk_ancestor_cgroup_id), FN(ringbuf_output), FN(ringbuf_reserve), FN(ringbuf_submit), FN(ringbuf_discard), FN(ringbuf_query), FN(csum_level), FN(skc_to_tcp6_sock), FN(skc_to_tcp_sock), FN(skc_to_tcp_timewait_sock), FN(skc_to_tcp_request_sock), FN(skc_to_udp6_sock), FN(get_task_stack), FN(load_hdr_opt), FN(store_hdr_opt), FN(reserve_hdr_opt), FN(inode_storage_get), FN(inode_storage_delete), FN(d_path), FN(copy_from_user), FN(snprintf_btf), FN(seq_printf_btf), FN(skb_cgroup_classid), FN(redirect_neigh), FN(per_cpu_ptr), FN(this_cpu_ptr), FN(redirect_peer), FN(task_storage_get), FN(task_storage_delete), FN(get_current_task_btf), FN(bprm_opts_set), FN(ktime_get_coarse_ns), FN(ima_inode_hash), FN(sock_from_file), FN(check_mtu), FN(for_each_map_elem), FN(snprintf), FN(sys_bpf), FN(btf_find_by_name_kind), FN(sys_close),
|
||||
#define __BPF_FUNC_MAPPER(FN) FN(unspec), FN(map_lookup_elem), FN(map_update_elem), FN(map_delete_elem), FN(probe_read), FN(ktime_get_ns), FN(trace_printk), FN(get_prandom_u32), FN(get_smp_processor_id), FN(skb_store_bytes), FN(l3_csum_replace), FN(l4_csum_replace), FN(tail_call), FN(clone_redirect), FN(get_current_pid_tgid), FN(get_current_uid_gid), FN(get_current_comm), FN(get_cgroup_classid), FN(skb_vlan_push), FN(skb_vlan_pop), FN(skb_get_tunnel_key), FN(skb_set_tunnel_key), FN(perf_event_read), FN(redirect), FN(get_route_realm), FN(perf_event_output), FN(skb_load_bytes), FN(get_stackid), FN(csum_diff), FN(skb_get_tunnel_opt), FN(skb_set_tunnel_opt), FN(skb_change_proto), FN(skb_change_type), FN(skb_under_cgroup), FN(get_hash_recalc), FN(get_current_task), FN(probe_write_user), FN(current_task_under_cgroup), FN(skb_change_tail), FN(skb_pull_data), FN(csum_update), FN(set_hash_invalid), FN(get_numa_node_id), FN(skb_change_head), FN(xdp_adjust_head), FN(probe_read_str), FN(get_socket_cookie), FN(get_socket_uid), FN(set_hash), FN(setsockopt), FN(skb_adjust_room), FN(redirect_map), FN(sk_redirect_map), FN(sock_map_update), FN(xdp_adjust_meta), FN(perf_event_read_value), FN(perf_prog_read_value), FN(getsockopt), FN(override_return), FN(sock_ops_cb_flags_set), FN(msg_redirect_map), FN(msg_apply_bytes), FN(msg_cork_bytes), FN(msg_pull_data), FN(bind), FN(xdp_adjust_tail), FN(skb_get_xfrm_state), FN(get_stack), FN(skb_load_bytes_relative), FN(fib_lookup), FN(sock_hash_update), FN(msg_redirect_hash), FN(sk_redirect_hash), FN(lwt_push_encap), FN(lwt_seg6_store_bytes), FN(lwt_seg6_adjust_srh), FN(lwt_seg6_action), FN(rc_repeat), FN(rc_keydown), FN(skb_cgroup_id), FN(get_current_cgroup_id), FN(get_local_storage), FN(sk_select_reuseport), FN(skb_ancestor_cgroup_id), FN(sk_lookup_tcp), FN(sk_lookup_udp), FN(sk_release), FN(map_push_elem), FN(map_pop_elem), FN(map_peek_elem), FN(msg_push_data), FN(msg_pop_data), FN(rc_pointer_rel), FN(spin_lock), FN(spin_unlock), FN(sk_fullsock), FN(tcp_sock), FN(skb_ecn_set_ce), FN(get_listener_sock), FN(skc_lookup_tcp), FN(tcp_check_syncookie), FN(sysctl_get_name), FN(sysctl_get_current_value), FN(sysctl_get_new_value), FN(sysctl_set_new_value), FN(strtol), FN(strtoul), FN(sk_storage_get), FN(sk_storage_delete), FN(send_signal), FN(tcp_gen_syncookie), FN(skb_output), FN(probe_read_user), FN(probe_read_kernel), FN(probe_read_user_str), FN(probe_read_kernel_str), FN(tcp_send_ack), FN(send_signal_thread), FN(jiffies64), FN(read_branch_records), FN(get_ns_current_pid_tgid), FN(xdp_output), FN(get_netns_cookie), FN(get_current_ancestor_cgroup_id), FN(sk_assign), FN(ktime_get_boot_ns), FN(seq_printf), FN(seq_write), FN(sk_cgroup_id), FN(sk_ancestor_cgroup_id), FN(ringbuf_output), FN(ringbuf_reserve), FN(ringbuf_submit), FN(ringbuf_discard), FN(ringbuf_query), FN(csum_level), FN(skc_to_tcp6_sock), FN(skc_to_tcp_sock), FN(skc_to_tcp_timewait_sock), FN(skc_to_tcp_request_sock), FN(skc_to_udp6_sock), FN(get_task_stack), FN(load_hdr_opt), FN(store_hdr_opt), FN(reserve_hdr_opt), FN(inode_storage_get), FN(inode_storage_delete), FN(d_path), FN(copy_from_user), FN(snprintf_btf), FN(seq_printf_btf), FN(skb_cgroup_classid), FN(redirect_neigh), FN(per_cpu_ptr), FN(this_cpu_ptr), FN(redirect_peer), FN(task_storage_get), FN(task_storage_delete), FN(get_current_task_btf), FN(bprm_opts_set), FN(ktime_get_coarse_ns), FN(ima_inode_hash), FN(sock_from_file), FN(check_mtu), FN(for_each_map_elem), FN(snprintf), FN(sys_bpf), FN(btf_find_by_name_kind), FN(sys_close), FN(timer_init), FN(timer_set_callback), FN(timer_start), FN(timer_cancel), FN(get_func_ip), FN(get_attach_cookie), FN(task_pt_regs),
|
||||
#define __BPF_ENUM_FN(x) BPF_FUNC_ ##x
|
||||
enum bpf_func_id {
|
||||
__BPF_FUNC_MAPPER(__BPF_ENUM_FN) __BPF_FUNC_MAX_ID,
|
||||
|
@ -1116,6 +1121,10 @@ struct bpf_line_info {
|
|||
struct bpf_spin_lock {
|
||||
__u32 val;
|
||||
};
|
||||
struct bpf_timer {
|
||||
__u64 : 64;
|
||||
__u64 : 64;
|
||||
} __attribute__((aligned(8)));
|
||||
struct bpf_sysctl {
|
||||
__u32 write;
|
||||
__u32 file_pos;
|
||||
|
|
|
@ -175,6 +175,7 @@ struct btrfs_ioctl_fs_info_args {
|
|||
};
|
||||
#define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE (1ULL << 0)
|
||||
#define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID (1ULL << 1)
|
||||
#define BTRFS_FEATURE_COMPAT_RO_VERITY (1ULL << 2)
|
||||
#define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF (1ULL << 0)
|
||||
#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1)
|
||||
#define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS (1ULL << 2)
|
||||
|
|
|
@ -53,6 +53,8 @@
|
|||
#define BTRFS_INODE_REF_KEY 12
|
||||
#define BTRFS_INODE_EXTREF_KEY 13
|
||||
#define BTRFS_XATTR_ITEM_KEY 24
|
||||
#define BTRFS_VERITY_DESC_ITEM_KEY 36
|
||||
#define BTRFS_VERITY_MERKLE_ITEM_KEY 37
|
||||
#define BTRFS_ORPHAN_ITEM_KEY 48
|
||||
#define BTRFS_DIR_LOG_ITEM_KEY 60
|
||||
#define BTRFS_DIR_LOG_INDEX_KEY 72
|
||||
|
@ -424,4 +426,9 @@ struct btrfs_qgroup_limit_item {
|
|||
__le64 rsv_rfer;
|
||||
__le64 rsv_excl;
|
||||
} __attribute__((__packed__));
|
||||
struct btrfs_verity_descriptor_item {
|
||||
__le64 size;
|
||||
__le64 reserved[2];
|
||||
__u8 encryption;
|
||||
} __attribute__((__packed__));
|
||||
#endif
|
||||
|
|
|
@ -50,10 +50,19 @@ enum {
|
|||
enum {
|
||||
J1939_NLA_PAD,
|
||||
J1939_NLA_BYTES_ACKED,
|
||||
J1939_NLA_TOTAL_SIZE,
|
||||
J1939_NLA_PGN,
|
||||
J1939_NLA_SRC_NAME,
|
||||
J1939_NLA_DEST_NAME,
|
||||
J1939_NLA_SRC_ADDR,
|
||||
J1939_NLA_DEST_ADDR,
|
||||
};
|
||||
enum {
|
||||
J1939_EE_INFO_NONE,
|
||||
J1939_EE_INFO_TX_ABORT,
|
||||
J1939_EE_INFO_RX_RTS,
|
||||
J1939_EE_INFO_RX_DPO,
|
||||
J1939_EE_INFO_RX_ABORT,
|
||||
};
|
||||
struct j1939_filter {
|
||||
name_t name;
|
||||
|
|
|
@ -262,7 +262,7 @@ struct cec_event {
|
|||
#define CEC_OP_REC_SEQ_WEDNESDAY 0x08
|
||||
#define CEC_OP_REC_SEQ_THURSDAY 0x10
|
||||
#define CEC_OP_REC_SEQ_FRIDAY 0x20
|
||||
#define CEC_OP_REC_SEQ_SATERDAY 0x40
|
||||
#define CEC_OP_REC_SEQ_SATURDAY 0x40
|
||||
#define CEC_OP_REC_SEQ_ONCE_ONLY 0x00
|
||||
#define CEC_MSG_CLEAR_DIGITAL_TIMER 0x99
|
||||
#define CEC_MSG_CLEAR_EXT_TIMER 0xa1
|
||||
|
|
|
@ -30,7 +30,7 @@ enum {
|
|||
#define ___C(a,b) { b }
|
||||
static const struct {
|
||||
const char * name;
|
||||
} cxl_command_names[] = {
|
||||
} cxl_command_names[] __attribute__((__unused__)) = {
|
||||
CXL_CMDS
|
||||
};
|
||||
#undef ___C
|
||||
|
|
|
@ -126,4 +126,5 @@ enum {
|
|||
#define DM_DATA_OUT_FLAG (1 << 16)
|
||||
#define DM_DEFERRED_REMOVE (1 << 17)
|
||||
#define DM_INTERNAL_SUSPEND_FLAG (1 << 18)
|
||||
#define DM_IMA_MEASUREMENT_FLAG (1 << 19)
|
||||
#endif
|
||||
|
|
|
@ -232,6 +232,8 @@ enum ethtool_link_ext_substate_link_logical_mismatch {
|
|||
enum ethtool_link_ext_substate_bad_signal_integrity {
|
||||
ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1,
|
||||
ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE,
|
||||
ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST,
|
||||
ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS,
|
||||
};
|
||||
enum ethtool_link_ext_substate_cable_issue {
|
||||
ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 1,
|
||||
|
|
|
@ -288,6 +288,8 @@ enum {
|
|||
ETHTOOL_A_COALESCE_TX_USECS_HIGH,
|
||||
ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH,
|
||||
ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL,
|
||||
ETHTOOL_A_COALESCE_USE_CQE_MODE_TX,
|
||||
ETHTOOL_A_COALESCE_USE_CQE_MODE_RX,
|
||||
__ETHTOOL_A_COALESCE_CNT,
|
||||
ETHTOOL_A_COALESCE_MAX = (__ETHTOOL_A_COALESCE_CNT - 1)
|
||||
};
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
#define FAN_UNLIMITED_QUEUE 0x00000010
|
||||
#define FAN_UNLIMITED_MARKS 0x00000020
|
||||
#define FAN_ENABLE_AUDIT 0x00000040
|
||||
#define FAN_REPORT_PIDFD 0x00000080
|
||||
#define FAN_REPORT_TID 0x00000100
|
||||
#define FAN_REPORT_FID 0x00000200
|
||||
#define FAN_REPORT_DIR_FID 0x00000400
|
||||
|
@ -82,6 +83,7 @@ struct fanotify_event_metadata {
|
|||
#define FAN_EVENT_INFO_TYPE_FID 1
|
||||
#define FAN_EVENT_INFO_TYPE_DFID_NAME 2
|
||||
#define FAN_EVENT_INFO_TYPE_DFID 3
|
||||
#define FAN_EVENT_INFO_TYPE_PIDFD 4
|
||||
struct fanotify_event_info_header {
|
||||
__u8 info_type;
|
||||
__u8 pad;
|
||||
|
@ -92,6 +94,10 @@ struct fanotify_event_info_fid {
|
|||
__kernel_fsid_t fsid;
|
||||
unsigned char handle[0];
|
||||
};
|
||||
struct fanotify_event_info_pidfd {
|
||||
struct fanotify_event_info_header hdr;
|
||||
__s32 pidfd;
|
||||
};
|
||||
struct fanotify_response {
|
||||
__s32 fd;
|
||||
__u32 response;
|
||||
|
@ -100,6 +106,8 @@ struct fanotify_response {
|
|||
#define FAN_DENY 0x02
|
||||
#define FAN_AUDIT 0x10
|
||||
#define FAN_NOFD - 1
|
||||
#define FAN_NOPIDFD FAN_NOFD
|
||||
#define FAN_EPIDFD - 2
|
||||
#define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata))
|
||||
#define FAN_EVENT_NEXT(meta,len) ((len) -= (meta)->event_len, (struct fanotify_event_metadata *) (((char *) (meta)) + (meta)->event_len))
|
||||
#define FAN_EVENT_OK(meta,len) ((long) (len) >= (long) FAN_EVENT_METADATA_LEN && (long) (meta)->event_len >= (long) FAN_EVENT_METADATA_LEN && (long) (meta)->event_len <= (long) (len))
|
||||
|
|
|
@ -129,6 +129,7 @@ struct fsxattr {
|
|||
#define BLKSECDISCARD _IO(0x12, 125)
|
||||
#define BLKROTATIONAL _IO(0x12, 126)
|
||||
#define BLKZEROOUT _IO(0x12, 127)
|
||||
#define BLKGETDISKSEQ _IOR(0x12, 128, __u64)
|
||||
#define BMAP_IOCTL 1
|
||||
#define FIBMAP _IO(0x00, 1)
|
||||
#define FIGETBSZ _IO(0x00, 2)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
****************************************************************************/
|
||||
#ifndef _UAPI_HYPERV_H
|
||||
#define _UAPI_HYPERV_H
|
||||
#include <linux/uuid.h>
|
||||
#include <linux/types.h>
|
||||
#define UTIL_FW_MINOR 0
|
||||
#define UTIL_WS2K8_FW_MAJOR 1
|
||||
#define UTIL_WS2K8_FW_VERSION (UTIL_WS2K8_FW_MAJOR << 16 | UTIL_FW_MINOR)
|
||||
|
|
|
@ -19,6 +19,27 @@
|
|||
#ifndef _USR_IDXD_H_
|
||||
#define _USR_IDXD_H_
|
||||
#include <stdint.h>
|
||||
enum idxd_scmd_stat {
|
||||
IDXD_SCMD_DEV_ENABLED = 0x80000010,
|
||||
IDXD_SCMD_DEV_NOT_ENABLED = 0x80000020,
|
||||
IDXD_SCMD_WQ_ENABLED = 0x80000021,
|
||||
IDXD_SCMD_DEV_DMA_ERR = 0x80020000,
|
||||
IDXD_SCMD_WQ_NO_GRP = 0x80030000,
|
||||
IDXD_SCMD_WQ_NO_NAME = 0x80040000,
|
||||
IDXD_SCMD_WQ_NO_SVM = 0x80050000,
|
||||
IDXD_SCMD_WQ_NO_THRESH = 0x80060000,
|
||||
IDXD_SCMD_WQ_PORTAL_ERR = 0x80070000,
|
||||
IDXD_SCMD_WQ_RES_ALLOC_ERR = 0x80080000,
|
||||
IDXD_SCMD_PERCPU_ERR = 0x80090000,
|
||||
IDXD_SCMD_DMA_CHAN_ERR = 0x800a0000,
|
||||
IDXD_SCMD_CDEV_ERR = 0x800b0000,
|
||||
IDXD_SCMD_WQ_NO_SWQ_SUPPORT = 0x800c0000,
|
||||
IDXD_SCMD_WQ_NONE_CONFIGURED = 0x800d0000,
|
||||
IDXD_SCMD_WQ_NO_SIZE = 0x800e0000,
|
||||
IDXD_SCMD_WQ_NO_PRIV = 0x800f0000,
|
||||
};
|
||||
#define IDXD_SCMD_SOFTERR_MASK 0x80000000
|
||||
#define IDXD_SCMD_SOFTERR_SHIFT 16
|
||||
#define IDXD_OP_FLAG_FENCE 0x0001
|
||||
#define IDXD_OP_FLAG_BOF 0x0002
|
||||
#define IDXD_OP_FLAG_CRAV 0x0004
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#define ARPHRD_X25 271
|
||||
#define ARPHRD_HWX25 272
|
||||
#define ARPHRD_CAN 280
|
||||
#define ARPHRD_MCTP 290
|
||||
#define ARPHRD_PPP 512
|
||||
#define ARPHRD_CISCO 513
|
||||
#define ARPHRD_HDLC ARPHRD_CISCO
|
||||
|
|
|
@ -405,9 +405,11 @@ enum {
|
|||
};
|
||||
#define BRIDGE_VLANDB_DUMP_MAX (__BRIDGE_VLANDB_DUMP_MAX - 1)
|
||||
#define BRIDGE_VLANDB_DUMPF_STATS (1 << 0)
|
||||
#define BRIDGE_VLANDB_DUMPF_GLOBAL (1 << 1)
|
||||
enum {
|
||||
BRIDGE_VLANDB_UNSPEC,
|
||||
BRIDGE_VLANDB_ENTRY,
|
||||
BRIDGE_VLANDB_GLOBAL_OPTIONS,
|
||||
__BRIDGE_VLANDB_MAX,
|
||||
};
|
||||
#define BRIDGE_VLANDB_MAX (__BRIDGE_VLANDB_MAX - 1)
|
||||
|
@ -418,6 +420,7 @@ enum {
|
|||
BRIDGE_VLANDB_ENTRY_STATE,
|
||||
BRIDGE_VLANDB_ENTRY_TUNNEL_INFO,
|
||||
BRIDGE_VLANDB_ENTRY_STATS,
|
||||
BRIDGE_VLANDB_ENTRY_MCAST_ROUTER,
|
||||
__BRIDGE_VLANDB_ENTRY_MAX,
|
||||
};
|
||||
#define BRIDGE_VLANDB_ENTRY_MAX (__BRIDGE_VLANDB_ENTRY_MAX - 1)
|
||||
|
@ -438,6 +441,28 @@ enum {
|
|||
__BRIDGE_VLANDB_STATS_MAX,
|
||||
};
|
||||
#define BRIDGE_VLANDB_STATS_MAX (__BRIDGE_VLANDB_STATS_MAX - 1)
|
||||
enum {
|
||||
BRIDGE_VLANDB_GOPTS_UNSPEC,
|
||||
BRIDGE_VLANDB_GOPTS_ID,
|
||||
BRIDGE_VLANDB_GOPTS_RANGE,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_CNT,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_CNT,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_INTVL,
|
||||
BRIDGE_VLANDB_GOPTS_PAD,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_MEMBERSHIP_INTVL,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_QUERIER_INTVL,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_QUERY_INTVL,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_QUERY_RESPONSE_INTVL,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_INTVL,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_QUERIER,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_ROUTER_PORTS,
|
||||
BRIDGE_VLANDB_GOPTS_MCAST_QUERIER_STATE,
|
||||
__BRIDGE_VLANDB_GOPTS_MAX
|
||||
};
|
||||
#define BRIDGE_VLANDB_GOPTS_MAX (__BRIDGE_VLANDB_GOPTS_MAX - 1)
|
||||
enum {
|
||||
MDBA_UNSPEC,
|
||||
MDBA_MDB,
|
||||
|
@ -498,6 +523,7 @@ enum {
|
|||
MDBA_ROUTER_PATTR_TYPE,
|
||||
MDBA_ROUTER_PATTR_INET_TIMER,
|
||||
MDBA_ROUTER_PATTR_INET6_TIMER,
|
||||
MDBA_ROUTER_PATTR_VID,
|
||||
__MDBA_ROUTER_PATTR_MAX
|
||||
};
|
||||
#define MDBA_ROUTER_PATTR_MAX (__MDBA_ROUTER_PATTR_MAX - 1)
|
||||
|
@ -572,10 +598,23 @@ struct br_mcast_stats {
|
|||
};
|
||||
enum br_boolopt_id {
|
||||
BR_BOOLOPT_NO_LL_LEARN,
|
||||
BR_BOOLOPT_MCAST_VLAN_SNOOPING,
|
||||
BR_BOOLOPT_MAX
|
||||
};
|
||||
struct br_boolopt_multi {
|
||||
__u32 optval;
|
||||
__u32 optmask;
|
||||
};
|
||||
enum {
|
||||
BRIDGE_QUERIER_UNSPEC,
|
||||
BRIDGE_QUERIER_IP_ADDRESS,
|
||||
BRIDGE_QUERIER_IP_PORT,
|
||||
BRIDGE_QUERIER_IP_OTHER_TIMER,
|
||||
BRIDGE_QUERIER_PAD,
|
||||
BRIDGE_QUERIER_IPV6_ADDRESS,
|
||||
BRIDGE_QUERIER_IPV6_PORT,
|
||||
BRIDGE_QUERIER_IPV6_OTHER_TIMER,
|
||||
__BRIDGE_QUERIER_MAX
|
||||
};
|
||||
#define BRIDGE_QUERIER_MAX (__BRIDGE_QUERIER_MAX - 1)
|
||||
#endif
|
||||
|
|
|
@ -123,6 +123,7 @@
|
|||
#define ETH_P_CAIF 0x00F7
|
||||
#define ETH_P_XDSA 0x00F8
|
||||
#define ETH_P_MAP 0x00F9
|
||||
#define ETH_P_MCTP 0x00FA
|
||||
#ifndef __UAPI_DEF_ETHHDR
|
||||
#define __UAPI_DEF_ETHHDR 1
|
||||
#endif
|
||||
|
|
|
@ -178,6 +178,7 @@ enum {
|
|||
IFLA_INET6_ICMP6STATS,
|
||||
IFLA_INET6_TOKEN,
|
||||
IFLA_INET6_ADDR_GEN_MODE,
|
||||
IFLA_INET6_RA_MTU,
|
||||
__IFLA_INET6_MAX
|
||||
};
|
||||
#define IFLA_INET6_MAX (__IFLA_INET6_MAX - 1)
|
||||
|
@ -235,6 +236,7 @@ enum {
|
|||
IFLA_BR_MCAST_MLD_VERSION,
|
||||
IFLA_BR_VLAN_STATS_PER_PORT,
|
||||
IFLA_BR_MULTI_BOOLOPT,
|
||||
IFLA_BR_MCAST_QUERIER_STATE,
|
||||
__IFLA_BR_MAX,
|
||||
};
|
||||
#define IFLA_BR_MAX (__IFLA_BR_MAX - 1)
|
||||
|
@ -553,6 +555,7 @@ enum {
|
|||
IFLA_BOND_AD_ACTOR_SYSTEM,
|
||||
IFLA_BOND_TLB_DYNAMIC_LB,
|
||||
IFLA_BOND_PEER_NOTIF_DELAY,
|
||||
IFLA_BOND_AD_LACP_ACTIVE,
|
||||
__IFLA_BOND_MAX,
|
||||
};
|
||||
#define IFLA_BOND_MAX (__IFLA_BOND_MAX - 1)
|
||||
|
@ -851,4 +854,10 @@ struct ifla_rmnet_flags {
|
|||
__u32 flags;
|
||||
__u32 mask;
|
||||
};
|
||||
enum {
|
||||
IFLA_MCTP_UNSPEC,
|
||||
IFLA_MCTP_NET,
|
||||
__IFLA_MCTP_MAX,
|
||||
};
|
||||
#define IFLA_MCTP_MAX (__IFLA_MCTP_MAX - 1)
|
||||
#endif
|
||||
|
|
|
@ -163,11 +163,22 @@ struct group_source_req {
|
|||
struct __kernel_sockaddr_storage gsr_source;
|
||||
};
|
||||
struct group_filter {
|
||||
__u32 gf_interface;
|
||||
struct __kernel_sockaddr_storage gf_group;
|
||||
__u32 gf_fmode;
|
||||
__u32 gf_numsrc;
|
||||
struct __kernel_sockaddr_storage gf_slist[1];
|
||||
union {
|
||||
struct {
|
||||
__u32 gf_interface_aux;
|
||||
struct __kernel_sockaddr_storage gf_group_aux;
|
||||
__u32 gf_fmode_aux;
|
||||
__u32 gf_numsrc_aux;
|
||||
struct __kernel_sockaddr_storage gf_slist[1];
|
||||
};
|
||||
struct {
|
||||
__u32 gf_interface;
|
||||
struct __kernel_sockaddr_storage gf_group;
|
||||
__u32 gf_fmode;
|
||||
__u32 gf_numsrc;
|
||||
struct __kernel_sockaddr_storage gf_slist_flex[];
|
||||
};
|
||||
};
|
||||
};
|
||||
#define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage))
|
||||
#endif
|
||||
|
|
|
@ -105,6 +105,7 @@ struct in6_flowlabel_req {
|
|||
#define IPV6_TLV_PADN 1
|
||||
#define IPV6_TLV_ROUTERALERT 5
|
||||
#define IPV6_TLV_CALIPSO 7
|
||||
#define IPV6_TLV_IOAM 49
|
||||
#define IPV6_TLV_JUMBO 194
|
||||
#define IPV6_TLV_HAO 201
|
||||
#if __UAPI_DEF_IPV6_OPTIONS
|
||||
|
|
|
@ -50,6 +50,7 @@ struct io_uring_sqe {
|
|||
__u32 splice_flags;
|
||||
__u32 rename_flags;
|
||||
__u32 unlink_flags;
|
||||
__u32 hardlink_flags;
|
||||
};
|
||||
__u64 user_data;
|
||||
union {
|
||||
|
@ -57,7 +58,10 @@ struct io_uring_sqe {
|
|||
__u16 buf_group;
|
||||
} __attribute__((packed));
|
||||
__u16 personality;
|
||||
__s32 splice_fd_in;
|
||||
union {
|
||||
__s32 splice_fd_in;
|
||||
__u32 file_index;
|
||||
};
|
||||
__u64 __pad2[2];
|
||||
};
|
||||
enum {
|
||||
|
@ -119,11 +123,19 @@ enum {
|
|||
IORING_OP_SHUTDOWN,
|
||||
IORING_OP_RENAMEAT,
|
||||
IORING_OP_UNLINKAT,
|
||||
IORING_OP_MKDIRAT,
|
||||
IORING_OP_SYMLINKAT,
|
||||
IORING_OP_LINKAT,
|
||||
IORING_OP_LAST,
|
||||
};
|
||||
#define IORING_FSYNC_DATASYNC (1U << 0)
|
||||
#define IORING_TIMEOUT_ABS (1U << 0)
|
||||
#define IORING_TIMEOUT_UPDATE (1U << 1)
|
||||
#define IORING_TIMEOUT_BOOTTIME (1U << 2)
|
||||
#define IORING_TIMEOUT_REALTIME (1U << 3)
|
||||
#define IORING_LINK_TIMEOUT_UPDATE (1U << 4)
|
||||
#define IORING_TIMEOUT_CLOCK_MASK (IORING_TIMEOUT_BOOTTIME | IORING_TIMEOUT_REALTIME)
|
||||
#define IORING_TIMEOUT_UPDATE_MASK (IORING_TIMEOUT_UPDATE | IORING_LINK_TIMEOUT_UPDATE)
|
||||
#define SPLICE_F_FD_IN_FIXED (1U << 31)
|
||||
#define IORING_POLL_ADD_MULTI (1U << 0)
|
||||
#define IORING_POLL_UPDATE_EVENTS (1U << 1)
|
||||
|
@ -213,8 +225,13 @@ enum {
|
|||
IORING_REGISTER_BUFFERS_UPDATE = 16,
|
||||
IORING_REGISTER_IOWQ_AFF = 17,
|
||||
IORING_UNREGISTER_IOWQ_AFF = 18,
|
||||
IORING_REGISTER_IOWQ_MAX_WORKERS = 19,
|
||||
IORING_REGISTER_LAST
|
||||
};
|
||||
enum {
|
||||
IO_WQ_BOUND,
|
||||
IO_WQ_UNBOUND,
|
||||
};
|
||||
struct io_uring_files_update {
|
||||
__u32 offset;
|
||||
__u32 resv;
|
||||
|
|
63
libc/kernel/uapi/linux/ioam6.h
Normal file
63
libc/kernel/uapi/linux/ioam6.h
Normal file
|
@ -0,0 +1,63 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_IOAM6_H
|
||||
#define _UAPI_LINUX_IOAM6_H
|
||||
#include <asm/byteorder.h>
|
||||
#include <linux/types.h>
|
||||
#define IOAM6_U16_UNAVAILABLE U16_MAX
|
||||
#define IOAM6_U32_UNAVAILABLE U32_MAX
|
||||
#define IOAM6_U64_UNAVAILABLE U64_MAX
|
||||
#define IOAM6_DEFAULT_ID (IOAM6_U32_UNAVAILABLE >> 8)
|
||||
#define IOAM6_DEFAULT_ID_WIDE (IOAM6_U64_UNAVAILABLE >> 8)
|
||||
#define IOAM6_DEFAULT_IF_ID IOAM6_U16_UNAVAILABLE
|
||||
#define IOAM6_DEFAULT_IF_ID_WIDE IOAM6_U32_UNAVAILABLE
|
||||
struct ioam6_hdr {
|
||||
__u8 opt_type;
|
||||
__u8 opt_len;
|
||||
__u8 : 8;
|
||||
#define IOAM6_TYPE_PREALLOC 0
|
||||
__u8 type;
|
||||
} __attribute__((packed));
|
||||
struct ioam6_trace_hdr {
|
||||
__be16 namespace_id;
|
||||
#ifdef __LITTLE_ENDIAN_BITFIELD
|
||||
__u8 : 1, : 1, overflow : 1, nodelen : 5;
|
||||
__u8 remlen : 7, : 1;
|
||||
union {
|
||||
__be32 type_be32;
|
||||
struct {
|
||||
__u32 bit7 : 1, bit6 : 1, bit5 : 1, bit4 : 1, bit3 : 1, bit2 : 1, bit1 : 1, bit0 : 1, bit15 : 1, bit14 : 1, bit13 : 1, bit12 : 1, bit11 : 1, bit10 : 1, bit9 : 1, bit8 : 1, bit23 : 1, bit22 : 1, bit21 : 1, bit20 : 1, bit19 : 1, bit18 : 1, bit17 : 1, bit16 : 1, : 8;
|
||||
} type;
|
||||
};
|
||||
#elif defined(__BIG_ENDIAN_BITFIELD)
|
||||
__u8 nodelen : 5, overflow : 1, : 1, : 1;
|
||||
__u8 : 1, remlen : 7;
|
||||
union {
|
||||
__be32 type_be32;
|
||||
struct {
|
||||
__u32 bit0 : 1, bit1 : 1, bit2 : 1, bit3 : 1, bit4 : 1, bit5 : 1, bit6 : 1, bit7 : 1, bit8 : 1, bit9 : 1, bit10 : 1, bit11 : 1, bit12 : 1, bit13 : 1, bit14 : 1, bit15 : 1, bit16 : 1, bit17 : 1, bit18 : 1, bit19 : 1, bit20 : 1, bit21 : 1, bit22 : 1, bit23 : 1, : 8;
|
||||
} type;
|
||||
};
|
||||
#else
|
||||
#error "Please fix <asm/byteorder.h>"
|
||||
#endif
|
||||
#define IOAM6_TRACE_DATA_SIZE_MAX 244
|
||||
__u8 data[0];
|
||||
} __attribute__((packed));
|
||||
#endif
|
48
libc/kernel/uapi/linux/ioam6_genl.h
Normal file
48
libc/kernel/uapi/linux/ioam6_genl.h
Normal file
|
@ -0,0 +1,48 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_IOAM6_GENL_H
|
||||
#define _UAPI_LINUX_IOAM6_GENL_H
|
||||
#define IOAM6_GENL_NAME "IOAM6"
|
||||
#define IOAM6_GENL_VERSION 0x1
|
||||
enum {
|
||||
IOAM6_ATTR_UNSPEC,
|
||||
IOAM6_ATTR_NS_ID,
|
||||
IOAM6_ATTR_NS_DATA,
|
||||
IOAM6_ATTR_NS_DATA_WIDE,
|
||||
#define IOAM6_MAX_SCHEMA_DATA_LEN (255 * 4)
|
||||
IOAM6_ATTR_SC_ID,
|
||||
IOAM6_ATTR_SC_DATA,
|
||||
IOAM6_ATTR_SC_NONE,
|
||||
IOAM6_ATTR_PAD,
|
||||
__IOAM6_ATTR_MAX,
|
||||
};
|
||||
#define IOAM6_ATTR_MAX (__IOAM6_ATTR_MAX - 1)
|
||||
enum {
|
||||
IOAM6_CMD_UNSPEC,
|
||||
IOAM6_CMD_ADD_NAMESPACE,
|
||||
IOAM6_CMD_DEL_NAMESPACE,
|
||||
IOAM6_CMD_DUMP_NAMESPACES,
|
||||
IOAM6_CMD_ADD_SCHEMA,
|
||||
IOAM6_CMD_DEL_SCHEMA,
|
||||
IOAM6_CMD_DUMP_SCHEMAS,
|
||||
IOAM6_CMD_NS_SET_SCHEMA,
|
||||
__IOAM6_CMD_MAX,
|
||||
};
|
||||
#define IOAM6_CMD_MAX (__IOAM6_CMD_MAX - 1)
|
||||
#endif
|
27
libc/kernel/uapi/linux/ioam6_iptunnel.h
Normal file
27
libc/kernel/uapi/linux/ioam6_iptunnel.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_IOAM6_IPTUNNEL_H
|
||||
#define _UAPI_LINUX_IOAM6_IPTUNNEL_H
|
||||
enum {
|
||||
IOAM6_IPTUNNEL_UNSPEC,
|
||||
IOAM6_IPTUNNEL_TRACE,
|
||||
__IOAM6_IPTUNNEL_MAX,
|
||||
};
|
||||
#define IOAM6_IPTUNNEL_MAX (__IOAM6_IPTUNNEL_MAX - 1)
|
||||
#endif
|
42
libc/kernel/uapi/linux/ioprio.h
Normal file
42
libc/kernel/uapi/linux/ioprio.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_IOPRIO_H
|
||||
#define _UAPI_LINUX_IOPRIO_H
|
||||
#define IOPRIO_CLASS_SHIFT 13
|
||||
#define IOPRIO_CLASS_MASK 0x07
|
||||
#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
|
||||
#define IOPRIO_PRIO_CLASS(ioprio) (((ioprio) >> IOPRIO_CLASS_SHIFT) & IOPRIO_CLASS_MASK)
|
||||
#define IOPRIO_PRIO_DATA(ioprio) ((ioprio) & IOPRIO_PRIO_MASK)
|
||||
#define IOPRIO_PRIO_VALUE(class,data) ((((class) & IOPRIO_CLASS_MASK) << IOPRIO_CLASS_SHIFT) | ((data) & IOPRIO_PRIO_MASK))
|
||||
enum {
|
||||
IOPRIO_CLASS_NONE,
|
||||
IOPRIO_CLASS_RT,
|
||||
IOPRIO_CLASS_BE,
|
||||
IOPRIO_CLASS_IDLE,
|
||||
};
|
||||
#define IOPRIO_NR_LEVELS 8
|
||||
#define IOPRIO_BE_NR IOPRIO_NR_LEVELS
|
||||
enum {
|
||||
IOPRIO_WHO_PROCESS = 1,
|
||||
IOPRIO_WHO_PGRP,
|
||||
IOPRIO_WHO_USER,
|
||||
};
|
||||
#define IOPRIO_NORM 4
|
||||
#define IOPRIO_BE_NORM IOPRIO_NORM
|
||||
#endif
|
|
@ -144,6 +144,9 @@ enum {
|
|||
DEVCONF_NDISC_TCLASS,
|
||||
DEVCONF_RPL_SEG_ENABLED,
|
||||
DEVCONF_RA_DEFRTR_METRIC,
|
||||
DEVCONF_IOAM6_ENABLED,
|
||||
DEVCONF_IOAM6_ID,
|
||||
DEVCONF_IOAM6_ID_WIDE,
|
||||
DEVCONF_MAX
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -1,90 +0,0 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _IPX_H_
|
||||
#define _IPX_H_
|
||||
#include <linux/libc-compat.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <linux/socket.h>
|
||||
#define IPX_NODE_LEN 6
|
||||
#define IPX_MTU 576
|
||||
#if __UAPI_DEF_SOCKADDR_IPX
|
||||
struct sockaddr_ipx {
|
||||
__kernel_sa_family_t sipx_family;
|
||||
__be16 sipx_port;
|
||||
__be32 sipx_network;
|
||||
unsigned char sipx_node[IPX_NODE_LEN];
|
||||
__u8 sipx_type;
|
||||
unsigned char sipx_zero;
|
||||
};
|
||||
#endif
|
||||
#define sipx_special sipx_port
|
||||
#define sipx_action sipx_zero
|
||||
#define IPX_DLTITF 0
|
||||
#define IPX_CRTITF 1
|
||||
#if __UAPI_DEF_IPX_ROUTE_DEFINITION
|
||||
struct ipx_route_definition {
|
||||
__be32 ipx_network;
|
||||
__be32 ipx_router_network;
|
||||
unsigned char ipx_router_node[IPX_NODE_LEN];
|
||||
};
|
||||
#endif
|
||||
#if __UAPI_DEF_IPX_INTERFACE_DEFINITION
|
||||
struct ipx_interface_definition {
|
||||
__be32 ipx_network;
|
||||
unsigned char ipx_device[16];
|
||||
unsigned char ipx_dlink_type;
|
||||
#define IPX_FRAME_NONE 0
|
||||
#define IPX_FRAME_SNAP 1
|
||||
#define IPX_FRAME_8022 2
|
||||
#define IPX_FRAME_ETHERII 3
|
||||
#define IPX_FRAME_8023 4
|
||||
#define IPX_FRAME_TR_8022 5
|
||||
unsigned char ipx_special;
|
||||
#define IPX_SPECIAL_NONE 0
|
||||
#define IPX_PRIMARY 1
|
||||
#define IPX_INTERNAL 2
|
||||
unsigned char ipx_node[IPX_NODE_LEN];
|
||||
};
|
||||
#endif
|
||||
#if __UAPI_DEF_IPX_CONFIG_DATA
|
||||
struct ipx_config_data {
|
||||
unsigned char ipxcfg_auto_select_primary;
|
||||
unsigned char ipxcfg_auto_create_interfaces;
|
||||
};
|
||||
#endif
|
||||
#if __UAPI_DEF_IPX_ROUTE_DEF
|
||||
struct ipx_route_def {
|
||||
__be32 ipx_network;
|
||||
__be32 ipx_router_network;
|
||||
#define IPX_ROUTE_NO_ROUTER 0
|
||||
unsigned char ipx_router_node[IPX_NODE_LEN];
|
||||
unsigned char ipx_device[16];
|
||||
unsigned short ipx_flags;
|
||||
#define IPX_RT_SNAP 8
|
||||
#define IPX_RT_8022 4
|
||||
#define IPX_RT_BLUEBOOK 2
|
||||
#define IPX_RT_ROUTED 1
|
||||
};
|
||||
#endif
|
||||
#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
|
||||
#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1)
|
||||
#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2)
|
||||
#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3)
|
||||
#endif
|
|
@ -21,7 +21,7 @@
|
|||
#include <drm/drm.h>
|
||||
#include <linux/ioctl.h>
|
||||
#define KFD_IOCTL_MAJOR_VERSION 1
|
||||
#define KFD_IOCTL_MINOR_VERSION 5
|
||||
#define KFD_IOCTL_MINOR_VERSION 6
|
||||
struct kfd_ioctl_get_version_args {
|
||||
__u32 major_version;
|
||||
__u32 minor_version;
|
||||
|
|
|
@ -1463,7 +1463,9 @@ struct kvm_stats_header {
|
|||
#define KVM_STATS_TYPE_CUMULATIVE (0x0 << KVM_STATS_TYPE_SHIFT)
|
||||
#define KVM_STATS_TYPE_INSTANT (0x1 << KVM_STATS_TYPE_SHIFT)
|
||||
#define KVM_STATS_TYPE_PEAK (0x2 << KVM_STATS_TYPE_SHIFT)
|
||||
#define KVM_STATS_TYPE_MAX KVM_STATS_TYPE_PEAK
|
||||
#define KVM_STATS_TYPE_LINEAR_HIST (0x3 << KVM_STATS_TYPE_SHIFT)
|
||||
#define KVM_STATS_TYPE_LOG_HIST (0x4 << KVM_STATS_TYPE_SHIFT)
|
||||
#define KVM_STATS_TYPE_MAX KVM_STATS_TYPE_LOG_HIST
|
||||
#define KVM_STATS_UNIT_SHIFT 4
|
||||
#define KVM_STATS_UNIT_MASK (0xF << KVM_STATS_UNIT_SHIFT)
|
||||
#define KVM_STATS_UNIT_NONE (0x0 << KVM_STATS_UNIT_SHIFT)
|
||||
|
@ -1481,7 +1483,7 @@ struct kvm_stats_desc {
|
|||
__s16 exponent;
|
||||
__u16 size;
|
||||
__u32 offset;
|
||||
__u32 unused;
|
||||
__u32 bucket_size;
|
||||
char name[];
|
||||
};
|
||||
#define KVM_GET_STATS_FD _IO(KVMIO, 0xce)
|
||||
|
|
|
@ -1,167 +0,0 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_LIGHTNVM_H
|
||||
#define _UAPI_LINUX_LIGHTNVM_H
|
||||
#include <stdio.h>
|
||||
#include <sys/ioctl.h>
|
||||
#define DISK_NAME_LEN 32
|
||||
#include <linux/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
#define NVM_TTYPE_NAME_MAX 48
|
||||
#define NVM_TTYPE_MAX 63
|
||||
#define NVM_MMTYPE_LEN 8
|
||||
#define NVM_CTRL_FILE "/dev/lightnvm/control"
|
||||
struct nvm_ioctl_info_tgt {
|
||||
__u32 version[3];
|
||||
__u32 reserved;
|
||||
char tgtname[NVM_TTYPE_NAME_MAX];
|
||||
};
|
||||
struct nvm_ioctl_info {
|
||||
__u32 version[3];
|
||||
__u16 tgtsize;
|
||||
__u16 reserved16;
|
||||
__u32 reserved[12];
|
||||
struct nvm_ioctl_info_tgt tgts[NVM_TTYPE_MAX];
|
||||
};
|
||||
enum {
|
||||
NVM_DEVICE_ACTIVE = 1 << 0,
|
||||
};
|
||||
struct nvm_ioctl_device_info {
|
||||
char devname[DISK_NAME_LEN];
|
||||
char bmname[NVM_TTYPE_NAME_MAX];
|
||||
__u32 bmversion[3];
|
||||
__u32 flags;
|
||||
__u32 reserved[8];
|
||||
};
|
||||
struct nvm_ioctl_get_devices {
|
||||
__u32 nr_devices;
|
||||
__u32 reserved[31];
|
||||
struct nvm_ioctl_device_info info[31];
|
||||
};
|
||||
struct nvm_ioctl_create_simple {
|
||||
__u32 lun_begin;
|
||||
__u32 lun_end;
|
||||
};
|
||||
struct nvm_ioctl_create_extended {
|
||||
__u16 lun_begin;
|
||||
__u16 lun_end;
|
||||
__u16 op;
|
||||
__u16 rsv;
|
||||
};
|
||||
enum {
|
||||
NVM_CONFIG_TYPE_SIMPLE = 0,
|
||||
NVM_CONFIG_TYPE_EXTENDED = 1,
|
||||
};
|
||||
struct nvm_ioctl_create_conf {
|
||||
__u32 type;
|
||||
union {
|
||||
struct nvm_ioctl_create_simple s;
|
||||
struct nvm_ioctl_create_extended e;
|
||||
};
|
||||
};
|
||||
enum {
|
||||
NVM_TARGET_FACTORY = 1 << 0,
|
||||
};
|
||||
struct nvm_ioctl_create {
|
||||
char dev[DISK_NAME_LEN];
|
||||
char tgttype[NVM_TTYPE_NAME_MAX];
|
||||
char tgtname[DISK_NAME_LEN];
|
||||
__u32 flags;
|
||||
struct nvm_ioctl_create_conf conf;
|
||||
};
|
||||
struct nvm_ioctl_remove {
|
||||
char tgtname[DISK_NAME_LEN];
|
||||
__u32 flags;
|
||||
};
|
||||
struct nvm_ioctl_dev_init {
|
||||
char dev[DISK_NAME_LEN];
|
||||
char mmtype[NVM_MMTYPE_LEN];
|
||||
__u32 flags;
|
||||
};
|
||||
enum {
|
||||
NVM_FACTORY_ERASE_ONLY_USER = 1 << 0,
|
||||
NVM_FACTORY_RESET_HOST_BLKS = 1 << 1,
|
||||
NVM_FACTORY_RESET_GRWN_BBLKS = 1 << 2,
|
||||
NVM_FACTORY_NR_BITS = 1 << 3,
|
||||
};
|
||||
struct nvm_ioctl_dev_factory {
|
||||
char dev[DISK_NAME_LEN];
|
||||
__u32 flags;
|
||||
};
|
||||
struct nvm_user_vio {
|
||||
__u8 opcode;
|
||||
__u8 flags;
|
||||
__u16 control;
|
||||
__u16 nppas;
|
||||
__u16 rsvd;
|
||||
__u64 metadata;
|
||||
__u64 addr;
|
||||
__u64 ppa_list;
|
||||
__u32 metadata_len;
|
||||
__u32 data_len;
|
||||
__u64 status;
|
||||
__u32 result;
|
||||
__u32 rsvd3[3];
|
||||
};
|
||||
struct nvm_passthru_vio {
|
||||
__u8 opcode;
|
||||
__u8 flags;
|
||||
__u8 rsvd[2];
|
||||
__u32 nsid;
|
||||
__u32 cdw2;
|
||||
__u32 cdw3;
|
||||
__u64 metadata;
|
||||
__u64 addr;
|
||||
__u32 metadata_len;
|
||||
__u32 data_len;
|
||||
__u64 ppa_list;
|
||||
__u16 nppas;
|
||||
__u16 control;
|
||||
__u32 cdw13;
|
||||
__u32 cdw14;
|
||||
__u32 cdw15;
|
||||
__u64 status;
|
||||
__u32 result;
|
||||
__u32 timeout_ms;
|
||||
};
|
||||
enum {
|
||||
NVM_INFO_CMD = 0x20,
|
||||
NVM_GET_DEVICES_CMD,
|
||||
NVM_DEV_CREATE_CMD,
|
||||
NVM_DEV_REMOVE_CMD,
|
||||
NVM_DEV_INIT_CMD,
|
||||
NVM_DEV_FACTORY_CMD,
|
||||
NVM_DEV_VIO_ADMIN_CMD = 0x41,
|
||||
NVM_DEV_VIO_CMD = 0x42,
|
||||
NVM_DEV_VIO_USER_CMD = 0x43,
|
||||
};
|
||||
#define NVM_IOCTL 'L'
|
||||
#define NVM_INFO _IOWR(NVM_IOCTL, NVM_INFO_CMD, struct nvm_ioctl_info)
|
||||
#define NVM_GET_DEVICES _IOR(NVM_IOCTL, NVM_GET_DEVICES_CMD, struct nvm_ioctl_get_devices)
|
||||
#define NVM_DEV_CREATE _IOW(NVM_IOCTL, NVM_DEV_CREATE_CMD, struct nvm_ioctl_create)
|
||||
#define NVM_DEV_REMOVE _IOW(NVM_IOCTL, NVM_DEV_REMOVE_CMD, struct nvm_ioctl_remove)
|
||||
#define NVM_DEV_INIT _IOW(NVM_IOCTL, NVM_DEV_INIT_CMD, struct nvm_ioctl_dev_init)
|
||||
#define NVM_DEV_FACTORY _IOW(NVM_IOCTL, NVM_DEV_FACTORY_CMD, struct nvm_ioctl_dev_factory)
|
||||
#define NVME_NVM_IOCTL_IO_VIO _IOWR(NVM_IOCTL, NVM_DEV_VIO_USER_CMD, struct nvm_passthru_vio)
|
||||
#define NVME_NVM_IOCTL_ADMIN_VIO _IOWR(NVM_IOCTL, NVM_DEV_VIO_ADMIN_CMD, struct nvm_passthru_vio)
|
||||
#define NVME_NVM_IOCTL_SUBMIT_VIO _IOWR(NVM_IOCTL, NVM_DEV_VIO_CMD, struct nvm_user_vio)
|
||||
#define NVM_VERSION_MAJOR 1
|
||||
#define NVM_VERSION_MINOR 0
|
||||
#define NVM_VERSION_PATCHLEVEL 0
|
||||
#endif
|
|
@ -29,6 +29,7 @@ enum lwtunnel_encap_types {
|
|||
LWTUNNEL_ENCAP_BPF,
|
||||
LWTUNNEL_ENCAP_SEG6_LOCAL,
|
||||
LWTUNNEL_ENCAP_RPL,
|
||||
LWTUNNEL_ENCAP_IOAM6,
|
||||
__LWTUNNEL_ENCAP_MAX,
|
||||
};
|
||||
#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
|
||||
|
|
41
libc/kernel/uapi/linux/mctp.h
Normal file
41
libc/kernel/uapi/linux/mctp.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 __UAPI_MCTP_H
|
||||
#define __UAPI_MCTP_H
|
||||
#include <linux/types.h>
|
||||
#include <linux/socket.h>
|
||||
typedef __u8 mctp_eid_t;
|
||||
struct mctp_addr {
|
||||
mctp_eid_t s_addr;
|
||||
};
|
||||
struct sockaddr_mctp {
|
||||
__kernel_sa_family_t smctp_family;
|
||||
__u16 __smctp_pad0;
|
||||
unsigned int smctp_network;
|
||||
struct mctp_addr smctp_addr;
|
||||
__u8 smctp_type;
|
||||
__u8 smctp_tag;
|
||||
__u8 __smctp_pad1;
|
||||
};
|
||||
#define MCTP_NET_ANY 0x0
|
||||
#define MCTP_ADDR_NULL 0x00
|
||||
#define MCTP_ADDR_ANY 0xff
|
||||
#define MCTP_TAG_MASK 0x07
|
||||
#define MCTP_TAG_OWNER 0x08
|
||||
#endif
|
|
@ -25,6 +25,7 @@ enum {
|
|||
MPOL_BIND,
|
||||
MPOL_INTERLEAVE,
|
||||
MPOL_LOCAL,
|
||||
MPOL_PREFERRED_MANY,
|
||||
MPOL_MAX,
|
||||
};
|
||||
#define MPOL_F_STATIC_NODES (1 << 15)
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
#define MOVE_MOUNT_T_SYMLINKS 0x00000010
|
||||
#define MOVE_MOUNT_T_AUTOMOUNTS 0x00000020
|
||||
#define MOVE_MOUNT_T_EMPTY_PATH 0x00000040
|
||||
#define MOVE_MOUNT__MASK 0x00000077
|
||||
#define MOVE_MOUNT_SET_GROUP 0x00000100
|
||||
#define MOVE_MOUNT__MASK 0x00000177
|
||||
#define FSOPEN_CLOEXEC 0x00000001
|
||||
#define FSPICK_CLOEXEC 0x00000001
|
||||
#define FSPICK_SYMLINK_NOFOLLOW 0x00000002
|
||||
|
|
|
@ -72,6 +72,7 @@ enum {
|
|||
#define MPTCP_PM_ADDR_FLAG_SIGNAL (1 << 0)
|
||||
#define MPTCP_PM_ADDR_FLAG_SUBFLOW (1 << 1)
|
||||
#define MPTCP_PM_ADDR_FLAG_BACKUP (1 << 2)
|
||||
#define MPTCP_PM_ADDR_FLAG_FULLMESH (1 << 3)
|
||||
enum {
|
||||
MPTCP_PM_CMD_UNSPEC,
|
||||
MPTCP_PM_CMD_ADD_ADDR,
|
||||
|
|
|
@ -67,6 +67,7 @@ enum ctattr_type {
|
|||
CTA_LABELS_MASK,
|
||||
CTA_SYNPROXY,
|
||||
CTA_FILTER,
|
||||
CTA_STATUS_MASK,
|
||||
__CTA_MAX
|
||||
};
|
||||
#define CTA_MAX (__CTA_MAX - 1)
|
||||
|
@ -249,6 +250,7 @@ enum ctattr_stats_cpu {
|
|||
CTA_STATS_ERROR,
|
||||
CTA_STATS_SEARCH_RESTART,
|
||||
CTA_STATS_CLASH_RESOLVE,
|
||||
CTA_STATS_CHAIN_TOOLONG,
|
||||
__CTA_STATS_MAX,
|
||||
};
|
||||
#define CTA_STATS_MAX (__CTA_STATS_MAX - 1)
|
||||
|
|
49
libc/kernel/uapi/linux/nl80211-vnd-intel.h
Normal file
49
libc/kernel/uapi/linux/nl80211-vnd-intel.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 __VENDOR_CMD_INTEL_H__
|
||||
#define __VENDOR_CMD_INTEL_H__
|
||||
#define INTEL_OUI 0x001735
|
||||
enum iwl_mvm_vendor_cmd {
|
||||
IWL_MVM_VENDOR_CMD_GET_CSME_CONN_INFO = 0x2d,
|
||||
IWL_MVM_VENDOR_CMD_HOST_GET_OWNERSHIP = 0x30,
|
||||
IWL_MVM_VENDOR_CMD_ROAMING_FORBIDDEN_EVENT = 0x32,
|
||||
};
|
||||
enum iwl_vendor_auth_akm_mode {
|
||||
IWL_VENDOR_AUTH_OPEN,
|
||||
IWL_VENDOR_AUTH_RSNA = 0x6,
|
||||
IWL_VENDOR_AUTH_RSNA_PSK,
|
||||
IWL_VENDOR_AUTH_SAE = 0x9,
|
||||
IWL_VENDOR_AUTH_MAX,
|
||||
};
|
||||
enum iwl_mvm_vendor_attr {
|
||||
__IWL_MVM_VENDOR_ATTR_INVALID = 0x00,
|
||||
IWL_MVM_VENDOR_ATTR_VIF_ADDR = 0x02,
|
||||
IWL_MVM_VENDOR_ATTR_ADDR = 0x0a,
|
||||
IWL_MVM_VENDOR_ATTR_SSID = 0x3d,
|
||||
IWL_MVM_VENDOR_ATTR_STA_CIPHER = 0x51,
|
||||
IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN = 0x64,
|
||||
IWL_MVM_VENDOR_ATTR_AUTH_MODE = 0x65,
|
||||
IWL_MVM_VENDOR_ATTR_CHANNEL_NUM = 0x66,
|
||||
IWL_MVM_VENDOR_ATTR_BAND = 0x69,
|
||||
IWL_MVM_VENDOR_ATTR_COLLOC_CHANNEL = 0x70,
|
||||
IWL_MVM_VENDOR_ATTR_COLLOC_ADDR = 0x71,
|
||||
NUM_IWL_MVM_VENDOR_ATTR,
|
||||
MAX_IWL_MVM_VENDOR_ATTR = NUM_IWL_MVM_VENDOR_ATTR - 1,
|
||||
};
|
||||
#endif
|
|
@ -178,6 +178,11 @@ enum nl80211_commands {
|
|||
NL80211_CMD_UNPROT_BEACON,
|
||||
NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS,
|
||||
NL80211_CMD_SET_SAR_SPECS,
|
||||
NL80211_CMD_OBSS_COLOR_COLLISION,
|
||||
NL80211_CMD_COLOR_CHANGE_REQUEST,
|
||||
NL80211_CMD_COLOR_CHANGE_STARTED,
|
||||
NL80211_CMD_COLOR_CHANGE_ABORTED,
|
||||
NL80211_CMD_COLOR_CHANGE_COMPLETED,
|
||||
__NL80211_CMD_AFTER_LAST,
|
||||
NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1
|
||||
};
|
||||
|
@ -496,6 +501,10 @@ enum nl80211_attrs {
|
|||
NL80211_ATTR_RECONNECT_REQUESTED,
|
||||
NL80211_ATTR_SAR_SPEC,
|
||||
NL80211_ATTR_DISABLE_HE,
|
||||
NL80211_ATTR_OBSS_COLOR_BITMAP,
|
||||
NL80211_ATTR_COLOR_CHANGE_COUNT,
|
||||
NL80211_ATTR_COLOR_CHANGE_COLOR,
|
||||
NL80211_ATTR_COLOR_CHANGE_ELEMS,
|
||||
__NL80211_ATTR_AFTER_LAST,
|
||||
NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
|
||||
NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
|
||||
|
@ -1453,6 +1462,7 @@ enum nl80211_ext_feature_index {
|
|||
NL80211_EXT_FEATURE_SECURE_LTF,
|
||||
NL80211_EXT_FEATURE_SECURE_RTT,
|
||||
NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE,
|
||||
NL80211_EXT_FEATURE_BSS_COLOR,
|
||||
NUM_NL80211_EXT_FEATURES,
|
||||
MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1
|
||||
};
|
||||
|
|
|
@ -43,6 +43,7 @@ enum ovs_datapath_attr {
|
|||
OVS_DP_ATTR_USER_FEATURES,
|
||||
OVS_DP_ATTR_PAD,
|
||||
OVS_DP_ATTR_MASKS_CACHE_SIZE,
|
||||
OVS_DP_ATTR_PER_CPU_PIDS,
|
||||
__OVS_DP_ATTR_MAX
|
||||
};
|
||||
#define OVS_DP_ATTR_MAX (__OVS_DP_ATTR_MAX - 1)
|
||||
|
@ -72,6 +73,7 @@ struct ovs_vport_stats {
|
|||
#define OVS_DP_F_UNALIGNED (1 << 0)
|
||||
#define OVS_DP_F_VPORT_PIDS (1 << 1)
|
||||
#define OVS_DP_F_TC_RECIRC_SHARING (1 << 2)
|
||||
#define OVS_DP_F_DISPATCH_UPCALL_PER_CPU (1 << 3)
|
||||
#define OVSP_LOCAL ((__u32) 0)
|
||||
#define OVS_PACKET_FAMILY "ovs_packet"
|
||||
#define OVS_PACKET_VERSION 0x1
|
||||
|
|
|
@ -613,6 +613,7 @@ struct tc_codel_xstats {
|
|||
__u32 dropping;
|
||||
__u32 ce_mark;
|
||||
};
|
||||
#define FQ_CODEL_QUANTUM_MAX (1 << 20)
|
||||
enum {
|
||||
TCA_FQ_CODEL_UNSPEC,
|
||||
TCA_FQ_CODEL_TARGET,
|
||||
|
|
|
@ -138,6 +138,7 @@ struct prctl_mm_map {
|
|||
#define PR_SET_SPECULATION_CTRL 53
|
||||
#define PR_SPEC_STORE_BYPASS 0
|
||||
#define PR_SPEC_INDIRECT_BRANCH 1
|
||||
#define PR_SPEC_L1D_FLUSH 2
|
||||
#define PR_SPEC_NOT_AFFECTED 0
|
||||
#define PR_SPEC_PRCTL (1UL << 0)
|
||||
#define PR_SPEC_ENABLE (1UL << 1)
|
||||
|
@ -153,13 +154,13 @@ struct prctl_mm_map {
|
|||
#define PR_SET_TAGGED_ADDR_CTRL 55
|
||||
#define PR_GET_TAGGED_ADDR_CTRL 56
|
||||
#define PR_TAGGED_ADDR_ENABLE (1UL << 0)
|
||||
#define PR_MTE_TCF_SHIFT 1
|
||||
#define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT)
|
||||
#define PR_MTE_TCF_SYNC (1UL << PR_MTE_TCF_SHIFT)
|
||||
#define PR_MTE_TCF_ASYNC (2UL << PR_MTE_TCF_SHIFT)
|
||||
#define PR_MTE_TCF_MASK (3UL << PR_MTE_TCF_SHIFT)
|
||||
#define PR_MTE_TCF_NONE 0
|
||||
#define PR_MTE_TCF_SYNC (1UL << 1)
|
||||
#define PR_MTE_TCF_ASYNC (1UL << 2)
|
||||
#define PR_MTE_TCF_MASK (PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC)
|
||||
#define PR_MTE_TAG_SHIFT 3
|
||||
#define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT)
|
||||
#define PR_MTE_TCF_SHIFT 1
|
||||
#define PR_SET_IO_FLUSHER 57
|
||||
#define PR_GET_IO_FLUSHER 58
|
||||
#define PR_SET_SYSCALL_USER_DISPATCH 59
|
||||
|
|
|
@ -29,4 +29,7 @@ struct __kernel_sockaddr_storage {
|
|||
void * __align;
|
||||
};
|
||||
};
|
||||
#define SOCK_SNDBUF_LOCK 1
|
||||
#define SOCK_RCVBUF_LOCK 2
|
||||
#define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK)
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#define TCMU_MAILBOX_FLAG_CAP_OOOC (1 << 0)
|
||||
#define TCMU_MAILBOX_FLAG_CAP_READ_LEN (1 << 1)
|
||||
#define TCMU_MAILBOX_FLAG_CAP_TMR (1 << 2)
|
||||
#define TCMU_MAILBOX_FLAG_CAP_KEEP_BUF (1 << 3)
|
||||
struct tcmu_mailbox {
|
||||
__u16 version;
|
||||
__u16 flags;
|
||||
|
@ -45,6 +46,7 @@ struct tcmu_cmd_entry_hdr {
|
|||
__u8 kflags;
|
||||
#define TCMU_UFLAG_UNKNOWN_OP 0x1
|
||||
#define TCMU_UFLAG_READ_LEN 0x2
|
||||
#define TCMU_UFLAG_KEEP_BUF 0x4
|
||||
__u8 uflags;
|
||||
} __packed;
|
||||
#define TCMU_OP_MASK 0x7
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#define SKBMOD_F_SMAC 0x2
|
||||
#define SKBMOD_F_ETYPE 0x4
|
||||
#define SKBMOD_F_SWAPMAC 0x8
|
||||
#define SKBMOD_F_ECN 0x10
|
||||
struct tc_skbmod {
|
||||
tc_gen;
|
||||
__u64 flags;
|
||||
|
|
|
@ -325,6 +325,7 @@ enum v4l2_mpeg_video_multi_slice_mode {
|
|||
#define V4L2_CID_MPEG_VIDEO_FRAME_LTR_INDEX (V4L2_CID_CODEC_BASE + 233)
|
||||
#define V4L2_CID_MPEG_VIDEO_USE_LTR_FRAMES (V4L2_CID_CODEC_BASE + 234)
|
||||
#define V4L2_CID_MPEG_VIDEO_DEC_CONCEAL_COLOR (V4L2_CID_CODEC_BASE + 235)
|
||||
#define V4L2_CID_MPEG_VIDEO_INTRA_REFRESH_PERIOD (V4L2_CID_CODEC_BASE + 236)
|
||||
#define V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL (V4L2_CID_CODEC_BASE + 270)
|
||||
enum v4l2_mpeg_video_mpeg2_level {
|
||||
V4L2_MPEG_VIDEO_MPEG2_LEVEL_LOW = 0,
|
||||
|
|
134
libc/kernel/uapi/linux/vduse.h
Normal file
134
libc/kernel/uapi/linux/vduse.h
Normal file
|
@ -0,0 +1,134 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_VDUSE_H_
|
||||
#define _UAPI_VDUSE_H_
|
||||
#include <linux/types.h>
|
||||
#define VDUSE_BASE 0x81
|
||||
#define VDUSE_API_VERSION 0
|
||||
#define VDUSE_GET_API_VERSION _IOR(VDUSE_BASE, 0x00, __u64)
|
||||
#define VDUSE_SET_API_VERSION _IOW(VDUSE_BASE, 0x01, __u64)
|
||||
struct vduse_dev_config {
|
||||
#define VDUSE_NAME_MAX 256
|
||||
char name[VDUSE_NAME_MAX];
|
||||
__u32 vendor_id;
|
||||
__u32 device_id;
|
||||
__u64 features;
|
||||
__u32 vq_num;
|
||||
__u32 vq_align;
|
||||
__u32 reserved[13];
|
||||
__u32 config_size;
|
||||
__u8 config[];
|
||||
};
|
||||
#define VDUSE_CREATE_DEV _IOW(VDUSE_BASE, 0x02, struct vduse_dev_config)
|
||||
#define VDUSE_DESTROY_DEV _IOW(VDUSE_BASE, 0x03, char[VDUSE_NAME_MAX])
|
||||
struct vduse_iotlb_entry {
|
||||
__u64 offset;
|
||||
__u64 start;
|
||||
__u64 last;
|
||||
#define VDUSE_ACCESS_RO 0x1
|
||||
#define VDUSE_ACCESS_WO 0x2
|
||||
#define VDUSE_ACCESS_RW 0x3
|
||||
__u8 perm;
|
||||
};
|
||||
#define VDUSE_IOTLB_GET_FD _IOWR(VDUSE_BASE, 0x10, struct vduse_iotlb_entry)
|
||||
#define VDUSE_DEV_GET_FEATURES _IOR(VDUSE_BASE, 0x11, __u64)
|
||||
struct vduse_config_data {
|
||||
__u32 offset;
|
||||
__u32 length;
|
||||
__u8 buffer[];
|
||||
};
|
||||
#define VDUSE_DEV_SET_CONFIG _IOW(VDUSE_BASE, 0x12, struct vduse_config_data)
|
||||
#define VDUSE_DEV_INJECT_CONFIG_IRQ _IO(VDUSE_BASE, 0x13)
|
||||
struct vduse_vq_config {
|
||||
__u32 index;
|
||||
__u16 max_size;
|
||||
__u16 reserved[13];
|
||||
};
|
||||
#define VDUSE_VQ_SETUP _IOW(VDUSE_BASE, 0x14, struct vduse_vq_config)
|
||||
struct vduse_vq_state_split {
|
||||
__u16 avail_index;
|
||||
};
|
||||
struct vduse_vq_state_packed {
|
||||
__u16 last_avail_counter;
|
||||
__u16 last_avail_idx;
|
||||
__u16 last_used_counter;
|
||||
__u16 last_used_idx;
|
||||
};
|
||||
struct vduse_vq_info {
|
||||
__u32 index;
|
||||
__u32 num;
|
||||
__u64 desc_addr;
|
||||
__u64 driver_addr;
|
||||
__u64 device_addr;
|
||||
union {
|
||||
struct vduse_vq_state_split split;
|
||||
struct vduse_vq_state_packed packed;
|
||||
};
|
||||
__u8 ready;
|
||||
};
|
||||
#define VDUSE_VQ_GET_INFO _IOWR(VDUSE_BASE, 0x15, struct vduse_vq_info)
|
||||
struct vduse_vq_eventfd {
|
||||
__u32 index;
|
||||
#define VDUSE_EVENTFD_DEASSIGN - 1
|
||||
int fd;
|
||||
};
|
||||
#define VDUSE_VQ_SETUP_KICKFD _IOW(VDUSE_BASE, 0x16, struct vduse_vq_eventfd)
|
||||
#define VDUSE_VQ_INJECT_IRQ _IOW(VDUSE_BASE, 0x17, __u32)
|
||||
enum vduse_req_type {
|
||||
VDUSE_GET_VQ_STATE,
|
||||
VDUSE_SET_STATUS,
|
||||
VDUSE_UPDATE_IOTLB,
|
||||
};
|
||||
struct vduse_vq_state {
|
||||
__u32 index;
|
||||
union {
|
||||
struct vduse_vq_state_split split;
|
||||
struct vduse_vq_state_packed packed;
|
||||
};
|
||||
};
|
||||
struct vduse_dev_status {
|
||||
__u8 status;
|
||||
};
|
||||
struct vduse_iova_range {
|
||||
__u64 start;
|
||||
__u64 last;
|
||||
};
|
||||
struct vduse_dev_request {
|
||||
__u32 type;
|
||||
__u32 request_id;
|
||||
__u32 reserved[4];
|
||||
union {
|
||||
struct vduse_vq_state vq_state;
|
||||
struct vduse_dev_status s;
|
||||
struct vduse_iova_range iova;
|
||||
__u32 padding[32];
|
||||
};
|
||||
};
|
||||
struct vduse_dev_response {
|
||||
__u32 request_id;
|
||||
#define VDUSE_REQ_RESULT_OK 0x00
|
||||
#define VDUSE_REQ_RESULT_FAILED 0x01
|
||||
__u32 result;
|
||||
__u32 reserved[4];
|
||||
union {
|
||||
struct vduse_vq_state vq_state;
|
||||
__u32 padding[32];
|
||||
};
|
||||
};
|
||||
#endif
|
|
@ -16,8 +16,8 @@
|
|||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#define LINUX_VERSION_CODE 331264
|
||||
#define LINUX_VERSION_CODE 331520
|
||||
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
|
||||
#define LINUX_VERSION_MAJOR 5
|
||||
#define LINUX_VERSION_PATCHLEVEL 14
|
||||
#define LINUX_VERSION_PATCHLEVEL 15
|
||||
#define LINUX_VERSION_SUBLEVEL 0
|
||||
|
|
50
libc/kernel/uapi/linux/virtio_gpio.h
Normal file
50
libc/kernel/uapi/linux/virtio_gpio.h
Normal file
|
@ -0,0 +1,50 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _LINUX_VIRTIO_GPIO_H
|
||||
#define _LINUX_VIRTIO_GPIO_H
|
||||
#include <linux/types.h>
|
||||
#define VIRTIO_GPIO_MSG_GET_NAMES 0x0001
|
||||
#define VIRTIO_GPIO_MSG_GET_DIRECTION 0x0002
|
||||
#define VIRTIO_GPIO_MSG_SET_DIRECTION 0x0003
|
||||
#define VIRTIO_GPIO_MSG_GET_VALUE 0x0004
|
||||
#define VIRTIO_GPIO_MSG_SET_VALUE 0x0005
|
||||
#define VIRTIO_GPIO_STATUS_OK 0x0
|
||||
#define VIRTIO_GPIO_STATUS_ERR 0x1
|
||||
#define VIRTIO_GPIO_DIRECTION_NONE 0x00
|
||||
#define VIRTIO_GPIO_DIRECTION_OUT 0x01
|
||||
#define VIRTIO_GPIO_DIRECTION_IN 0x02
|
||||
struct virtio_gpio_config {
|
||||
__le16 ngpio;
|
||||
__u8 padding[2];
|
||||
__le32 gpio_names_size;
|
||||
} __packed;
|
||||
struct virtio_gpio_request {
|
||||
__le16 type;
|
||||
__le16 gpio;
|
||||
__le32 value;
|
||||
};
|
||||
struct virtio_gpio_response {
|
||||
__u8 status;
|
||||
__u8 value;
|
||||
};
|
||||
struct virtio_gpio_response_get_names {
|
||||
__u8 status;
|
||||
__u8 value[];
|
||||
};
|
||||
#endif
|
34
libc/kernel/uapi/linux/virtio_i2c.h
Normal file
34
libc/kernel/uapi/linux/virtio_i2c.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_VIRTIO_I2C_H
|
||||
#define _UAPI_LINUX_VIRTIO_I2C_H
|
||||
#include <linux/const.h>
|
||||
#include <linux/types.h>
|
||||
#define VIRTIO_I2C_FLAGS_FAIL_NEXT _BITUL(0)
|
||||
struct virtio_i2c_out_hdr {
|
||||
__le16 addr;
|
||||
__le16 padding;
|
||||
__le32 flags;
|
||||
};
|
||||
struct virtio_i2c_in_hdr {
|
||||
__u8 status;
|
||||
};
|
||||
#define VIRTIO_I2C_MSG_OK 0
|
||||
#define VIRTIO_I2C_MSG_ERR 1
|
||||
#endif
|
|
@ -43,8 +43,20 @@
|
|||
#define VIRTIO_ID_SOUND 25
|
||||
#define VIRTIO_ID_FS 26
|
||||
#define VIRTIO_ID_PMEM 27
|
||||
#define VIRTIO_ID_RPMB 28
|
||||
#define VIRTIO_ID_MAC80211_HWSIM 29
|
||||
#define VIRTIO_ID_VIDEO_ENCODER 30
|
||||
#define VIRTIO_ID_VIDEO_DECODER 31
|
||||
#define VIRTIO_ID_SCMI 32
|
||||
#define VIRTIO_ID_NITRO_SEC_MOD 33
|
||||
#define VIRTIO_ID_I2C_ADAPTER 34
|
||||
#define VIRTIO_ID_WATCHDOG 35
|
||||
#define VIRTIO_ID_CAN 36
|
||||
#define VIRTIO_ID_DMABUF 37
|
||||
#define VIRTIO_ID_PARAM_SERV 38
|
||||
#define VIRTIO_ID_AUDIO_POLICY 39
|
||||
#define VIRTIO_ID_BT 40
|
||||
#define VIRTIO_ID_GPIO 41
|
||||
#define VIRTIO_TRANS_ID_NET 1000
|
||||
#define VIRTIO_TRANS_ID_BLOCK 1001
|
||||
#define VIRTIO_TRANS_ID_BALLOON 1002
|
||||
|
|
27
libc/kernel/uapi/linux/virtio_scmi.h
Normal file
27
libc/kernel/uapi/linux/virtio_scmi.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 _UAPI_LINUX_VIRTIO_SCMI_H
|
||||
#define _UAPI_LINUX_VIRTIO_SCMI_H
|
||||
#include <linux/virtio_types.h>
|
||||
#define VIRTIO_SCMI_F_P2A_CHANNELS 0
|
||||
#define VIRTIO_SCMI_F_SHARED_MEMORY 1
|
||||
#define VIRTIO_SCMI_VQ_TX 0
|
||||
#define VIRTIO_SCMI_VQ_RX 1
|
||||
#define VIRTIO_SCMI_VQ_MAX_CNT 2
|
||||
#endif
|
|
@ -62,6 +62,7 @@ enum virtio_vsock_shutdown {
|
|||
VIRTIO_VSOCK_SHUTDOWN_SEND = 2,
|
||||
};
|
||||
enum virtio_vsock_rw {
|
||||
VIRTIO_VSOCK_SEQ_EOR = 1,
|
||||
VIRTIO_VSOCK_SEQ_EOM = 1,
|
||||
VIRTIO_VSOCK_SEQ_EOR = 2,
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -182,6 +182,10 @@ enum {
|
|||
#define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
|
||||
XFRM_MSG_MAPPING,
|
||||
#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
|
||||
XFRM_MSG_SETDEFAULT,
|
||||
#define XFRM_MSG_SETDEFAULT XFRM_MSG_SETDEFAULT
|
||||
XFRM_MSG_GETDEFAULT,
|
||||
#define XFRM_MSG_GETDEFAULT XFRM_MSG_GETDEFAULT
|
||||
__XFRM_MSG_MAX
|
||||
};
|
||||
#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
|
||||
|
@ -430,6 +434,14 @@ struct xfrm_user_offload {
|
|||
};
|
||||
#define XFRM_OFFLOAD_IPV6 1
|
||||
#define XFRM_OFFLOAD_INBOUND 2
|
||||
struct xfrm_userpolicy_default {
|
||||
#define XFRM_USERPOLICY_UNSPEC 0
|
||||
#define XFRM_USERPOLICY_BLOCK 1
|
||||
#define XFRM_USERPOLICY_ACCEPT 2
|
||||
__u8 in;
|
||||
__u8 fwd;
|
||||
__u8 out;
|
||||
};
|
||||
#define XFRMGRP_ACQUIRE 1
|
||||
#define XFRMGRP_EXPIRE 2
|
||||
#define XFRMGRP_SA 4
|
||||
|
|
|
@ -235,7 +235,16 @@ enum hl_device_status {
|
|||
HL_DEVICE_STATUS_OPERATIONAL,
|
||||
HL_DEVICE_STATUS_IN_RESET,
|
||||
HL_DEVICE_STATUS_MALFUNCTION,
|
||||
HL_DEVICE_STATUS_NEEDS_RESET
|
||||
HL_DEVICE_STATUS_NEEDS_RESET,
|
||||
HL_DEVICE_STATUS_IN_DEVICE_CREATION,
|
||||
HL_DEVICE_STATUS_LAST = HL_DEVICE_STATUS_IN_DEVICE_CREATION
|
||||
};
|
||||
enum hl_server_type {
|
||||
HL_SERVER_TYPE_UNKNOWN = 0,
|
||||
HL_SERVER_GAUDI_HLS1 = 1,
|
||||
HL_SERVER_GAUDI_HLS1H = 2,
|
||||
HL_SERVER_GAUDI_TYPE1 = 3,
|
||||
HL_SERVER_GAUDI_TYPE2 = 4
|
||||
};
|
||||
#define HL_INFO_HW_IP_INFO 0
|
||||
#define HL_INFO_HW_EVENTS 1
|
||||
|
@ -267,7 +276,7 @@ struct hl_info_hw_ip_info {
|
|||
__u32 module_id;
|
||||
__u32 reserved;
|
||||
__u16 first_available_interrupt_id;
|
||||
__u16 reserved2;
|
||||
__u16 server_type;
|
||||
__u32 cpld_version;
|
||||
__u32 psoc_pci_pll_nr;
|
||||
__u32 psoc_pci_pll_nf;
|
||||
|
@ -278,7 +287,7 @@ struct hl_info_hw_ip_info {
|
|||
__u8 pad[2];
|
||||
__u8 cpucp_version[HL_INFO_VERSION_MAX_LEN];
|
||||
__u8 card_name[HL_INFO_CARD_NAME_MAX_LEN];
|
||||
__u64 reserved3;
|
||||
__u64 reserved2;
|
||||
__u64 dram_page_size;
|
||||
};
|
||||
struct hl_info_dram_usage {
|
||||
|
@ -403,11 +412,13 @@ struct hl_cs_chunk {
|
|||
union {
|
||||
__u64 cb_handle;
|
||||
__u64 signal_seq_arr;
|
||||
__u64 encaps_signal_seq;
|
||||
};
|
||||
__u32 queue_index;
|
||||
union {
|
||||
__u32 cb_size;
|
||||
__u32 num_signal_seq_arr;
|
||||
__u32 encaps_signal_offset;
|
||||
};
|
||||
__u32 cs_chunk_flags;
|
||||
__u32 collective_engine_id;
|
||||
|
@ -423,12 +434,22 @@ struct hl_cs_chunk {
|
|||
#define HL_CS_FLAGS_STAGED_SUBMISSION_LAST 0x100
|
||||
#define HL_CS_FLAGS_CUSTOM_TIMEOUT 0x200
|
||||
#define HL_CS_FLAGS_SKIP_RESET_ON_TIMEOUT 0x400
|
||||
#define HL_CS_FLAGS_ENCAP_SIGNALS 0x800
|
||||
#define HL_CS_FLAGS_RESERVE_SIGNALS_ONLY 0x1000
|
||||
#define HL_CS_FLAGS_UNRESERVE_SIGNALS_ONLY 0x2000
|
||||
#define HL_CS_STATUS_SUCCESS 0
|
||||
#define HL_MAX_JOBS_PER_CS 512
|
||||
struct hl_cs_in {
|
||||
__u64 chunks_restore;
|
||||
__u64 chunks_execute;
|
||||
__u64 seq;
|
||||
union {
|
||||
__u64 seq;
|
||||
__u32 encaps_sig_handle_id;
|
||||
struct {
|
||||
__u32 encaps_signals_count;
|
||||
__u32 encaps_signals_q_idx;
|
||||
};
|
||||
};
|
||||
__u32 num_chunks_restore;
|
||||
__u32 num_chunks_execute;
|
||||
__u32 timeout;
|
||||
|
@ -436,9 +457,15 @@ struct hl_cs_in {
|
|||
__u32 ctx_id;
|
||||
};
|
||||
struct hl_cs_out {
|
||||
__u64 seq;
|
||||
union {
|
||||
__u64 seq;
|
||||
struct {
|
||||
__u32 handle_id;
|
||||
__u32 count;
|
||||
};
|
||||
};
|
||||
__u32 status;
|
||||
__u32 pad;
|
||||
__u32 sob_base_addr_offset;
|
||||
};
|
||||
union hl_cs_args {
|
||||
struct hl_cs_in in;
|
||||
|
@ -446,6 +473,8 @@ union hl_cs_args {
|
|||
};
|
||||
#define HL_WAIT_CS_FLAGS_INTERRUPT 0x2
|
||||
#define HL_WAIT_CS_FLAGS_INTERRUPT_MASK 0xFFF00000
|
||||
#define HL_WAIT_CS_FLAGS_MULTI_CS 0x4
|
||||
#define HL_WAIT_MULTI_CS_LIST_MAX_LEN 32
|
||||
struct hl_wait_cs_in {
|
||||
union {
|
||||
struct {
|
||||
|
@ -460,18 +489,21 @@ struct hl_wait_cs_in {
|
|||
};
|
||||
__u32 ctx_id;
|
||||
__u32 flags;
|
||||
__u8 seq_arr_len;
|
||||
__u8 pad[7];
|
||||
};
|
||||
#define HL_WAIT_CS_STATUS_COMPLETED 0
|
||||
#define HL_WAIT_CS_STATUS_BUSY 1
|
||||
#define HL_WAIT_CS_STATUS_TIMEDOUT 2
|
||||
#define HL_WAIT_CS_STATUS_ABORTED 3
|
||||
#define HL_WAIT_CS_STATUS_INTERRUPTED 4
|
||||
#define HL_WAIT_CS_STATUS_FLAG_GONE 0x1
|
||||
#define HL_WAIT_CS_STATUS_FLAG_TIMESTAMP_VLD 0x2
|
||||
struct hl_wait_cs_out {
|
||||
__u32 status;
|
||||
__u32 flags;
|
||||
__s64 timestamp_nsec;
|
||||
__u32 cs_completion_map;
|
||||
__u32 pad;
|
||||
};
|
||||
union hl_wait_cs_args {
|
||||
struct hl_wait_cs_in in;
|
||||
|
@ -485,6 +517,7 @@ union hl_wait_cs_args {
|
|||
#define HL_MEM_CONTIGUOUS 0x1
|
||||
#define HL_MEM_SHARED 0x2
|
||||
#define HL_MEM_USERPTR 0x4
|
||||
#define HL_MEM_FORCE_HINT 0x8
|
||||
struct hl_mem_in {
|
||||
union {
|
||||
struct {
|
||||
|
|
|
@ -33,6 +33,7 @@ enum {
|
|||
MLX5_QP_FLAG_ALLOW_SCATTER_CQE = 1 << 8,
|
||||
MLX5_QP_FLAG_PACKET_BASED_CREDIT_MODE = 1 << 9,
|
||||
MLX5_QP_FLAG_UAR_PAGE_INDEX = 1 << 10,
|
||||
MLX5_QP_FLAG_DCI_STREAM = 1 << 11,
|
||||
};
|
||||
enum {
|
||||
MLX5_SRQ_FLAG_SIGNATURE = 1 << 0,
|
||||
|
@ -165,6 +166,10 @@ struct mlx5_ib_striding_rq_caps {
|
|||
__u32 supported_qpts;
|
||||
__u32 reserved;
|
||||
};
|
||||
struct mlx5_ib_dci_streams_caps {
|
||||
__u8 max_log_num_concurent;
|
||||
__u8 max_log_num_errored;
|
||||
};
|
||||
enum mlx5_ib_query_dev_resp_flags {
|
||||
MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_COMP = 1 << 0,
|
||||
MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_PAD = 1 << 1,
|
||||
|
@ -190,7 +195,8 @@ struct mlx5_ib_query_device_resp {
|
|||
struct mlx5_ib_sw_parsing_caps sw_parsing_caps;
|
||||
struct mlx5_ib_striding_rq_caps striding_rq_caps;
|
||||
__u32 tunnel_offloads_caps;
|
||||
__u32 reserved;
|
||||
struct mlx5_ib_dci_streams_caps dci_streams_caps;
|
||||
__u16 reserved;
|
||||
};
|
||||
enum mlx5_ib_create_cq_flags {
|
||||
MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0,
|
||||
|
@ -230,6 +236,10 @@ struct mlx5_ib_create_srq_resp {
|
|||
__u32 srqn;
|
||||
__u32 reserved;
|
||||
};
|
||||
struct mlx5_ib_create_qp_dci_streams {
|
||||
__u8 log_num_concurent;
|
||||
__u8 log_num_errored;
|
||||
};
|
||||
struct mlx5_ib_create_qp {
|
||||
__aligned_u64 buf_addr;
|
||||
__aligned_u64 db_addr;
|
||||
|
@ -244,7 +254,8 @@ struct mlx5_ib_create_qp {
|
|||
__aligned_u64 access_key;
|
||||
};
|
||||
__u32 ece_options;
|
||||
__u32 reserved;
|
||||
struct mlx5_ib_create_qp_dci_streams dci_streams;
|
||||
__u16 reserved;
|
||||
};
|
||||
enum mlx5_rx_hash_function_flags {
|
||||
MLX5_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
|
||||
|
|
|
@ -42,6 +42,7 @@ enum fc_els_cmd {
|
|||
ELS_REC = 0x13,
|
||||
ELS_SRR = 0x14,
|
||||
ELS_FPIN = 0x16,
|
||||
ELS_EDC = 0x17,
|
||||
ELS_RDP = 0x18,
|
||||
ELS_RDF = 0x19,
|
||||
ELS_PRLI = 0x20,
|
||||
|
@ -85,7 +86,7 @@ enum fc_els_cmd {
|
|||
ELS_LKA = 0x80,
|
||||
ELS_AUTH_ELS = 0x90,
|
||||
};
|
||||
#define FC_ELS_CMDS_INIT {[ELS_LS_RJT] = "LS_RJT",[ELS_LS_ACC] = "LS_ACC",[ELS_PLOGI] = "PLOGI",[ELS_FLOGI] = "FLOGI",[ELS_LOGO] = "LOGO",[ELS_ABTX] = "ABTX",[ELS_RCS] = "RCS",[ELS_RES] = "RES",[ELS_RSS] = "RSS",[ELS_RSI] = "RSI",[ELS_ESTS] = "ESTS",[ELS_ESTC] = "ESTC",[ELS_ADVC] = "ADVC",[ELS_RTV] = "RTV",[ELS_RLS] = "RLS",[ELS_ECHO] = "ECHO",[ELS_TEST] = "TEST",[ELS_RRQ] = "RRQ",[ELS_REC] = "REC",[ELS_SRR] = "SRR",[ELS_FPIN] = "FPIN",[ELS_RDP] = "RDP",[ELS_RDF] = "RDF",[ELS_PRLI] = "PRLI",[ELS_PRLO] = "PRLO",[ELS_SCN] = "SCN",[ELS_TPLS] = "TPLS",[ELS_TPRLO] = "TPRLO",[ELS_LCLM] = "LCLM",[ELS_GAID] = "GAID",[ELS_FACT] = "FACT",[ELS_FDACDT] = "FDACDT",[ELS_NACT] = "NACT",[ELS_NDACT] = "NDACT",[ELS_QOSR] = "QOSR",[ELS_RVCS] = "RVCS",[ELS_PDISC] = "PDISC",[ELS_FDISC] = "FDISC",[ELS_ADISC] = "ADISC",[ELS_RNC] = "RNC",[ELS_FARP_REQ] = "FARP_REQ",[ELS_FARP_REPL] = "FARP_REPL",[ELS_RPS] = "RPS",[ELS_RPL] = "RPL",[ELS_RPBC] = "RPBC",[ELS_FAN] = "FAN",[ELS_RSCN] = "RSCN",[ELS_SCR] = "SCR",[ELS_RNFT] = "RNFT",[ELS_CSR] = "CSR",[ELS_CSU] = "CSU",[ELS_LINIT] = "LINIT",[ELS_LSTS] = "LSTS",[ELS_RNID] = "RNID",[ELS_RLIR] = "RLIR",[ELS_LIRR] = "LIRR",[ELS_SRL] = "SRL",[ELS_SBRP] = "SBRP",[ELS_RPSC] = "RPSC",[ELS_QSA] = "QSA",[ELS_EVFP] = "EVFP",[ELS_LKA] = "LKA",[ELS_AUTH_ELS] = "AUTH_ELS", \
|
||||
#define FC_ELS_CMDS_INIT {[ELS_LS_RJT] = "LS_RJT",[ELS_LS_ACC] = "LS_ACC",[ELS_PLOGI] = "PLOGI",[ELS_FLOGI] = "FLOGI",[ELS_LOGO] = "LOGO",[ELS_ABTX] = "ABTX",[ELS_RCS] = "RCS",[ELS_RES] = "RES",[ELS_RSS] = "RSS",[ELS_RSI] = "RSI",[ELS_ESTS] = "ESTS",[ELS_ESTC] = "ESTC",[ELS_ADVC] = "ADVC",[ELS_RTV] = "RTV",[ELS_RLS] = "RLS",[ELS_ECHO] = "ECHO",[ELS_TEST] = "TEST",[ELS_RRQ] = "RRQ",[ELS_REC] = "REC",[ELS_SRR] = "SRR",[ELS_FPIN] = "FPIN",[ELS_EDC] = "EDC",[ELS_RDP] = "RDP",[ELS_RDF] = "RDF",[ELS_PRLI] = "PRLI",[ELS_PRLO] = "PRLO",[ELS_SCN] = "SCN",[ELS_TPLS] = "TPLS",[ELS_TPRLO] = "TPRLO",[ELS_LCLM] = "LCLM",[ELS_GAID] = "GAID",[ELS_FACT] = "FACT",[ELS_FDACDT] = "FDACDT",[ELS_NACT] = "NACT",[ELS_NDACT] = "NDACT",[ELS_QOSR] = "QOSR",[ELS_RVCS] = "RVCS",[ELS_PDISC] = "PDISC",[ELS_FDISC] = "FDISC",[ELS_ADISC] = "ADISC",[ELS_RNC] = "RNC",[ELS_FARP_REQ] = "FARP_REQ",[ELS_FARP_REPL] = "FARP_REPL",[ELS_RPS] = "RPS",[ELS_RPL] = "RPL",[ELS_RPBC] = "RPBC",[ELS_FAN] = "FAN",[ELS_RSCN] = "RSCN",[ELS_SCR] = "SCR",[ELS_RNFT] = "RNFT",[ELS_CSR] = "CSR",[ELS_CSU] = "CSU",[ELS_LINIT] = "LINIT",[ELS_LSTS] = "LSTS",[ELS_RNID] = "RNID",[ELS_RLIR] = "RLIR",[ELS_LIRR] = "LIRR",[ELS_SRL] = "SRL",[ELS_SBRP] = "SBRP",[ELS_RPSC] = "RPSC",[ELS_QSA] = "QSA",[ELS_EVFP] = "EVFP",[ELS_LKA] = "LKA",[ELS_AUTH_ELS] = "AUTH_ELS", \
|
||||
}
|
||||
struct fc_els_ls_acc {
|
||||
__u8 la_cmd;
|
||||
|
@ -128,13 +129,15 @@ enum fc_els_rjt_explan {
|
|||
};
|
||||
enum fc_ls_tlv_dtag {
|
||||
ELS_DTAG_LS_REQ_INFO = 0x00000001,
|
||||
ELS_DTAG_LNK_FAULT_CAP = 0x0001000D,
|
||||
ELS_DTAG_CG_SIGNAL_CAP = 0x0001000F,
|
||||
ELS_DTAG_LNK_INTEGRITY = 0x00020001,
|
||||
ELS_DTAG_DELIVERY = 0x00020002,
|
||||
ELS_DTAG_PEER_CONGEST = 0x00020003,
|
||||
ELS_DTAG_CONGESTION = 0x00020004,
|
||||
ELS_DTAG_FPIN_REGISTER = 0x00030001,
|
||||
};
|
||||
#define FC_LS_TLV_DTAG_INIT { { ELS_DTAG_LS_REQ_INFO, "Link Service Request Information" }, { ELS_DTAG_LNK_INTEGRITY, "Link Integrity Notification" }, { ELS_DTAG_DELIVERY, "Delivery Notification Present" }, { ELS_DTAG_PEER_CONGEST, "Peer Congestion Notification" }, { ELS_DTAG_CONGESTION, "Congestion Notification" }, { ELS_DTAG_FPIN_REGISTER, "FPIN Registration" }, \
|
||||
#define FC_LS_TLV_DTAG_INIT { { ELS_DTAG_LS_REQ_INFO, "Link Service Request Information" }, { ELS_DTAG_LNK_FAULT_CAP, "Link Fault Capability" }, { ELS_DTAG_CG_SIGNAL_CAP, "Congestion Signaling Capability" }, { ELS_DTAG_LNK_INTEGRITY, "Link Integrity Notification" }, { ELS_DTAG_DELIVERY, "Delivery Notification Present" }, { ELS_DTAG_PEER_CONGEST, "Peer Congestion Notification" }, { ELS_DTAG_CONGESTION, "Congestion Notification" }, { ELS_DTAG_FPIN_REGISTER, "FPIN Registration" }, \
|
||||
}
|
||||
struct fc_tlv_desc {
|
||||
__be32 desc_tag;
|
||||
|
@ -668,4 +671,48 @@ struct fc_els_rdf_resp {
|
|||
struct fc_els_lsri_desc lsri;
|
||||
struct fc_tlv_desc desc[0];
|
||||
};
|
||||
struct fc_diag_lnkflt_desc {
|
||||
__be32 desc_tag;
|
||||
__be32 desc_len;
|
||||
__be32 degrade_activate_threshold;
|
||||
__be32 degrade_deactivate_threshold;
|
||||
__be32 fec_degrade_interval;
|
||||
};
|
||||
enum fc_edc_cg_signal_cap_types {
|
||||
EDC_CG_SIG_NOTSUPPORTED = 0x00,
|
||||
EDC_CG_SIG_WARN_ONLY = 0x01,
|
||||
EDC_CG_SIG_WARN_ALARM = 0x02,
|
||||
};
|
||||
#define FC_EDC_CG_SIGNAL_CAP_TYPES_INIT { { EDC_CG_SIG_NOTSUPPORTED, "Signaling Not Supported" }, { EDC_CG_SIG_WARN_ONLY, "Warning Signal" }, { EDC_CG_SIG_WARN_ALARM, "Warning and Alarm Signals" }, \
|
||||
}
|
||||
enum fc_diag_cg_sig_freq_types {
|
||||
EDC_CG_SIGFREQ_CNT_MIN = 1,
|
||||
EDC_CG_SIGFREQ_CNT_MAX = 999,
|
||||
EDC_CG_SIGFREQ_SEC = 0x1,
|
||||
EDC_CG_SIGFREQ_MSEC = 0x2,
|
||||
};
|
||||
struct fc_diag_cg_sig_freq {
|
||||
__be16 count;
|
||||
__be16 units;
|
||||
};
|
||||
struct fc_diag_cg_sig_desc {
|
||||
__be32 desc_tag;
|
||||
__be32 desc_len;
|
||||
__be32 xmt_signal_capability;
|
||||
struct fc_diag_cg_sig_freq xmt_signal_frequency;
|
||||
__be32 rcv_signal_capability;
|
||||
struct fc_diag_cg_sig_freq rcv_signal_frequency;
|
||||
};
|
||||
struct fc_els_edc {
|
||||
__u8 edc_cmd;
|
||||
__u8 edc_zero[3];
|
||||
__be32 desc_len;
|
||||
struct fc_tlv_desc desc[0];
|
||||
};
|
||||
struct fc_els_edc_resp {
|
||||
struct fc_els_ls_acc acc_hdr;
|
||||
__be32 desc_list_len;
|
||||
struct fc_els_lsri_desc lsri;
|
||||
struct fc_tlv_desc desc[0];
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -234,6 +234,7 @@ typedef int __bitwise snd_pcm_subformat_t;
|
|||
#define SNDRV_PCM_INFO_HAS_LINK_ABSOLUTE_ATIME 0x02000000
|
||||
#define SNDRV_PCM_INFO_HAS_LINK_ESTIMATED_ATIME 0x04000000
|
||||
#define SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME 0x08000000
|
||||
#define SNDRV_PCM_INFO_EXPLICIT_SYNC 0x10000000
|
||||
#define SNDRV_PCM_INFO_DRAIN_TRIGGER 0x40000000
|
||||
#define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000
|
||||
#if __BITS_PER_LONG == 32 && defined(__USE_TIME_BITS64)
|
||||
|
@ -621,6 +622,7 @@ struct snd_rawmidi_status {
|
|||
};
|
||||
#define SNDRV_RAWMIDI_IOCTL_PVERSION _IOR('W', 0x00, int)
|
||||
#define SNDRV_RAWMIDI_IOCTL_INFO _IOR('W', 0x01, struct snd_rawmidi_info)
|
||||
#define SNDRV_RAWMIDI_IOCTL_USER_PVERSION _IOW('W', 0x02, int)
|
||||
#define SNDRV_RAWMIDI_IOCTL_PARAMS _IOWR('W', 0x10, struct snd_rawmidi_params)
|
||||
#define SNDRV_RAWMIDI_IOCTL_STATUS _IOWR('W', 0x20, struct snd_rawmidi_status)
|
||||
#define SNDRV_RAWMIDI_IOCTL_DROP _IOW('W', 0x30, int)
|
||||
|
|
|
@ -97,6 +97,7 @@ enum SKL_TKNS {
|
|||
SKL_TKN_U32_ASTATE_COUNT,
|
||||
SKL_TKN_U32_ASTATE_KCPS,
|
||||
SKL_TKN_U32_ASTATE_CLK_SRC,
|
||||
SKL_TKN_MAX = SKL_TKN_U32_ASTATE_CLK_SRC,
|
||||
SKL_TKN_U32_FMT_CFG_IDX = 96,
|
||||
SKL_TKN_MAX = SKL_TKN_U32_FMT_CFG_IDX,
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -1399,7 +1399,7 @@ TEST(malloc, disable_mte) {
|
|||
ASSERT_EQ(0, sem_post(&sem));
|
||||
|
||||
int my_tagged_addr_ctrl = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0);
|
||||
ASSERT_EQ(PR_MTE_TCF_NONE, my_tagged_addr_ctrl & PR_MTE_TCF_MASK);
|
||||
ASSERT_EQ(static_cast<unsigned long>(PR_MTE_TCF_NONE), my_tagged_addr_ctrl & PR_MTE_TCF_MASK);
|
||||
|
||||
void* retval;
|
||||
ASSERT_EQ(0, pthread_join(thread, &retval));
|
||||
|
|
Loading…
Reference in a new issue