Merge "Update to v5.19 kernel headers."
This commit is contained in:
commit
bf75d08b13
78 changed files with 1244 additions and 227 deletions
|
@ -183,6 +183,8 @@ enum zbc_zone_type {
|
|||
ZBC_ZONE_TYPE_CONV = 0x1,
|
||||
ZBC_ZONE_TYPE_SEQWRITE_REQ = 0x2,
|
||||
ZBC_ZONE_TYPE_SEQWRITE_PREF = 0x3,
|
||||
ZBC_ZONE_TYPE_SEQ_OR_BEFORE_REQ = 0x4,
|
||||
ZBC_ZONE_TYPE_GAP = 0x5,
|
||||
};
|
||||
enum zbc_zone_cond {
|
||||
ZBC_ZONE_COND_NO_WP = 0x0,
|
||||
|
@ -194,6 +196,10 @@ enum zbc_zone_cond {
|
|||
ZBC_ZONE_COND_FULL = 0xe,
|
||||
ZBC_ZONE_COND_OFFLINE = 0xf,
|
||||
};
|
||||
enum zbc_zone_alignment_method {
|
||||
ZBC_CONSTANT_ZONE_LENGTH = 0x1,
|
||||
ZBC_CONSTANT_ZONE_START_OFFSET = 0x8,
|
||||
};
|
||||
enum scsi_version_descriptor {
|
||||
SCSI_VERSION_DESCRIPTOR_FCP4 = 0x0a40,
|
||||
SCSI_VERSION_DESCRIPTOR_ISCSI = 0x0960,
|
||||
|
|
|
@ -73,4 +73,13 @@
|
|||
#define HWCAP2_AFP (1 << 20)
|
||||
#define HWCAP2_RPRES (1 << 21)
|
||||
#define HWCAP2_MTE3 (1 << 22)
|
||||
#define HWCAP2_SME (1 << 23)
|
||||
#define HWCAP2_SME_I16I64 (1 << 24)
|
||||
#define HWCAP2_SME_F64F64 (1 << 25)
|
||||
#define HWCAP2_SME_I8I32 (1 << 26)
|
||||
#define HWCAP2_SME_F16F32 (1 << 27)
|
||||
#define HWCAP2_SME_B16F32 (1 << 28)
|
||||
#define HWCAP2_SME_F32F32 (1 << 29)
|
||||
#define HWCAP2_SME_FA64 (1 << 30)
|
||||
#define HWCAP2_WFXT (1UL << 31)
|
||||
#endif
|
||||
|
|
|
@ -88,8 +88,10 @@ struct kvm_guest_debug_arch {
|
|||
__u64 dbg_wcr[KVM_ARM_MAX_DBG_REGS];
|
||||
__u64 dbg_wvr[KVM_ARM_MAX_DBG_REGS];
|
||||
};
|
||||
#define KVM_DEBUG_ARCH_HSR_HIGH_VALID (1 << 0)
|
||||
struct kvm_debug_exit_arch {
|
||||
__u32 hsr;
|
||||
__u32 hsr_high;
|
||||
__u64 far;
|
||||
};
|
||||
#define KVM_GUESTDBG_USE_SW_BP (1 << 16)
|
||||
|
@ -185,6 +187,21 @@ struct kvm_arm_copy_mte_tags {
|
|||
#define KVM_ARM64_SVE_VQ_MAX __SVE_VQ_MAX
|
||||
#define KVM_REG_ARM64_SVE_VLS (KVM_REG_ARM64 | KVM_REG_ARM64_SVE | KVM_REG_SIZE_U512 | 0xffff)
|
||||
#define KVM_ARM64_SVE_VLS_WORDS ((KVM_ARM64_SVE_VQ_MAX - KVM_ARM64_SVE_VQ_MIN) / 64 + 1)
|
||||
#define KVM_REG_ARM_FW_FEAT_BMAP (0x0016 << KVM_REG_ARM_COPROC_SHIFT)
|
||||
#define KVM_REG_ARM_FW_FEAT_BMAP_REG(r) (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_FW_FEAT_BMAP | ((r) & 0xffff))
|
||||
#define KVM_REG_ARM_STD_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(0)
|
||||
enum {
|
||||
KVM_REG_ARM_STD_BIT_TRNG_V1_0 = 0,
|
||||
};
|
||||
#define KVM_REG_ARM_STD_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(1)
|
||||
enum {
|
||||
KVM_REG_ARM_STD_HYP_BIT_PV_TIME = 0,
|
||||
};
|
||||
#define KVM_REG_ARM_VENDOR_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(2)
|
||||
enum {
|
||||
KVM_REG_ARM_VENDOR_HYP_BIT_FUNC_FEAT = 0,
|
||||
KVM_REG_ARM_VENDOR_HYP_BIT_PTP = 1,
|
||||
};
|
||||
#define KVM_DEV_ARM_VGIC_GRP_ADDR 0
|
||||
#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1
|
||||
#define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2
|
||||
|
|
|
@ -111,7 +111,7 @@ struct user_sve_header {
|
|||
#define SVE_PT_SVE_FPSR_OFFSET(vq) ((SVE_PT_SVE_FFR_OFFSET(vq) + SVE_PT_SVE_FFR_SIZE(vq) + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES)
|
||||
#define SVE_PT_SVE_FPCR_OFFSET(vq) (SVE_PT_SVE_FPSR_OFFSET(vq) + SVE_PT_SVE_FPSR_SIZE)
|
||||
#define SVE_PT_SVE_SIZE(vq,flags) ((SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE - SVE_PT_SVE_OFFSET + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES)
|
||||
#define SVE_PT_SIZE(vq,flags) (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, flags) : SVE_PT_FPSIMD_OFFSET + SVE_PT_FPSIMD_SIZE(vq, flags))
|
||||
#define SVE_PT_SIZE(vq,flags) (((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_SVE ? SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, flags) : ((((flags) & SVE_PT_REGS_MASK) == SVE_PT_REGS_FPSIMD ? SVE_PT_FPSIMD_OFFSET + SVE_PT_FPSIMD_SIZE(vq, flags) : SVE_PT_REGS_OFFSET)))
|
||||
struct user_pac_mask {
|
||||
__u64 data_mask;
|
||||
__u64 insn_mask;
|
||||
|
@ -125,5 +125,19 @@ struct user_pac_address_keys {
|
|||
struct user_pac_generic_keys {
|
||||
__uint128_t apgakey;
|
||||
};
|
||||
struct user_za_header {
|
||||
__u32 size;
|
||||
__u32 max_size;
|
||||
__u16 vl;
|
||||
__u16 max_vl;
|
||||
__u16 flags;
|
||||
__u16 __reserved;
|
||||
};
|
||||
#define ZA_PT_VL_INHERIT ((1 << 17) >> 16)
|
||||
#define ZA_PT_VL_ONEXEC ((1 << 18) >> 16)
|
||||
#define ZA_PT_ZA_OFFSET ((sizeof(struct user_za_header) + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES)
|
||||
#define ZA_PT_ZAV_OFFSET(vq,n) (ZA_PT_ZA_OFFSET + ((vq * __SVE_VQ_BYTES) * n))
|
||||
#define ZA_PT_ZA_SIZE(vq) ((vq * __SVE_VQ_BYTES) * (vq * __SVE_VQ_BYTES))
|
||||
#define ZA_PT_SIZE(vq) (ZA_PT_ZA_OFFSET + ZA_PT_ZA_SIZE(vq))
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -53,6 +53,14 @@ struct extra_context {
|
|||
};
|
||||
#define SVE_MAGIC 0x53564501
|
||||
struct sve_context {
|
||||
struct _aarch64_ctx head;
|
||||
__u16 vl;
|
||||
__u16 flags;
|
||||
__u16 __reserved[2];
|
||||
};
|
||||
#define SVE_SIG_FLAG_SM 0x1
|
||||
#define ZA_MAGIC 0x54366345
|
||||
struct za_context {
|
||||
struct _aarch64_ctx head;
|
||||
__u16 vl;
|
||||
__u16 __reserved[3];
|
||||
|
@ -82,4 +90,8 @@ struct sve_context {
|
|||
#define SVE_SIG_FFR_OFFSET(vq) (SVE_SIG_REGS_OFFSET + __SVE_FFR_OFFSET(vq))
|
||||
#define SVE_SIG_REGS_SIZE(vq) (__SVE_FFR_OFFSET(vq) + __SVE_FFR_SIZE(vq))
|
||||
#define SVE_SIG_CONTEXT_SIZE(vq) (SVE_SIG_REGS_OFFSET + SVE_SIG_REGS_SIZE(vq))
|
||||
#define ZA_SIG_REGS_OFFSET ((sizeof(struct za_context) + (__SVE_VQ_BYTES - 1)) / __SVE_VQ_BYTES * __SVE_VQ_BYTES)
|
||||
#define ZA_SIG_REGS_SIZE(vq) ((vq * __SVE_VQ_BYTES) * (vq * __SVE_VQ_BYTES))
|
||||
#define ZA_SIG_ZAV_OFFSET(vq,n) (ZA_SIG_REGS_OFFSET + (SVE_SIG_ZREG_SIZE(vq) * n))
|
||||
#define ZA_SIG_CONTEXT_SIZE(vq) (ZA_SIG_REGS_OFFSET + ZA_SIG_REGS_SIZE(vq))
|
||||
#endif
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
#define F_SETSIG 10
|
||||
#define F_GETSIG 11
|
||||
#endif
|
||||
#ifndef __LP64__
|
||||
#if __BITS_PER_LONG == 32
|
||||
#ifndef F_GETLK64
|
||||
#define F_GETLK64 12
|
||||
#define F_SETLK64 13
|
||||
|
@ -144,13 +144,5 @@ struct f_owner_ex {
|
|||
#define LOCK_RW 192
|
||||
#define F_LINUX_SPECIFIC_BASE 1024
|
||||
#ifndef HAVE_ARCH_STRUCT_FLOCK
|
||||
#ifndef __ARCH_FLOCK_PAD
|
||||
#define __ARCH_FLOCK_PAD
|
||||
#endif
|
||||
#endif
|
||||
#ifndef HAVE_ARCH_STRUCT_FLOCK64
|
||||
#ifndef __ARCH_FLOCK64_PAD
|
||||
#define __ARCH_FLOCK64_PAD
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -80,6 +80,7 @@ union __sifields {
|
|||
struct {
|
||||
unsigned long _data;
|
||||
__u32 _type;
|
||||
__u32 _flags;
|
||||
} _perf;
|
||||
};
|
||||
} _sigfault;
|
||||
|
@ -125,6 +126,7 @@ typedef struct siginfo {
|
|||
#define si_pkey _sifields._sigfault._addr_pkey._pkey
|
||||
#define si_perf_data _sifields._sigfault._perf._data
|
||||
#define si_perf_type _sifields._sigfault._perf._type
|
||||
#define si_perf_flags _sifields._sigfault._perf._flags
|
||||
#define si_band _sifields._sigpoll._band
|
||||
#define si_fd _sifields._sigpoll._fd
|
||||
#define si_call_addr _sifields._sigsys._call_addr
|
||||
|
@ -197,6 +199,7 @@ typedef struct siginfo {
|
|||
#define TRAP_UNK 5
|
||||
#define TRAP_PERF 6
|
||||
#define NSIGTRAP 6
|
||||
#define TRAP_PERF_FLAG_ASYNC (1u << 0)
|
||||
#define CLD_EXITED 1
|
||||
#define CLD_KILLED 2
|
||||
#define CLD_DUMPED 3
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
#define SO_BUF_LOCK 72
|
||||
#define SO_RESERVE_MEM 73
|
||||
#define SO_TXREHASH 74
|
||||
#define SO_RCVMARK 75
|
||||
#if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__)
|
||||
#define SO_TIMESTAMP SO_TIMESTAMP_OLD
|
||||
#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
|
||||
|
|
67
libc/kernel/uapi/asm-generic/termbits-common.h
Normal file
67
libc/kernel/uapi/asm-generic/termbits-common.h
Normal file
|
@ -0,0 +1,67 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 __ASM_GENERIC_TERMBITS_COMMON_H
|
||||
#define __ASM_GENERIC_TERMBITS_COMMON_H
|
||||
typedef unsigned char cc_t;
|
||||
typedef unsigned int speed_t;
|
||||
#define IGNBRK 0x001
|
||||
#define BRKINT 0x002
|
||||
#define IGNPAR 0x004
|
||||
#define PARMRK 0x008
|
||||
#define INPCK 0x010
|
||||
#define ISTRIP 0x020
|
||||
#define INLCR 0x040
|
||||
#define IGNCR 0x080
|
||||
#define ICRNL 0x100
|
||||
#define IXANY 0x800
|
||||
#define OPOST 0x01
|
||||
#define OCRNL 0x08
|
||||
#define ONOCR 0x10
|
||||
#define ONLRET 0x20
|
||||
#define OFILL 0x40
|
||||
#define OFDEL 0x80
|
||||
#define B0 0x00000000
|
||||
#define B50 0x00000001
|
||||
#define B75 0x00000002
|
||||
#define B110 0x00000003
|
||||
#define B134 0x00000004
|
||||
#define B150 0x00000005
|
||||
#define B200 0x00000006
|
||||
#define B300 0x00000007
|
||||
#define B600 0x00000008
|
||||
#define B1200 0x00000009
|
||||
#define B1800 0x0000000a
|
||||
#define B2400 0x0000000b
|
||||
#define B4800 0x0000000c
|
||||
#define B9600 0x0000000d
|
||||
#define B19200 0x0000000e
|
||||
#define B38400 0x0000000f
|
||||
#define EXTA B19200
|
||||
#define EXTB B38400
|
||||
#define CMSPAR 0x40000000
|
||||
#define CRTSCTS 0x80000000
|
||||
#define IBSHIFT 16
|
||||
#define TCOOFF 0
|
||||
#define TCOON 1
|
||||
#define TCIOFF 2
|
||||
#define TCION 3
|
||||
#define TCIFLUSH 0
|
||||
#define TCOFLUSH 1
|
||||
#define TCIOFLUSH 2
|
||||
#endif
|
|
@ -18,9 +18,7 @@
|
|||
****************************************************************************/
|
||||
#ifndef __ASM_GENERIC_TERMBITS_H
|
||||
#define __ASM_GENERIC_TERMBITS_H
|
||||
#include <linux/posix_types.h>
|
||||
typedef unsigned char cc_t;
|
||||
typedef unsigned int speed_t;
|
||||
#include <asm-generic/termbits-common.h>
|
||||
typedef unsigned int tcflag_t;
|
||||
#define NCCS 19
|
||||
struct termios {
|
||||
|
@ -68,126 +66,82 @@ struct ktermios {
|
|||
#define VWERASE 14
|
||||
#define VLNEXT 15
|
||||
#define VEOL2 16
|
||||
#define IGNBRK 0000001
|
||||
#define BRKINT 0000002
|
||||
#define IGNPAR 0000004
|
||||
#define PARMRK 0000010
|
||||
#define INPCK 0000020
|
||||
#define ISTRIP 0000040
|
||||
#define INLCR 0000100
|
||||
#define IGNCR 0000200
|
||||
#define ICRNL 0000400
|
||||
#define IUCLC 0001000
|
||||
#define IXON 0002000
|
||||
#define IXANY 0004000
|
||||
#define IXOFF 0010000
|
||||
#define IMAXBEL 0020000
|
||||
#define IUTF8 0040000
|
||||
#define OPOST 0000001
|
||||
#define OLCUC 0000002
|
||||
#define ONLCR 0000004
|
||||
#define OCRNL 0000010
|
||||
#define ONOCR 0000020
|
||||
#define ONLRET 0000040
|
||||
#define OFILL 0000100
|
||||
#define OFDEL 0000200
|
||||
#define NLDLY 0000400
|
||||
#define NL0 0000000
|
||||
#define NL1 0000400
|
||||
#define CRDLY 0003000
|
||||
#define CR0 0000000
|
||||
#define CR1 0001000
|
||||
#define CR2 0002000
|
||||
#define CR3 0003000
|
||||
#define TABDLY 0014000
|
||||
#define TAB0 0000000
|
||||
#define TAB1 0004000
|
||||
#define TAB2 0010000
|
||||
#define TAB3 0014000
|
||||
#define XTABS 0014000
|
||||
#define BSDLY 0020000
|
||||
#define BS0 0000000
|
||||
#define BS1 0020000
|
||||
#define VTDLY 0040000
|
||||
#define VT0 0000000
|
||||
#define VT1 0040000
|
||||
#define FFDLY 0100000
|
||||
#define FF0 0000000
|
||||
#define FF1 0100000
|
||||
#define CBAUD 0010017
|
||||
#define B0 0000000
|
||||
#define B50 0000001
|
||||
#define B75 0000002
|
||||
#define B110 0000003
|
||||
#define B134 0000004
|
||||
#define B150 0000005
|
||||
#define B200 0000006
|
||||
#define B300 0000007
|
||||
#define B600 0000010
|
||||
#define B1200 0000011
|
||||
#define B1800 0000012
|
||||
#define B2400 0000013
|
||||
#define B4800 0000014
|
||||
#define B9600 0000015
|
||||
#define B19200 0000016
|
||||
#define B38400 0000017
|
||||
#define EXTA B19200
|
||||
#define EXTB B38400
|
||||
#define CSIZE 0000060
|
||||
#define CS5 0000000
|
||||
#define CS6 0000020
|
||||
#define CS7 0000040
|
||||
#define CS8 0000060
|
||||
#define CSTOPB 0000100
|
||||
#define CREAD 0000200
|
||||
#define PARENB 0000400
|
||||
#define PARODD 0001000
|
||||
#define HUPCL 0002000
|
||||
#define CLOCAL 0004000
|
||||
#define CBAUDEX 0010000
|
||||
#define BOTHER 0010000
|
||||
#define B57600 0010001
|
||||
#define B115200 0010002
|
||||
#define B230400 0010003
|
||||
#define B460800 0010004
|
||||
#define B500000 0010005
|
||||
#define B576000 0010006
|
||||
#define B921600 0010007
|
||||
#define B1000000 0010010
|
||||
#define B1152000 0010011
|
||||
#define B1500000 0010012
|
||||
#define B2000000 0010013
|
||||
#define B2500000 0010014
|
||||
#define B3000000 0010015
|
||||
#define B3500000 0010016
|
||||
#define B4000000 0010017
|
||||
#define CIBAUD 002003600000
|
||||
#define CMSPAR 010000000000
|
||||
#define CRTSCTS 020000000000
|
||||
#define IBSHIFT 16
|
||||
#define ISIG 0000001
|
||||
#define ICANON 0000002
|
||||
#define XCASE 0000004
|
||||
#define ECHO 0000010
|
||||
#define ECHOE 0000020
|
||||
#define ECHOK 0000040
|
||||
#define ECHONL 0000100
|
||||
#define NOFLSH 0000200
|
||||
#define TOSTOP 0000400
|
||||
#define ECHOCTL 0001000
|
||||
#define ECHOPRT 0002000
|
||||
#define ECHOKE 0004000
|
||||
#define FLUSHO 0010000
|
||||
#define PENDIN 0040000
|
||||
#define IEXTEN 0100000
|
||||
#define EXTPROC 0200000
|
||||
#define TCOOFF 0
|
||||
#define TCOON 1
|
||||
#define TCIOFF 2
|
||||
#define TCION 3
|
||||
#define TCIFLUSH 0
|
||||
#define TCOFLUSH 1
|
||||
#define TCIOFLUSH 2
|
||||
#define IUCLC 0x0200
|
||||
#define IXON 0x0400
|
||||
#define IXOFF 0x1000
|
||||
#define IMAXBEL 0x2000
|
||||
#define IUTF8 0x4000
|
||||
#define OLCUC 0x00002
|
||||
#define ONLCR 0x00004
|
||||
#define NLDLY 0x00100
|
||||
#define NL0 0x00000
|
||||
#define NL1 0x00100
|
||||
#define CRDLY 0x00600
|
||||
#define CR0 0x00000
|
||||
#define CR1 0x00200
|
||||
#define CR2 0x00400
|
||||
#define CR3 0x00600
|
||||
#define TABDLY 0x01800
|
||||
#define TAB0 0x00000
|
||||
#define TAB1 0x00800
|
||||
#define TAB2 0x01000
|
||||
#define TAB3 0x01800
|
||||
#define XTABS 0x01800
|
||||
#define BSDLY 0x02000
|
||||
#define BS0 0x00000
|
||||
#define BS1 0x02000
|
||||
#define VTDLY 0x04000
|
||||
#define VT0 0x00000
|
||||
#define VT1 0x04000
|
||||
#define FFDLY 0x08000
|
||||
#define FF0 0x00000
|
||||
#define FF1 0x08000
|
||||
#define CBAUD 0x0000100f
|
||||
#define CSIZE 0x00000030
|
||||
#define CS5 0x00000000
|
||||
#define CS6 0x00000010
|
||||
#define CS7 0x00000020
|
||||
#define CS8 0x00000030
|
||||
#define CSTOPB 0x00000040
|
||||
#define CREAD 0x00000080
|
||||
#define PARENB 0x00000100
|
||||
#define PARODD 0x00000200
|
||||
#define HUPCL 0x00000400
|
||||
#define CLOCAL 0x00000800
|
||||
#define CBAUDEX 0x00001000
|
||||
#define BOTHER 0x00001000
|
||||
#define B57600 0x00001001
|
||||
#define B115200 0x00001002
|
||||
#define B230400 0x00001003
|
||||
#define B460800 0x00001004
|
||||
#define B500000 0x00001005
|
||||
#define B576000 0x00001006
|
||||
#define B921600 0x00001007
|
||||
#define B1000000 0x00001008
|
||||
#define B1152000 0x00001009
|
||||
#define B1500000 0x0000100a
|
||||
#define B2000000 0x0000100b
|
||||
#define B2500000 0x0000100c
|
||||
#define B3000000 0x0000100d
|
||||
#define B3500000 0x0000100e
|
||||
#define B4000000 0x0000100f
|
||||
#define CIBAUD 0x100f0000
|
||||
#define ISIG 0x00001
|
||||
#define ICANON 0x00002
|
||||
#define XCASE 0x00004
|
||||
#define ECHO 0x00008
|
||||
#define ECHOE 0x00010
|
||||
#define ECHOK 0x00020
|
||||
#define ECHONL 0x00040
|
||||
#define NOFLSH 0x00080
|
||||
#define TOSTOP 0x00100
|
||||
#define ECHOCTL 0x00200
|
||||
#define ECHOPRT 0x00400
|
||||
#define ECHOKE 0x00800
|
||||
#define FLUSHO 0x01000
|
||||
#define PENDIN 0x04000
|
||||
#define IEXTEN 0x08000
|
||||
#define EXTPROC 0x10000
|
||||
#define TCSANOW 0
|
||||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
|
|
@ -360,7 +360,7 @@
|
|||
#endif
|
||||
#define __NR_rseq 293
|
||||
#define __NR_kexec_file_load 294
|
||||
#if __BITS_PER_LONG == 32
|
||||
#if defined(__SYSCALL_COMPAT) || __BITS_PER_LONG == 32
|
||||
#define __NR_clock_gettime64 403
|
||||
#define __NR_clock_settime64 404
|
||||
#define __NR_clock_adjtime64 405
|
||||
|
|
|
@ -40,8 +40,22 @@ enum hsmp_message_ids {
|
|||
HSMP_GET_CCLK_THROTTLE_LIMIT,
|
||||
HSMP_GET_C0_PERCENT,
|
||||
HSMP_SET_NBIO_DPM_LEVEL,
|
||||
HSMP_GET_DDR_BANDWIDTH = 0x14,
|
||||
HSMP_GET_NBIO_DPM_LEVEL,
|
||||
HSMP_GET_DDR_BANDWIDTH,
|
||||
HSMP_GET_TEMP_MONITOR,
|
||||
HSMP_GET_DIMM_TEMP_RANGE,
|
||||
HSMP_GET_DIMM_POWER,
|
||||
HSMP_GET_DIMM_THERMAL,
|
||||
HSMP_GET_SOCKET_FREQ_LIMIT,
|
||||
HSMP_GET_CCLK_CORE_LIMIT,
|
||||
HSMP_GET_RAILS_SVI,
|
||||
HSMP_GET_SOCKET_FMAX_FMIN,
|
||||
HSMP_GET_IOLINK_BANDWITH,
|
||||
HSMP_GET_XGMI_BANDWITH,
|
||||
HSMP_SET_GMI3_WIDTH,
|
||||
HSMP_SET_PCI_RATE,
|
||||
HSMP_SET_POWER_MODE,
|
||||
HSMP_SET_PSTATE_MAX_MIN,
|
||||
HSMP_MSG_ID_MAX,
|
||||
};
|
||||
struct hsmp_message {
|
||||
|
@ -120,7 +134,7 @@ static const struct hsmp_msg_desc hsmp_msg_desc_table[] = {
|
|||
1, 0, HSMP_SET
|
||||
}
|
||||
, {
|
||||
0, 0, HSMP_RSVD
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
0, 1, HSMP_GET
|
||||
|
@ -128,6 +142,45 @@ static const struct hsmp_msg_desc hsmp_msg_desc_table[] = {
|
|||
, {
|
||||
0, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
0, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
0, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
0, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_GET
|
||||
}
|
||||
, {
|
||||
1, 0, HSMP_SET
|
||||
}
|
||||
, {
|
||||
1, 1, HSMP_SET
|
||||
}
|
||||
, {
|
||||
1, 0, HSMP_SET
|
||||
}
|
||||
, {
|
||||
1, 0, HSMP_SET
|
||||
}
|
||||
,
|
||||
};
|
||||
#pragma pack()
|
||||
|
|
|
@ -25,8 +25,9 @@
|
|||
#define SETUP_EFI 4
|
||||
#define SETUP_APPLE_PROPERTIES 5
|
||||
#define SETUP_JAILHOUSE 6
|
||||
#define SETUP_CC_BLOB 7
|
||||
#define SETUP_INDIRECT (1 << 31)
|
||||
#define SETUP_TYPE_MAX (SETUP_INDIRECT | SETUP_JAILHOUSE)
|
||||
#define SETUP_TYPE_MAX (SETUP_INDIRECT | SETUP_CC_BLOB)
|
||||
#define RAMDISK_IMAGE_START_MASK 0x07FF
|
||||
#define RAMDISK_PROMPT_FLAG 0x8000
|
||||
#define RAMDISK_LOAD_FLAG 0x4000
|
||||
|
@ -162,7 +163,8 @@ struct boot_params {
|
|||
__u32 ext_ramdisk_image;
|
||||
__u32 ext_ramdisk_size;
|
||||
__u32 ext_cmd_line_ptr;
|
||||
__u8 _pad4[116];
|
||||
__u8 _pad4[112];
|
||||
__u32 cc_blob_address;
|
||||
struct edid_info edid_info;
|
||||
struct efi_info efi_info;
|
||||
__u32 alt_mem_k;
|
||||
|
|
|
@ -350,6 +350,7 @@ struct kvm_sync_regs {
|
|||
#define KVM_X86_QUIRK_LAPIC_MMIO_HOLE (1 << 2)
|
||||
#define KVM_X86_QUIRK_OUT_7E_INC_RIP (1 << 3)
|
||||
#define KVM_X86_QUIRK_MISC_ENABLE_NO_MWAIT (1 << 4)
|
||||
#define KVM_X86_QUIRK_FIX_HYPERCALL_INSN (1 << 5)
|
||||
#define KVM_STATE_NESTED_FORMAT_VMX 0
|
||||
#define KVM_STATE_NESTED_FORMAT_SVM 1
|
||||
#define KVM_STATE_NESTED_GUEST_MODE 0x00000001
|
||||
|
|
|
@ -122,8 +122,16 @@
|
|||
#define SVM_VMGEXIT_AP_JUMP_TABLE 0x80000005
|
||||
#define SVM_VMGEXIT_SET_AP_JUMP_TABLE 0
|
||||
#define SVM_VMGEXIT_GET_AP_JUMP_TABLE 1
|
||||
#define SVM_VMGEXIT_PSC 0x80000010
|
||||
#define SVM_VMGEXIT_GUEST_REQUEST 0x80000011
|
||||
#define SVM_VMGEXIT_EXT_GUEST_REQUEST 0x80000012
|
||||
#define SVM_VMGEXIT_AP_CREATION 0x80000013
|
||||
#define SVM_VMGEXIT_AP_CREATE_ON_INIT 0
|
||||
#define SVM_VMGEXIT_AP_CREATE 1
|
||||
#define SVM_VMGEXIT_AP_DESTROY 2
|
||||
#define SVM_VMGEXIT_HV_FEATURES 0x8000fffd
|
||||
#define SVM_VMGEXIT_UNSUPPORTED_EVENT 0x8000ffff
|
||||
#define SVM_EXIT_SW 0xf0000000
|
||||
#define SVM_EXIT_ERR - 1
|
||||
#define SVM_EXIT_REASONS { SVM_EXIT_READ_CR0, "read_cr0" }, { SVM_EXIT_READ_CR2, "read_cr2" }, { SVM_EXIT_READ_CR3, "read_cr3" }, { SVM_EXIT_READ_CR4, "read_cr4" }, { SVM_EXIT_READ_CR8, "read_cr8" }, { SVM_EXIT_WRITE_CR0, "write_cr0" }, { SVM_EXIT_WRITE_CR2, "write_cr2" }, { SVM_EXIT_WRITE_CR3, "write_cr3" }, { SVM_EXIT_WRITE_CR4, "write_cr4" }, { SVM_EXIT_WRITE_CR8, "write_cr8" }, { SVM_EXIT_READ_DR0, "read_dr0" }, { SVM_EXIT_READ_DR1, "read_dr1" }, { SVM_EXIT_READ_DR2, "read_dr2" }, { SVM_EXIT_READ_DR3, "read_dr3" }, { SVM_EXIT_READ_DR4, "read_dr4" }, { SVM_EXIT_READ_DR5, "read_dr5" }, { SVM_EXIT_READ_DR6, "read_dr6" }, { SVM_EXIT_READ_DR7, "read_dr7" }, { SVM_EXIT_WRITE_DR0, "write_dr0" }, { SVM_EXIT_WRITE_DR1, "write_dr1" }, { SVM_EXIT_WRITE_DR2, "write_dr2" }, { SVM_EXIT_WRITE_DR3, "write_dr3" }, { SVM_EXIT_WRITE_DR4, "write_dr4" }, { SVM_EXIT_WRITE_DR5, "write_dr5" }, { SVM_EXIT_WRITE_DR6, "write_dr6" }, { SVM_EXIT_WRITE_DR7, "write_dr7" }, { SVM_EXIT_EXCP_BASE + DE_VECTOR, "DE excp" }, { SVM_EXIT_EXCP_BASE + DB_VECTOR, "DB excp" }, { SVM_EXIT_EXCP_BASE + BP_VECTOR, "BP excp" }, { SVM_EXIT_EXCP_BASE + OF_VECTOR, "OF excp" }, { SVM_EXIT_EXCP_BASE + BR_VECTOR, "BR excp" }, { SVM_EXIT_EXCP_BASE + UD_VECTOR, "UD excp" }, { SVM_EXIT_EXCP_BASE + NM_VECTOR, "NM excp" }, { SVM_EXIT_EXCP_BASE + DF_VECTOR, "DF excp" }, { SVM_EXIT_EXCP_BASE + TS_VECTOR, "TS excp" }, { SVM_EXIT_EXCP_BASE + NP_VECTOR, "NP excp" }, { SVM_EXIT_EXCP_BASE + SS_VECTOR, "SS excp" }, { SVM_EXIT_EXCP_BASE + GP_VECTOR, "GP excp" }, { SVM_EXIT_EXCP_BASE + PF_VECTOR, "PF excp" }, { SVM_EXIT_EXCP_BASE + MF_VECTOR, "MF excp" }, { SVM_EXIT_EXCP_BASE + AC_VECTOR, "AC excp" }, { SVM_EXIT_EXCP_BASE + MC_VECTOR, "MC excp" }, { SVM_EXIT_EXCP_BASE + XM_VECTOR, "XF excp" }, { SVM_EXIT_INTR, "interrupt" }, { SVM_EXIT_NMI, "nmi" }, { SVM_EXIT_SMI, "smi" }, { SVM_EXIT_INIT, "init" }, { SVM_EXIT_VINTR, "vintr" }, { SVM_EXIT_CR0_SEL_WRITE, "cr0_sel_write" }, { SVM_EXIT_IDTR_READ, "read_idtr" }, { SVM_EXIT_GDTR_READ, "read_gdtr" }, { SVM_EXIT_LDTR_READ, "read_ldtr" }, { SVM_EXIT_TR_READ, "read_rt" }, { SVM_EXIT_IDTR_WRITE, "write_idtr" }, { SVM_EXIT_GDTR_WRITE, "write_gdtr" }, { SVM_EXIT_LDTR_WRITE, "write_ldtr" }, { SVM_EXIT_TR_WRITE, "write_rt" }, { SVM_EXIT_RDTSC, "rdtsc" }, { SVM_EXIT_RDPMC, "rdpmc" }, { SVM_EXIT_PUSHF, "pushf" }, { SVM_EXIT_POPF, "popf" }, { SVM_EXIT_CPUID, "cpuid" }, { SVM_EXIT_RSM, "rsm" }, { SVM_EXIT_IRET, "iret" }, { SVM_EXIT_SWINT, "swint" }, { SVM_EXIT_INVD, "invd" }, { SVM_EXIT_PAUSE, "pause" }, { SVM_EXIT_HLT, "hlt" }, { SVM_EXIT_INVLPG, "invlpg" }, { SVM_EXIT_INVLPGA, "invlpga" }, { SVM_EXIT_IOIO, "io" }, { SVM_EXIT_MSR, "msr" }, { SVM_EXIT_TASK_SWITCH, "task_switch" }, { SVM_EXIT_FERR_FREEZE, "ferr_freeze" }, { SVM_EXIT_SHUTDOWN, "shutdown" }, { SVM_EXIT_VMRUN, "vmrun" }, { SVM_EXIT_VMMCALL, "hypercall" }, { SVM_EXIT_VMLOAD, "vmload" }, { SVM_EXIT_VMSAVE, "vmsave" }, { SVM_EXIT_STGI, "stgi" }, { SVM_EXIT_CLGI, "clgi" }, { SVM_EXIT_SKINIT, "skinit" }, { SVM_EXIT_RDTSCP, "rdtscp" }, { SVM_EXIT_ICEBP, "icebp" }, { SVM_EXIT_WBINVD, "wbinvd" }, { SVM_EXIT_MONITOR, "monitor" }, { SVM_EXIT_MWAIT, "mwait" }, { SVM_EXIT_XSETBV, "xsetbv" }, { SVM_EXIT_EFER_WRITE_TRAP, "write_efer_trap" }, { SVM_EXIT_CR0_WRITE_TRAP, "write_cr0_trap" }, { SVM_EXIT_CR4_WRITE_TRAP, "write_cr4_trap" }, { SVM_EXIT_CR8_WRITE_TRAP, "write_cr8_trap" }, { SVM_EXIT_INVPCID, "invpcid" }, { SVM_EXIT_NPF, "npf" }, { SVM_EXIT_AVIC_INCOMPLETE_IPI, "avic_incomplete_ipi" }, { SVM_EXIT_AVIC_UNACCELERATED_ACCESS, "avic_unaccelerated_access" }, { SVM_EXIT_VMGEXIT, "vmgexit" }, { SVM_VMGEXIT_MMIO_READ, "vmgexit_mmio_read" }, { SVM_VMGEXIT_MMIO_WRITE, "vmgexit_mmio_write" }, { SVM_VMGEXIT_NMI_COMPLETE, "vmgexit_nmi_complete" }, { SVM_VMGEXIT_AP_HLT_LOOP, "vmgexit_ap_hlt_loop" }, { SVM_VMGEXIT_AP_JUMP_TABLE, "vmgexit_ap_jump_table" }, { SVM_EXIT_ERR, "invalid_guest_state" }
|
||||
#define SVM_EXIT_REASONS { SVM_EXIT_READ_CR0, "read_cr0" }, { SVM_EXIT_READ_CR2, "read_cr2" }, { SVM_EXIT_READ_CR3, "read_cr3" }, { SVM_EXIT_READ_CR4, "read_cr4" }, { SVM_EXIT_READ_CR8, "read_cr8" }, { SVM_EXIT_WRITE_CR0, "write_cr0" }, { SVM_EXIT_WRITE_CR2, "write_cr2" }, { SVM_EXIT_WRITE_CR3, "write_cr3" }, { SVM_EXIT_WRITE_CR4, "write_cr4" }, { SVM_EXIT_WRITE_CR8, "write_cr8" }, { SVM_EXIT_READ_DR0, "read_dr0" }, { SVM_EXIT_READ_DR1, "read_dr1" }, { SVM_EXIT_READ_DR2, "read_dr2" }, { SVM_EXIT_READ_DR3, "read_dr3" }, { SVM_EXIT_READ_DR4, "read_dr4" }, { SVM_EXIT_READ_DR5, "read_dr5" }, { SVM_EXIT_READ_DR6, "read_dr6" }, { SVM_EXIT_READ_DR7, "read_dr7" }, { SVM_EXIT_WRITE_DR0, "write_dr0" }, { SVM_EXIT_WRITE_DR1, "write_dr1" }, { SVM_EXIT_WRITE_DR2, "write_dr2" }, { SVM_EXIT_WRITE_DR3, "write_dr3" }, { SVM_EXIT_WRITE_DR4, "write_dr4" }, { SVM_EXIT_WRITE_DR5, "write_dr5" }, { SVM_EXIT_WRITE_DR6, "write_dr6" }, { SVM_EXIT_WRITE_DR7, "write_dr7" }, { SVM_EXIT_EXCP_BASE + DE_VECTOR, "DE excp" }, { SVM_EXIT_EXCP_BASE + DB_VECTOR, "DB excp" }, { SVM_EXIT_EXCP_BASE + BP_VECTOR, "BP excp" }, { SVM_EXIT_EXCP_BASE + OF_VECTOR, "OF excp" }, { SVM_EXIT_EXCP_BASE + BR_VECTOR, "BR excp" }, { SVM_EXIT_EXCP_BASE + UD_VECTOR, "UD excp" }, { SVM_EXIT_EXCP_BASE + NM_VECTOR, "NM excp" }, { SVM_EXIT_EXCP_BASE + DF_VECTOR, "DF excp" }, { SVM_EXIT_EXCP_BASE + TS_VECTOR, "TS excp" }, { SVM_EXIT_EXCP_BASE + NP_VECTOR, "NP excp" }, { SVM_EXIT_EXCP_BASE + SS_VECTOR, "SS excp" }, { SVM_EXIT_EXCP_BASE + GP_VECTOR, "GP excp" }, { SVM_EXIT_EXCP_BASE + PF_VECTOR, "PF excp" }, { SVM_EXIT_EXCP_BASE + MF_VECTOR, "MF excp" }, { SVM_EXIT_EXCP_BASE + AC_VECTOR, "AC excp" }, { SVM_EXIT_EXCP_BASE + MC_VECTOR, "MC excp" }, { SVM_EXIT_EXCP_BASE + XM_VECTOR, "XF excp" }, { SVM_EXIT_INTR, "interrupt" }, { SVM_EXIT_NMI, "nmi" }, { SVM_EXIT_SMI, "smi" }, { SVM_EXIT_INIT, "init" }, { SVM_EXIT_VINTR, "vintr" }, { SVM_EXIT_CR0_SEL_WRITE, "cr0_sel_write" }, { SVM_EXIT_IDTR_READ, "read_idtr" }, { SVM_EXIT_GDTR_READ, "read_gdtr" }, { SVM_EXIT_LDTR_READ, "read_ldtr" }, { SVM_EXIT_TR_READ, "read_rt" }, { SVM_EXIT_IDTR_WRITE, "write_idtr" }, { SVM_EXIT_GDTR_WRITE, "write_gdtr" }, { SVM_EXIT_LDTR_WRITE, "write_ldtr" }, { SVM_EXIT_TR_WRITE, "write_rt" }, { SVM_EXIT_RDTSC, "rdtsc" }, { SVM_EXIT_RDPMC, "rdpmc" }, { SVM_EXIT_PUSHF, "pushf" }, { SVM_EXIT_POPF, "popf" }, { SVM_EXIT_CPUID, "cpuid" }, { SVM_EXIT_RSM, "rsm" }, { SVM_EXIT_IRET, "iret" }, { SVM_EXIT_SWINT, "swint" }, { SVM_EXIT_INVD, "invd" }, { SVM_EXIT_PAUSE, "pause" }, { SVM_EXIT_HLT, "hlt" }, { SVM_EXIT_INVLPG, "invlpg" }, { SVM_EXIT_INVLPGA, "invlpga" }, { SVM_EXIT_IOIO, "io" }, { SVM_EXIT_MSR, "msr" }, { SVM_EXIT_TASK_SWITCH, "task_switch" }, { SVM_EXIT_FERR_FREEZE, "ferr_freeze" }, { SVM_EXIT_SHUTDOWN, "shutdown" }, { SVM_EXIT_VMRUN, "vmrun" }, { SVM_EXIT_VMMCALL, "hypercall" }, { SVM_EXIT_VMLOAD, "vmload" }, { SVM_EXIT_VMSAVE, "vmsave" }, { SVM_EXIT_STGI, "stgi" }, { SVM_EXIT_CLGI, "clgi" }, { SVM_EXIT_SKINIT, "skinit" }, { SVM_EXIT_RDTSCP, "rdtscp" }, { SVM_EXIT_ICEBP, "icebp" }, { SVM_EXIT_WBINVD, "wbinvd" }, { SVM_EXIT_MONITOR, "monitor" }, { SVM_EXIT_MWAIT, "mwait" }, { SVM_EXIT_XSETBV, "xsetbv" }, { SVM_EXIT_EFER_WRITE_TRAP, "write_efer_trap" }, { SVM_EXIT_CR0_WRITE_TRAP, "write_cr0_trap" }, { SVM_EXIT_CR4_WRITE_TRAP, "write_cr4_trap" }, { SVM_EXIT_CR8_WRITE_TRAP, "write_cr8_trap" }, { SVM_EXIT_INVPCID, "invpcid" }, { SVM_EXIT_NPF, "npf" }, { SVM_EXIT_AVIC_INCOMPLETE_IPI, "avic_incomplete_ipi" }, { SVM_EXIT_AVIC_UNACCELERATED_ACCESS, "avic_unaccelerated_access" }, { SVM_EXIT_VMGEXIT, "vmgexit" }, { SVM_VMGEXIT_MMIO_READ, "vmgexit_mmio_read" }, { SVM_VMGEXIT_MMIO_WRITE, "vmgexit_mmio_write" }, { SVM_VMGEXIT_NMI_COMPLETE, "vmgexit_nmi_complete" }, { SVM_VMGEXIT_AP_HLT_LOOP, "vmgexit_ap_hlt_loop" }, { SVM_VMGEXIT_AP_JUMP_TABLE, "vmgexit_ap_jump_table" }, { SVM_VMGEXIT_PSC, "vmgexit_page_state_change" }, { SVM_VMGEXIT_GUEST_REQUEST, "vmgexit_guest_request" }, { SVM_VMGEXIT_EXT_GUEST_REQUEST, "vmgexit_ext_guest_request" }, { SVM_VMGEXIT_AP_CREATION, "vmgexit_ap_creation" }, { SVM_VMGEXIT_HV_FEATURES, "vmgexit_hypervisor_feature" }, { SVM_EXIT_ERR, "invalid_guest_state" }
|
||||
#endif
|
||||
|
|
|
@ -72,6 +72,7 @@ extern "C" {
|
|||
#define AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE (1 << 9)
|
||||
#define AMDGPU_GEM_CREATE_ENCRYPTED (1 << 10)
|
||||
#define AMDGPU_GEM_CREATE_PREEMPTIBLE (1 << 11)
|
||||
#define AMDGPU_GEM_CREATE_DISCARDABLE (1 << 12)
|
||||
struct drm_amdgpu_gem_create_in {
|
||||
__u64 bo_size;
|
||||
__u64 alignment;
|
||||
|
@ -319,6 +320,7 @@ struct drm_amdgpu_gem_op {
|
|||
#define AMDGPU_VM_MTYPE_CC (3 << 5)
|
||||
#define AMDGPU_VM_MTYPE_UC (4 << 5)
|
||||
#define AMDGPU_VM_MTYPE_RW (5 << 5)
|
||||
#define AMDGPU_VM_PAGE_NOALLOC (1 << 9)
|
||||
struct drm_amdgpu_gem_va {
|
||||
__u32 handle;
|
||||
__u32 _pad;
|
||||
|
@ -588,6 +590,8 @@ struct drm_amdgpu_info_vbios {
|
|||
#define AMDGPU_VRAM_TYPE_DDR4 8
|
||||
#define AMDGPU_VRAM_TYPE_GDDR6 9
|
||||
#define AMDGPU_VRAM_TYPE_DDR5 10
|
||||
#define AMDGPU_VRAM_TYPE_LPDDR4 11
|
||||
#define AMDGPU_VRAM_TYPE_LPDDR5 12
|
||||
struct drm_amdgpu_info_device {
|
||||
__u32 device_id;
|
||||
__u32 chip_rev;
|
||||
|
@ -694,7 +698,9 @@ struct drm_amdgpu_info_video_caps {
|
|||
#define AMDGPU_FAMILY_RV 142
|
||||
#define AMDGPU_FAMILY_NV 143
|
||||
#define AMDGPU_FAMILY_VGH 144
|
||||
#define AMDGPU_FAMILY_GC_11_0_0 145
|
||||
#define AMDGPU_FAMILY_YC 146
|
||||
#define AMDGPU_FAMILY_GC_11_0_1 148
|
||||
#define AMDGPU_FAMILY_GC_10_3_6 149
|
||||
#define AMDGPU_FAMILY_GC_10_3_7 151
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -163,9 +163,15 @@ extern "C" {
|
|||
#define I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS fourcc_mod_code(INTEL, 6)
|
||||
#define I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS fourcc_mod_code(INTEL, 7)
|
||||
#define I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC fourcc_mod_code(INTEL, 8)
|
||||
#define I915_FORMAT_MOD_4_TILED fourcc_mod_code(INTEL, 9)
|
||||
#define I915_FORMAT_MOD_4_TILED_DG2_RC_CCS fourcc_mod_code(INTEL, 10)
|
||||
#define I915_FORMAT_MOD_4_TILED_DG2_MC_CCS fourcc_mod_code(INTEL, 11)
|
||||
#define I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC fourcc_mod_code(INTEL, 12)
|
||||
#define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1)
|
||||
#define DRM_FORMAT_MOD_SAMSUNG_16_16_TILE fourcc_mod_code(SAMSUNG, 2)
|
||||
#define DRM_FORMAT_MOD_QCOM_COMPRESSED fourcc_mod_code(QCOM, 1)
|
||||
#define DRM_FORMAT_MOD_QCOM_TILED3 fourcc_mod_code(QCOM, 3)
|
||||
#define DRM_FORMAT_MOD_QCOM_TILED2 fourcc_mod_code(QCOM, 2)
|
||||
#define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1)
|
||||
#define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2)
|
||||
#define DRM_FORMAT_MOD_VIVANTE_SPLIT_TILED fourcc_mod_code(VIVANTE, 3)
|
||||
|
@ -271,9 +277,9 @@ extern "C" {
|
|||
#define AMD_FMT_MOD_RB_MASK 0x7
|
||||
#define AMD_FMT_MOD_PIPE_SHIFT 33
|
||||
#define AMD_FMT_MOD_PIPE_MASK 0x7
|
||||
#define AMD_FMT_MOD_SET(field,value) ((uint64_t) (value) << AMD_FMT_MOD_ ##field ##_SHIFT)
|
||||
#define AMD_FMT_MOD_SET(field,value) ((__u64) (value) << AMD_FMT_MOD_ ##field ##_SHIFT)
|
||||
#define AMD_FMT_MOD_GET(field,value) (((value) >> AMD_FMT_MOD_ ##field ##_SHIFT) & AMD_FMT_MOD_ ##field ##_MASK)
|
||||
#define AMD_FMT_MOD_CLEAR(field) (~((uint64_t) AMD_FMT_MOD_ ##field ##_MASK << AMD_FMT_MOD_ ##field ##_SHIFT))
|
||||
#define AMD_FMT_MOD_CLEAR(field) (~((__u64) AMD_FMT_MOD_ ##field ##_MASK << AMD_FMT_MOD_ ##field ##_SHIFT))
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -41,13 +41,14 @@ enum drm_i915_gem_engine_class {
|
|||
I915_ENGINE_CLASS_COPY = 1,
|
||||
I915_ENGINE_CLASS_VIDEO = 2,
|
||||
I915_ENGINE_CLASS_VIDEO_ENHANCE = 3,
|
||||
I915_ENGINE_CLASS_COMPUTE = 4,
|
||||
I915_ENGINE_CLASS_INVALID = - 1
|
||||
};
|
||||
struct i915_engine_class_instance {
|
||||
__u16 engine_class;
|
||||
__u16 engine_instance;
|
||||
#define I915_ENGINE_CLASS_INVALID_NONE - 1
|
||||
#define I915_ENGINE_CLASS_INVALID_VIRTUAL - 2
|
||||
__u16 engine_instance;
|
||||
};
|
||||
enum drm_i915_pmu_engine_sample {
|
||||
I915_SAMPLE_BUSY = 0,
|
||||
|
@ -894,6 +895,8 @@ struct drm_i915_query_item {
|
|||
#define DRM_I915_QUERY_ENGINE_INFO 2
|
||||
#define DRM_I915_QUERY_PERF_CONFIG 3
|
||||
#define DRM_I915_QUERY_MEMORY_REGIONS 4
|
||||
#define DRM_I915_QUERY_HWCONFIG_BLOB 5
|
||||
#define DRM_I915_QUERY_GEOMETRY_SUBSLICES 6
|
||||
__s32 length;
|
||||
__u32 flags;
|
||||
#define DRM_I915_QUERY_PERF_CONFIG_LIST 1
|
||||
|
|
|
@ -44,11 +44,17 @@ struct drm_msm_timespec {
|
|||
#define MSM_PARAM_FAULTS 0x09
|
||||
#define MSM_PARAM_SUSPENDS 0x0a
|
||||
#define MSM_PARAM_SYSPROF 0x0b
|
||||
#define MSM_PARAM_COMM 0x0c
|
||||
#define MSM_PARAM_CMDLINE 0x0d
|
||||
#define MSM_PARAM_VA_START 0x0e
|
||||
#define MSM_PARAM_VA_SIZE 0x0f
|
||||
#define MSM_PARAM_NR_RINGS MSM_PARAM_PRIORITIES
|
||||
struct drm_msm_param {
|
||||
__u32 pipe;
|
||||
__u32 param;
|
||||
__u64 value;
|
||||
__u32 len;
|
||||
__u32 pad;
|
||||
};
|
||||
#define MSM_BO_SCANOUT 0x00000001
|
||||
#define MSM_BO_GPU_READONLY 0x00000002
|
||||
|
@ -67,6 +73,7 @@ struct drm_msm_gem_new {
|
|||
#define MSM_INFO_GET_IOVA 0x01
|
||||
#define MSM_INFO_SET_NAME 0x02
|
||||
#define MSM_INFO_GET_NAME 0x03
|
||||
#define MSM_INFO_SET_IOVA 0x04
|
||||
struct drm_msm_gem_info {
|
||||
__u32 handle;
|
||||
__u32 info;
|
||||
|
|
|
@ -76,6 +76,7 @@ extern "C" {
|
|||
#define DRM_VMW_PARAM_SM4_1 14
|
||||
#define DRM_VMW_PARAM_SM5 15
|
||||
#define DRM_VMW_PARAM_GL43 16
|
||||
#define DRM_VMW_PARAM_DEVICE_ID 17
|
||||
enum drm_vmw_handle_type {
|
||||
DRM_VMW_HANDLE_LEGACY = 0,
|
||||
DRM_VMW_HANDLE_PRIME = 1
|
||||
|
|
|
@ -74,6 +74,7 @@ struct acct_v3 {
|
|||
#define ACOMPAT 0x04
|
||||
#define ACORE 0x08
|
||||
#define AXSIG 0x10
|
||||
#define AGROUP 0x20
|
||||
#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN)
|
||||
#define ACCT_BYTEORDER 0x80
|
||||
#elif defined(__BYTE_ORDER)?__BYTE_ORDER==__LITTLE_ENDIAN:defined(__LITTLE_ENDIAN)
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#define FALSE 0
|
||||
#endif
|
||||
#include <linux/types.h>
|
||||
#include <stdlib.h>
|
||||
struct agp_version {
|
||||
__u16 major;
|
||||
__u16 minor;
|
||||
|
@ -48,10 +47,10 @@ typedef struct _agp_info {
|
|||
__u32 bridge_id;
|
||||
__u32 agp_mode;
|
||||
unsigned long aper_base;
|
||||
size_t aper_size;
|
||||
size_t pg_total;
|
||||
size_t pg_system;
|
||||
size_t pg_used;
|
||||
__kernel_size_t aper_size;
|
||||
__kernel_size_t pg_total;
|
||||
__kernel_size_t pg_system;
|
||||
__kernel_size_t pg_used;
|
||||
} agp_info;
|
||||
typedef struct _agp_setup {
|
||||
__u32 agp_mode;
|
||||
|
|
|
@ -127,6 +127,11 @@ struct binder_frozen_status_info {
|
|||
__u32 sync_recv;
|
||||
__u32 async_recv;
|
||||
};
|
||||
struct binder_extended_error {
|
||||
__u32 id;
|
||||
__u32 command;
|
||||
__s32 param;
|
||||
};
|
||||
#define BINDER_WRITE_READ _IOWR('b', 1, struct binder_write_read)
|
||||
#define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
|
||||
#define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
|
||||
|
@ -140,6 +145,7 @@ struct binder_frozen_status_info {
|
|||
#define BINDER_FREEZE _IOW('b', 14, struct binder_freeze_info)
|
||||
#define BINDER_GET_FROZEN_INFO _IOWR('b', 15, struct binder_frozen_status_info)
|
||||
#define BINDER_ENABLE_ONEWAY_SPAM_DETECTION _IOW('b', 16, __u32)
|
||||
#define BINDER_GET_EXTENDED_ERROR _IOWR('b', 17, struct binder_extended_error)
|
||||
enum transaction_flags {
|
||||
TF_ONE_WAY = 0x01,
|
||||
TF_ROOT_OBJECT = 0x04,
|
||||
|
@ -156,11 +162,7 @@ struct binder_transaction_data {
|
|||
__u32 code;
|
||||
__u32 flags;
|
||||
__kernel_pid_t sender_pid;
|
||||
/* Modified to __kernel_uid_t in the headers but this is not the same size
|
||||
* as uid_t on 32 bit systems. This is fixed in upstream, but wait until
|
||||
* 5.19 to get the fix. See b/234125620.
|
||||
*/
|
||||
uid_t sender_euid;
|
||||
__kernel_uid32_t sender_euid;
|
||||
binder_size_t data_size;
|
||||
binder_size_t offsets_size;
|
||||
union {
|
||||
|
|
|
@ -323,6 +323,8 @@ enum {
|
|||
#define AUDIT_ARCH_UNICORE (EM_UNICORE | __AUDIT_ARCH_LE)
|
||||
#define AUDIT_ARCH_X86_64 (EM_X86_64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE)
|
||||
#define AUDIT_ARCH_XTENSA (EM_XTENSA)
|
||||
#define AUDIT_ARCH_LOONGARCH32 (EM_LOONGARCH | __AUDIT_ARCH_LE)
|
||||
#define AUDIT_ARCH_LOONGARCH64 (EM_LOONGARCH | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE)
|
||||
#define AUDIT_PERM_EXEC 1
|
||||
#define AUDIT_PERM_WRITE 2
|
||||
#define AUDIT_PERM_READ 4
|
||||
|
|
|
@ -242,6 +242,7 @@ enum bpf_link_type {
|
|||
BPF_LINK_TYPE_XDP = 6,
|
||||
BPF_LINK_TYPE_PERF_EVENT = 7,
|
||||
BPF_LINK_TYPE_KPROBE_MULTI = 8,
|
||||
BPF_LINK_TYPE_STRUCT_OPS = 9,
|
||||
MAX_BPF_LINK_TYPE,
|
||||
};
|
||||
#define BPF_F_ALLOW_OVERRIDE (1U << 0)
|
||||
|
@ -469,6 +470,10 @@ union bpf_attr {
|
|||
__aligned_u64 addrs;
|
||||
__aligned_u64 cookies;
|
||||
} kprobe_multi;
|
||||
struct {
|
||||
__u32 target_btf_id;
|
||||
__u64 cookie;
|
||||
} tracing;
|
||||
};
|
||||
} link_create;
|
||||
struct {
|
||||
|
@ -493,7 +498,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), 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), FN(get_branch_snapshot), FN(trace_vprintk), FN(skc_to_unix_sock), FN(kallsyms_lookup_name), FN(find_vma), FN(loop), FN(strncmp), FN(get_func_arg), FN(get_func_ret), FN(get_func_arg_cnt), FN(get_retval), FN(set_retval), FN(xdp_get_buff_len), FN(xdp_load_bytes), FN(xdp_store_bytes), FN(copy_from_user_task), FN(skb_set_tstamp), FN(ima_file_hash),
|
||||
#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), FN(get_branch_snapshot), FN(trace_vprintk), FN(skc_to_unix_sock), FN(kallsyms_lookup_name), FN(find_vma), FN(loop), FN(strncmp), FN(get_func_arg), FN(get_func_ret), FN(get_func_arg_cnt), FN(get_retval), FN(set_retval), FN(xdp_get_buff_len), FN(xdp_load_bytes), FN(xdp_store_bytes), FN(copy_from_user_task), FN(skb_set_tstamp), FN(ima_file_hash), FN(kptr_xchg), FN(map_lookup_percpu_elem), FN(skc_to_mptcp_sock), FN(dynptr_from_mem), FN(ringbuf_reserve_dynptr), FN(ringbuf_submit_dynptr), FN(ringbuf_discard_dynptr), FN(dynptr_read), FN(dynptr_write), FN(dynptr_data),
|
||||
#define __BPF_ENUM_FN(x) BPF_FUNC_ ##x
|
||||
enum bpf_func_id {
|
||||
__BPF_FUNC_MAPPER(__BPF_ENUM_FN) __BPF_FUNC_MAX_ID,
|
||||
|
@ -659,6 +664,10 @@ struct bpf_tunnel_key {
|
|||
__u8 tunnel_ttl;
|
||||
__u16 tunnel_ext;
|
||||
__u32 tunnel_label;
|
||||
union {
|
||||
__u32 local_ipv4;
|
||||
__u32 local_ipv6[4];
|
||||
};
|
||||
};
|
||||
struct bpf_xfrm_state {
|
||||
__u32 reqid;
|
||||
|
@ -1153,6 +1162,10 @@ struct bpf_timer {
|
|||
__u64 : 64;
|
||||
__u64 : 64;
|
||||
} __attribute__((aligned(8)));
|
||||
struct bpf_dynptr {
|
||||
__u64 : 64;
|
||||
__u64 : 64;
|
||||
} __attribute__((aligned(8)));
|
||||
struct bpf_sysctl {
|
||||
__u32 write;
|
||||
__u32 file_pos;
|
||||
|
|
|
@ -373,18 +373,6 @@ struct btrfs_dev_replace_item {
|
|||
#define BTRFS_BLOCK_GROUP_RAID1C3 (1ULL << 9)
|
||||
#define BTRFS_BLOCK_GROUP_RAID1C4 (1ULL << 10)
|
||||
#define BTRFS_BLOCK_GROUP_RESERVED (BTRFS_AVAIL_ALLOC_BIT_SINGLE | BTRFS_SPACE_INFO_GLOBAL_RSV)
|
||||
enum btrfs_raid_types {
|
||||
BTRFS_RAID_RAID10,
|
||||
BTRFS_RAID_RAID1,
|
||||
BTRFS_RAID_DUP,
|
||||
BTRFS_RAID_RAID0,
|
||||
BTRFS_RAID_SINGLE,
|
||||
BTRFS_RAID_RAID5,
|
||||
BTRFS_RAID_RAID6,
|
||||
BTRFS_RAID_RAID1C3,
|
||||
BTRFS_RAID_RAID1C4,
|
||||
BTRFS_NR_RAID_TYPES
|
||||
};
|
||||
#define BTRFS_BLOCK_GROUP_TYPE_MASK (BTRFS_BLOCK_GROUP_DATA | BTRFS_BLOCK_GROUP_SYSTEM | BTRFS_BLOCK_GROUP_METADATA)
|
||||
#define BTRFS_BLOCK_GROUP_PROFILE_MASK (BTRFS_BLOCK_GROUP_RAID0 | BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_RAID1C3 | BTRFS_BLOCK_GROUP_RAID1C4 | BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6 | BTRFS_BLOCK_GROUP_DUP | BTRFS_BLOCK_GROUP_RAID10)
|
||||
#define BTRFS_BLOCK_GROUP_RAID56_MASK (BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)
|
||||
|
|
|
@ -16,27 +16,33 @@
|
|||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef LINUX_ATM_ZATM_H
|
||||
#define LINUX_ATM_ZATM_H
|
||||
#include <linux/atmapi.h>
|
||||
#include <linux/atmioc.h>
|
||||
#define ZATM_GETPOOL _IOW('a', ATMIOC_SARPRV + 1, struct atmif_sioc)
|
||||
#define ZATM_GETPOOLZ _IOW('a', ATMIOC_SARPRV + 2, struct atmif_sioc)
|
||||
#define ZATM_SETPOOL _IOW('a', ATMIOC_SARPRV + 3, struct atmif_sioc)
|
||||
struct zatm_pool_info {
|
||||
int ref_count;
|
||||
int low_water, high_water;
|
||||
int rqa_count, rqu_count;
|
||||
int offset, next_off;
|
||||
int next_cnt, next_thres;
|
||||
#ifndef _LINUX_CACHEFILES_H
|
||||
#define _LINUX_CACHEFILES_H
|
||||
#include <linux/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
#define CACHEFILES_MSG_MAX_SIZE 1024
|
||||
enum cachefiles_opcode {
|
||||
CACHEFILES_OP_OPEN,
|
||||
CACHEFILES_OP_CLOSE,
|
||||
CACHEFILES_OP_READ,
|
||||
};
|
||||
struct zatm_pool_req {
|
||||
int pool_num;
|
||||
struct zatm_pool_info info;
|
||||
struct cachefiles_msg {
|
||||
__u32 msg_id;
|
||||
__u32 opcode;
|
||||
__u32 len;
|
||||
__u32 object_id;
|
||||
__u8 data[];
|
||||
};
|
||||
#define ZATM_OAM_POOL 0
|
||||
#define ZATM_AAL0_POOL 1
|
||||
#define ZATM_AAL5_POOL_BASE 2
|
||||
#define ZATM_LAST_POOL ZATM_AAL5_POOL_BASE + 10
|
||||
#define ZATM_TIMER_HISTORY_SIZE 16
|
||||
struct cachefiles_open {
|
||||
__u32 volume_key_size;
|
||||
__u32 cookie_key_size;
|
||||
__u32 fd;
|
||||
__u32 flags;
|
||||
__u8 data[];
|
||||
};
|
||||
struct cachefiles_read {
|
||||
__u64 off;
|
||||
__u64 len;
|
||||
};
|
||||
#define CACHEFILES_IOC_READ_COMPLETE _IOW(0x98, 1, int)
|
||||
#endif
|
|
@ -44,18 +44,19 @@ struct can_isotp_ll_options {
|
|||
__u8 tx_dl;
|
||||
__u8 tx_flags;
|
||||
};
|
||||
#define CAN_ISOTP_LISTEN_MODE 0x001
|
||||
#define CAN_ISOTP_EXTEND_ADDR 0x002
|
||||
#define CAN_ISOTP_TX_PADDING 0x004
|
||||
#define CAN_ISOTP_RX_PADDING 0x008
|
||||
#define CAN_ISOTP_CHK_PAD_LEN 0x010
|
||||
#define CAN_ISOTP_CHK_PAD_DATA 0x020
|
||||
#define CAN_ISOTP_HALF_DUPLEX 0x040
|
||||
#define CAN_ISOTP_FORCE_TXSTMIN 0x080
|
||||
#define CAN_ISOTP_FORCE_RXSTMIN 0x100
|
||||
#define CAN_ISOTP_RX_EXT_ADDR 0x200
|
||||
#define CAN_ISOTP_WAIT_TX_DONE 0x400
|
||||
#define CAN_ISOTP_SF_BROADCAST 0x800
|
||||
#define CAN_ISOTP_LISTEN_MODE 0x0001
|
||||
#define CAN_ISOTP_EXTEND_ADDR 0x0002
|
||||
#define CAN_ISOTP_TX_PADDING 0x0004
|
||||
#define CAN_ISOTP_RX_PADDING 0x0008
|
||||
#define CAN_ISOTP_CHK_PAD_LEN 0x0010
|
||||
#define CAN_ISOTP_CHK_PAD_DATA 0x0020
|
||||
#define CAN_ISOTP_HALF_DUPLEX 0x0040
|
||||
#define CAN_ISOTP_FORCE_TXSTMIN 0x0080
|
||||
#define CAN_ISOTP_FORCE_RXSTMIN 0x0100
|
||||
#define CAN_ISOTP_RX_EXT_ADDR 0x0200
|
||||
#define CAN_ISOTP_WAIT_TX_DONE 0x0400
|
||||
#define CAN_ISOTP_SF_BROADCAST 0x0800
|
||||
#define CAN_ISOTP_CF_BROADCAST 0x1000
|
||||
#define CAN_ISOTP_DEFAULT_FLAGS 0
|
||||
#define CAN_ISOTP_DEFAULT_EXT_ADDRESS 0x00
|
||||
#define CAN_ISOTP_DEFAULT_PAD_CONTENT 0xCC
|
||||
|
|
|
@ -38,8 +38,8 @@ struct cxl_command_info {
|
|||
__u32 id;
|
||||
__u32 flags;
|
||||
#define CXL_MEM_COMMAND_FLAG_MASK GENMASK(0, 0)
|
||||
__s32 size_in;
|
||||
__s32 size_out;
|
||||
__u32 size_in;
|
||||
__u32 size_out;
|
||||
};
|
||||
struct cxl_mem_query_commands {
|
||||
__u32 n_commands;
|
||||
|
@ -58,12 +58,12 @@ struct cxl_send_command {
|
|||
};
|
||||
__u32 retval;
|
||||
struct {
|
||||
__s32 size;
|
||||
__u32 size;
|
||||
__u32 rsvd;
|
||||
__u64 payload;
|
||||
} in;
|
||||
struct {
|
||||
__s32 size;
|
||||
__u32 size;
|
||||
__u32 rsvd;
|
||||
__u64 payload;
|
||||
} out;
|
||||
|
|
|
@ -103,6 +103,10 @@ enum devlink_command {
|
|||
DEVLINK_CMD_RATE_SET,
|
||||
DEVLINK_CMD_RATE_NEW,
|
||||
DEVLINK_CMD_RATE_DEL,
|
||||
DEVLINK_CMD_LINECARD_GET,
|
||||
DEVLINK_CMD_LINECARD_SET,
|
||||
DEVLINK_CMD_LINECARD_NEW,
|
||||
DEVLINK_CMD_LINECARD_DEL,
|
||||
__DEVLINK_CMD_MAX,
|
||||
DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
|
||||
};
|
||||
|
@ -212,6 +216,17 @@ enum devlink_reload_limit {
|
|||
DEVLINK_RELOAD_LIMIT_MAX = __DEVLINK_RELOAD_LIMIT_MAX - 1
|
||||
};
|
||||
#define DEVLINK_RELOAD_LIMITS_VALID_MASK (_BITUL(__DEVLINK_RELOAD_LIMIT_MAX) - 1)
|
||||
enum devlink_linecard_state {
|
||||
DEVLINK_LINECARD_STATE_UNSPEC,
|
||||
DEVLINK_LINECARD_STATE_UNPROVISIONED,
|
||||
DEVLINK_LINECARD_STATE_UNPROVISIONING,
|
||||
DEVLINK_LINECARD_STATE_PROVISIONING,
|
||||
DEVLINK_LINECARD_STATE_PROVISIONING_FAILED,
|
||||
DEVLINK_LINECARD_STATE_PROVISIONED,
|
||||
DEVLINK_LINECARD_STATE_ACTIVE,
|
||||
__DEVLINK_LINECARD_STATE_MAX,
|
||||
DEVLINK_LINECARD_STATE_MAX = __DEVLINK_LINECARD_STATE_MAX - 1
|
||||
};
|
||||
enum devlink_attr {
|
||||
DEVLINK_ATTR_UNSPEC,
|
||||
DEVLINK_ATTR_BUS_NAME,
|
||||
|
@ -384,6 +399,10 @@ enum devlink_attr {
|
|||
DEVLINK_ATTR_RATE_NODE_NAME,
|
||||
DEVLINK_ATTR_RATE_PARENT_NODE_NAME,
|
||||
DEVLINK_ATTR_REGION_MAX_SNAPSHOTS,
|
||||
DEVLINK_ATTR_LINECARD_INDEX,
|
||||
DEVLINK_ATTR_LINECARD_STATE,
|
||||
DEVLINK_ATTR_LINECARD_TYPE,
|
||||
DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES,
|
||||
__DEVLINK_ATTR_MAX,
|
||||
DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX - 1
|
||||
};
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
#define EM_RISCV 243
|
||||
#define EM_BPF 247
|
||||
#define EM_CSKY 252
|
||||
#define EM_LOONGARCH 258
|
||||
#define EM_FRV 0x5441
|
||||
#define EM_ALPHA 0x9026
|
||||
#define EM_CYGNUS_M32R 0x9041
|
||||
|
|
|
@ -112,7 +112,7 @@ typedef __s64 Elf64_Sxword;
|
|||
#define STT_COMMON 5
|
||||
#define STT_TLS 6
|
||||
#define ELF_ST_BIND(x) ((x) >> 4)
|
||||
#define ELF_ST_TYPE(x) (((unsigned int) x) & 0xf)
|
||||
#define ELF_ST_TYPE(x) ((x) & 0xf)
|
||||
#define ELF32_ST_BIND(x) ELF_ST_BIND(x)
|
||||
#define ELF32_ST_TYPE(x) ELF_ST_TYPE(x)
|
||||
#define ELF64_ST_BIND(x) ELF_ST_BIND(x)
|
||||
|
@ -363,11 +363,18 @@ typedef struct elf64_shdr {
|
|||
#define NT_ARM_PACG_KEYS 0x408
|
||||
#define NT_ARM_TAGGED_ADDR_CTRL 0x409
|
||||
#define NT_ARM_PAC_ENABLED_KEYS 0x40a
|
||||
#define NT_ARM_SSVE 0x40b
|
||||
#define NT_ARM_ZA 0x40c
|
||||
#define NT_ARC_V2 0x600
|
||||
#define NT_VMCOREDD 0x700
|
||||
#define NT_MIPS_DSP 0x800
|
||||
#define NT_MIPS_FP_MODE 0x801
|
||||
#define NT_MIPS_MSA 0x802
|
||||
#define NT_LOONGARCH_CPUCFG 0xa00
|
||||
#define NT_LOONGARCH_CSR 0xa01
|
||||
#define NT_LOONGARCH_LSX 0xa02
|
||||
#define NT_LOONGARCH_LASX 0xa03
|
||||
#define NT_LOONGARCH_LBT 0xa04
|
||||
#define NT_GNU_PROPERTY_TYPE_0 5
|
||||
typedef struct elf32_note {
|
||||
Elf32_Word n_namesz;
|
||||
|
|
|
@ -704,6 +704,7 @@ enum ethtool_link_mode_bit_indices {
|
|||
ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 89,
|
||||
ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 90,
|
||||
ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 91,
|
||||
ETHTOOL_LINK_MODE_10baseT1L_Full_BIT = 92,
|
||||
__ETHTOOL_LINK_MODE_MASK_NBITS
|
||||
};
|
||||
#define __ETHTOOL_LINK_MODE_LEGACY_MASK(base_name) (1UL << (ETHTOOL_LINK_MODE_ ##base_name ##_BIT))
|
||||
|
|
|
@ -258,6 +258,7 @@ enum {
|
|||
ETHTOOL_A_RINGS_RX_BUF_LEN,
|
||||
ETHTOOL_A_RINGS_TCP_DATA_SPLIT,
|
||||
ETHTOOL_A_RINGS_CQE_SIZE,
|
||||
ETHTOOL_A_RINGS_TX_PUSH,
|
||||
__ETHTOOL_A_RINGS_CNT,
|
||||
ETHTOOL_A_RINGS_MAX = (__ETHTOOL_A_RINGS_CNT - 1)
|
||||
};
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
#define FAN_MARK_IGNORED_MASK 0x00000020
|
||||
#define FAN_MARK_IGNORED_SURV_MODIFY 0x00000040
|
||||
#define FAN_MARK_FLUSH 0x00000080
|
||||
#define FAN_MARK_EVICTABLE 0x00000200
|
||||
#define FAN_MARK_INODE 0x00000000
|
||||
#define FAN_MARK_MOUNT 0x00000010
|
||||
#define FAN_MARK_FILESYSTEM 0x00000100
|
||||
|
|
|
@ -42,6 +42,7 @@ enum gpio_v2_line_flag {
|
|||
GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN = _BITULL(9),
|
||||
GPIO_V2_LINE_FLAG_BIAS_DISABLED = _BITULL(10),
|
||||
GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME = _BITULL(11),
|
||||
GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE = _BITULL(12),
|
||||
};
|
||||
struct gpio_v2_line_values {
|
||||
__aligned_u64 bits;
|
||||
|
|
|
@ -84,7 +84,11 @@ struct icmphdr {
|
|||
} echo;
|
||||
__be32 gateway;
|
||||
struct {
|
||||
#ifdef __BIONIC__
|
||||
__be16 __linux_unused;
|
||||
#else
|
||||
__be16 __linux_unused;
|
||||
#endif
|
||||
__be16 mtu;
|
||||
} frag;
|
||||
__u8 reserved[4];
|
||||
|
|
|
@ -57,6 +57,11 @@ enum idxd_scmd_stat {
|
|||
#define IDXD_OP_FLAG_DRDBK 0x4000
|
||||
#define IDXD_OP_FLAG_DSTS 0x8000
|
||||
#define IDXD_OP_FLAG_RD_SRC2_AECS 0x010000
|
||||
#define IDXD_OP_FLAG_RD_SRC2_2ND 0x020000
|
||||
#define IDXD_OP_FLAG_WR_SRC2_AECS_COMP 0x040000
|
||||
#define IDXD_OP_FLAG_WR_SRC2_AECS_OVFL 0x080000
|
||||
#define IDXD_OP_FLAG_SRC2_STS 0x100000
|
||||
#define IDXD_OP_FLAG_CRC_RFC3720 0x200000
|
||||
enum dsa_opcode {
|
||||
DSA_OPCODE_NOOP = 0,
|
||||
DSA_OPCODE_BATCH,
|
||||
|
@ -82,6 +87,18 @@ enum iax_opcode {
|
|||
IAX_OPCODE_MEMMOVE,
|
||||
IAX_OPCODE_DECOMPRESS = 0x42,
|
||||
IAX_OPCODE_COMPRESS,
|
||||
IAX_OPCODE_CRC64,
|
||||
IAX_OPCODE_ZERO_DECOMP_32 = 0x48,
|
||||
IAX_OPCODE_ZERO_DECOMP_16,
|
||||
IAX_OPCODE_DECOMP_32 = 0x4c,
|
||||
IAX_OPCODE_DECOMP_16,
|
||||
IAX_OPCODE_SCAN = 0x50,
|
||||
IAX_OPCODE_SET_MEMBER,
|
||||
IAX_OPCODE_EXTRACT,
|
||||
IAX_OPCODE_SELECT,
|
||||
IAX_OPCODE_RLE_BURST,
|
||||
IAX_OPCDE_FIND_UNIQUE,
|
||||
IAX_OPCODE_EXPAND,
|
||||
};
|
||||
enum dsa_completion_status {
|
||||
DSA_COMP_NONE = 0,
|
||||
|
@ -118,6 +135,7 @@ enum iax_completion_status {
|
|||
IAX_COMP_NONE = 0,
|
||||
IAX_COMP_SUCCESS,
|
||||
IAX_COMP_PAGE_FAULT_IR = 0x04,
|
||||
IAX_COMP_ANALYTICS_ERROR = 0x0a,
|
||||
IAX_COMP_OUTBUF_OVERFLOW,
|
||||
IAX_COMP_BAD_OPCODE = 0x10,
|
||||
IAX_COMP_INVALID_FLAGS,
|
||||
|
@ -138,7 +156,10 @@ enum iax_completion_status {
|
|||
IAX_COMP_WATCHDOG,
|
||||
IAX_COMP_INVALID_COMP_FLAG = 0x30,
|
||||
IAX_COMP_INVALID_FILTER_FLAG,
|
||||
IAX_COMP_INVALID_NUM_ELEMS = 0x33,
|
||||
IAX_COMP_INVALID_INPUT_SIZE,
|
||||
IAX_COMP_INVALID_NUM_ELEMS,
|
||||
IAX_COMP_INVALID_SRC1_WIDTH,
|
||||
IAX_COMP_INVALID_INVERT_OUT,
|
||||
};
|
||||
#define DSA_COMP_STATUS_MASK 0x7f
|
||||
#define DSA_COMP_STATUS_WRITE 0x80
|
||||
|
@ -291,8 +312,12 @@ struct iax_completion_record {
|
|||
uint32_t output_size;
|
||||
uint8_t output_bits;
|
||||
uint8_t rsvd3;
|
||||
uint16_t rsvd4;
|
||||
uint64_t rsvd5[4];
|
||||
uint16_t xor_csum;
|
||||
uint32_t crc;
|
||||
uint32_t min;
|
||||
uint32_t max;
|
||||
uint32_t sum;
|
||||
uint64_t rsvd4[2];
|
||||
} __attribute__((packed));
|
||||
struct iax_raw_completion_record {
|
||||
uint64_t field[8];
|
||||
|
|
|
@ -71,6 +71,7 @@ struct rtnl_link_stats64 {
|
|||
__u64 rx_compressed;
|
||||
__u64 tx_compressed;
|
||||
__u64 rx_nohandler;
|
||||
__u64 rx_otherhost_dropped;
|
||||
};
|
||||
struct rtnl_hw_stats64 {
|
||||
__u64 rx_packets;
|
||||
|
@ -162,6 +163,8 @@ enum {
|
|||
IFLA_PARENT_DEV_NAME,
|
||||
IFLA_PARENT_DEV_BUS_NAME,
|
||||
IFLA_GRO_MAX_SIZE,
|
||||
IFLA_TSO_MAX_SIZE,
|
||||
IFLA_TSO_MAX_SEGS,
|
||||
__IFLA_MAX
|
||||
};
|
||||
#define IFLA_MAX (__IFLA_MAX - 1)
|
||||
|
|
|
@ -125,6 +125,7 @@ struct input_mask {
|
|||
#define BUS_RMI 0x1D
|
||||
#define BUS_CEC 0x1E
|
||||
#define BUS_INTEL_ISHTP 0x1F
|
||||
#define BUS_AMD_SFH 0x20
|
||||
#define MT_TOOL_FINGER 0x00
|
||||
#define MT_TOOL_PEN 0x01
|
||||
#define MT_TOOL_PALM 0x02
|
||||
|
|
|
@ -28,6 +28,10 @@ struct io_uring_sqe {
|
|||
union {
|
||||
__u64 off;
|
||||
__u64 addr2;
|
||||
struct {
|
||||
__u32 cmd_op;
|
||||
__u32 __pad1;
|
||||
};
|
||||
};
|
||||
union {
|
||||
__u64 addr;
|
||||
|
@ -51,6 +55,7 @@ struct io_uring_sqe {
|
|||
__u32 rename_flags;
|
||||
__u32 unlink_flags;
|
||||
__u32 hardlink_flags;
|
||||
__u32 xattr_flags;
|
||||
};
|
||||
__u64 user_data;
|
||||
union {
|
||||
|
@ -62,8 +67,15 @@ struct io_uring_sqe {
|
|||
__s32 splice_fd_in;
|
||||
__u32 file_index;
|
||||
};
|
||||
__u64 __pad2[2];
|
||||
union {
|
||||
struct {
|
||||
__u64 addr3;
|
||||
__u64 __pad2[1];
|
||||
};
|
||||
__u8 cmd[0];
|
||||
};
|
||||
};
|
||||
#define IORING_FILE_INDEX_ALLOC (~0U)
|
||||
enum {
|
||||
IOSQE_FIXED_FILE_BIT,
|
||||
IOSQE_IO_DRAIN_BIT,
|
||||
|
@ -88,7 +100,11 @@ enum {
|
|||
#define IORING_SETUP_ATTACH_WQ (1U << 5)
|
||||
#define IORING_SETUP_R_DISABLED (1U << 6)
|
||||
#define IORING_SETUP_SUBMIT_ALL (1U << 7)
|
||||
enum {
|
||||
#define IORING_SETUP_COOP_TASKRUN (1U << 8)
|
||||
#define IORING_SETUP_TASKRUN_FLAG (1U << 9)
|
||||
#define IORING_SETUP_SQE128 (1U << 10)
|
||||
#define IORING_SETUP_CQE32 (1U << 11)
|
||||
enum io_uring_op {
|
||||
IORING_OP_NOP,
|
||||
IORING_OP_READV,
|
||||
IORING_OP_WRITEV,
|
||||
|
@ -130,6 +146,12 @@ enum {
|
|||
IORING_OP_SYMLINKAT,
|
||||
IORING_OP_LINKAT,
|
||||
IORING_OP_MSG_RING,
|
||||
IORING_OP_FSETXATTR,
|
||||
IORING_OP_SETXATTR,
|
||||
IORING_OP_FGETXATTR,
|
||||
IORING_OP_GETXATTR,
|
||||
IORING_OP_SOCKET,
|
||||
IORING_OP_URING_CMD,
|
||||
IORING_OP_LAST,
|
||||
};
|
||||
#define IORING_FSYNC_DATASYNC (1U << 0)
|
||||
|
@ -145,13 +167,20 @@ enum {
|
|||
#define IORING_POLL_ADD_MULTI (1U << 0)
|
||||
#define IORING_POLL_UPDATE_EVENTS (1U << 1)
|
||||
#define IORING_POLL_UPDATE_USER_DATA (1U << 2)
|
||||
#define IORING_ASYNC_CANCEL_ALL (1U << 0)
|
||||
#define IORING_ASYNC_CANCEL_FD (1U << 1)
|
||||
#define IORING_ASYNC_CANCEL_ANY (1U << 2)
|
||||
#define IORING_RECVSEND_POLL_FIRST (1U << 0)
|
||||
#define IORING_ACCEPT_MULTISHOT (1U << 0)
|
||||
struct io_uring_cqe {
|
||||
__u64 user_data;
|
||||
__s32 res;
|
||||
__u32 flags;
|
||||
__u64 big_cqe[];
|
||||
};
|
||||
#define IORING_CQE_F_BUFFER (1U << 0)
|
||||
#define IORING_CQE_F_MORE (1U << 1)
|
||||
#define IORING_CQE_F_SOCK_NONEMPTY (1U << 2)
|
||||
enum {
|
||||
IORING_CQE_BUFFER_SHIFT = 16,
|
||||
};
|
||||
|
@ -171,6 +200,7 @@ struct io_sqring_offsets {
|
|||
};
|
||||
#define IORING_SQ_NEED_WAKEUP (1U << 0)
|
||||
#define IORING_SQ_CQ_OVERFLOW (1U << 1)
|
||||
#define IORING_SQ_TASKRUN (1U << 2)
|
||||
struct io_cqring_offsets {
|
||||
__u32 head;
|
||||
__u32 tail;
|
||||
|
@ -236,6 +266,8 @@ enum {
|
|||
IORING_REGISTER_IOWQ_MAX_WORKERS = 19,
|
||||
IORING_REGISTER_RING_FDS = 20,
|
||||
IORING_UNREGISTER_RING_FDS = 21,
|
||||
IORING_REGISTER_PBUF_RING = 22,
|
||||
IORING_UNREGISTER_PBUF_RING = 23,
|
||||
IORING_REGISTER_LAST
|
||||
};
|
||||
enum {
|
||||
|
@ -247,9 +279,10 @@ struct io_uring_files_update {
|
|||
__u32 resv;
|
||||
__aligned_u64 fds;
|
||||
};
|
||||
#define IORING_RSRC_REGISTER_SPARSE (1U << 0)
|
||||
struct io_uring_rsrc_register {
|
||||
__u32 nr;
|
||||
__u32 resv;
|
||||
__u32 flags;
|
||||
__u64 resv2;
|
||||
__aligned_u64 data;
|
||||
__aligned_u64 tags;
|
||||
|
@ -292,6 +325,30 @@ struct io_uring_restriction {
|
|||
__u8 resv;
|
||||
__u32 resv2[3];
|
||||
};
|
||||
struct io_uring_buf {
|
||||
__u64 addr;
|
||||
__u32 len;
|
||||
__u16 bid;
|
||||
__u16 resv;
|
||||
};
|
||||
struct io_uring_buf_ring {
|
||||
union {
|
||||
struct {
|
||||
__u64 resv1;
|
||||
__u32 resv2;
|
||||
__u16 resv3;
|
||||
__u16 tail;
|
||||
};
|
||||
struct io_uring_buf bufs[0];
|
||||
};
|
||||
};
|
||||
struct io_uring_buf_reg {
|
||||
__u64 ring_addr;
|
||||
__u32 ring_entries;
|
||||
__u16 bgid;
|
||||
__u16 pad;
|
||||
__u64 resv[3];
|
||||
};
|
||||
enum {
|
||||
IORING_RESTRICTION_REGISTER_OP = 0,
|
||||
IORING_RESTRICTION_SQE_OP = 1,
|
||||
|
|
|
@ -148,6 +148,7 @@ enum {
|
|||
DEVCONF_IOAM6_ID,
|
||||
DEVCONF_IOAM6_ID_WIDE,
|
||||
DEVCONF_NDISC_EVICT_NOCARRIER,
|
||||
DEVCONF_ACCEPT_UNTRACKED_NA,
|
||||
DEVCONF_MAX
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#define KEXEC_ARCH_MIPS (8 << 16)
|
||||
#define KEXEC_ARCH_AARCH64 (183 << 16)
|
||||
#define KEXEC_ARCH_RISCV (243 << 16)
|
||||
#define KEXEC_ARCH_LOONGARCH (258 << 16)
|
||||
#define KEXEC_SEGMENT_MAX 16
|
||||
struct kexec_segment {
|
||||
const void * buf;
|
||||
|
|
|
@ -336,6 +336,9 @@ struct kvm_run {
|
|||
#define KVM_SYSTEM_EVENT_SHUTDOWN 1
|
||||
#define KVM_SYSTEM_EVENT_RESET 2
|
||||
#define KVM_SYSTEM_EVENT_CRASH 3
|
||||
#define KVM_SYSTEM_EVENT_WAKEUP 4
|
||||
#define KVM_SYSTEM_EVENT_SUSPEND 5
|
||||
#define KVM_SYSTEM_EVENT_SEV_TERM 6
|
||||
__u32 type;
|
||||
__u32 ndata;
|
||||
union {
|
||||
|
@ -482,6 +485,7 @@ struct kvm_vapic_addr {
|
|||
#define KVM_MP_STATE_OPERATING 7
|
||||
#define KVM_MP_STATE_LOAD 8
|
||||
#define KVM_MP_STATE_AP_RESET_HOLD 9
|
||||
#define KVM_MP_STATE_SUSPENDED 10
|
||||
struct kvm_mp_state {
|
||||
__u32 mp_state;
|
||||
};
|
||||
|
@ -903,7 +907,9 @@ struct kvm_ppc_resize_hpt {
|
|||
#define KVM_CAP_S390_MEM_OP_EXTENSION 211
|
||||
#define KVM_CAP_PMU_CAPABILITY 212
|
||||
#define KVM_CAP_DISABLE_QUIRKS2 213
|
||||
#define KVM_CAP_VM_TSC_CONTROL 214
|
||||
#define KVM_CAP_SYSTEM_EVENT_DATA 215
|
||||
#define KVM_CAP_ARM_SYSTEM_SUSPEND 216
|
||||
#ifdef KVM_CAP_IRQ_ROUTING
|
||||
struct kvm_irq_routing_irqchip {
|
||||
__u32 irqchip;
|
||||
|
@ -977,6 +983,7 @@ struct kvm_x86_mce {
|
|||
#define KVM_XEN_HVM_CONFIG_SHARED_INFO (1 << 2)
|
||||
#define KVM_XEN_HVM_CONFIG_RUNSTATE (1 << 3)
|
||||
#define KVM_XEN_HVM_CONFIG_EVTCHN_2LEVEL (1 << 4)
|
||||
#define KVM_XEN_HVM_CONFIG_EVTCHN_SEND (1 << 5)
|
||||
struct kvm_xen_hvm_config {
|
||||
__u32 flags;
|
||||
__u32 msr;
|
||||
|
@ -1287,14 +1294,38 @@ struct kvm_xen_hvm_attr {
|
|||
struct {
|
||||
__u64 gfn;
|
||||
} shared_info;
|
||||
struct {
|
||||
__u32 send_port;
|
||||
__u32 type;
|
||||
__u32 flags;
|
||||
#define KVM_XEN_EVTCHN_DEASSIGN (1 << 0)
|
||||
#define KVM_XEN_EVTCHN_UPDATE (1 << 1)
|
||||
#define KVM_XEN_EVTCHN_RESET (1 << 2)
|
||||
union {
|
||||
struct {
|
||||
__u32 port;
|
||||
__u32 vcpu;
|
||||
__u32 priority;
|
||||
} port;
|
||||
struct {
|
||||
__u32 port;
|
||||
__s32 fd;
|
||||
} eventfd;
|
||||
__u32 padding[4];
|
||||
} deliver;
|
||||
} evtchn;
|
||||
__u32 xen_version;
|
||||
__u64 pad[8];
|
||||
} u;
|
||||
};
|
||||
#define KVM_XEN_ATTR_TYPE_LONG_MODE 0x0
|
||||
#define KVM_XEN_ATTR_TYPE_SHARED_INFO 0x1
|
||||
#define KVM_XEN_ATTR_TYPE_UPCALL_VECTOR 0x2
|
||||
#define KVM_XEN_ATTR_TYPE_EVTCHN 0x3
|
||||
#define KVM_XEN_ATTR_TYPE_XEN_VERSION 0x4
|
||||
#define KVM_XEN_VCPU_GET_ATTR _IOWR(KVMIO, 0xca, struct kvm_xen_vcpu_attr)
|
||||
#define KVM_XEN_VCPU_SET_ATTR _IOW(KVMIO, 0xcb, struct kvm_xen_vcpu_attr)
|
||||
#define KVM_XEN_HVM_EVTCHN_SEND _IOW(KVMIO, 0xd0, struct kvm_irq_routing_xen_evtchn)
|
||||
#define KVM_GET_SREGS2 _IOR(KVMIO, 0xcc, struct kvm_sregs2)
|
||||
#define KVM_SET_SREGS2 _IOW(KVMIO, 0xcd, struct kvm_sregs2)
|
||||
struct kvm_xen_vcpu_attr {
|
||||
|
@ -1311,6 +1342,13 @@ struct kvm_xen_vcpu_attr {
|
|||
__u64 time_blocked;
|
||||
__u64 time_offline;
|
||||
} runstate;
|
||||
__u32 vcpu_id;
|
||||
struct {
|
||||
__u32 port;
|
||||
__u32 priority;
|
||||
__u64 expires_ns;
|
||||
} timer;
|
||||
__u8 vector;
|
||||
} u;
|
||||
};
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_VCPU_INFO 0x0
|
||||
|
@ -1319,6 +1357,9 @@ struct kvm_xen_vcpu_attr {
|
|||
#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_CURRENT 0x3
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_DATA 0x4
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADJUST 0x5
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID 0x6
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_TIMER 0x7
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_UPCALL_VECTOR 0x8
|
||||
enum sev_cmd_id {
|
||||
KVM_SEV_INIT = 0,
|
||||
KVM_SEV_ES_INIT,
|
||||
|
@ -1517,7 +1558,8 @@ struct kvm_stats_header {
|
|||
#define KVM_STATS_UNIT_BYTES (0x1 << KVM_STATS_UNIT_SHIFT)
|
||||
#define KVM_STATS_UNIT_SECONDS (0x2 << KVM_STATS_UNIT_SHIFT)
|
||||
#define KVM_STATS_UNIT_CYCLES (0x3 << KVM_STATS_UNIT_SHIFT)
|
||||
#define KVM_STATS_UNIT_MAX KVM_STATS_UNIT_CYCLES
|
||||
#define KVM_STATS_UNIT_BOOLEAN (0x4 << KVM_STATS_UNIT_SHIFT)
|
||||
#define KVM_STATS_UNIT_MAX KVM_STATS_UNIT_BOOLEAN
|
||||
#define KVM_STATS_BASE_SHIFT 8
|
||||
#define KVM_STATS_BASE_MASK (0xF << KVM_STATS_BASE_SHIFT)
|
||||
#define KVM_STATS_BASE_POW10 (0x0 << KVM_STATS_BASE_SHIFT)
|
||||
|
|
|
@ -43,4 +43,5 @@ struct landlock_path_beneath_attr {
|
|||
#define LANDLOCK_ACCESS_FS_MAKE_FIFO (1ULL << 10)
|
||||
#define LANDLOCK_ACCESS_FS_MAKE_BLOCK (1ULL << 11)
|
||||
#define LANDLOCK_ACCESS_FS_MAKE_SYM (1ULL << 12)
|
||||
#define LANDLOCK_ACCESS_FS_REFER (1ULL << 13)
|
||||
#endif
|
||||
|
|
|
@ -73,6 +73,8 @@
|
|||
#define LIRC_CAN_USE_WIDEBAND_RECEIVER 0x04000000
|
||||
#define LIRC_CAN_SEND(x) ((x) & LIRC_CAN_SEND_MASK)
|
||||
#define LIRC_CAN_REC(x) ((x) & LIRC_CAN_REC_MASK)
|
||||
#define LIRC_CAN_SET_REC_FILTER 0
|
||||
#define LIRC_CAN_NOTIFY_DECODE 0
|
||||
#define LIRC_GET_FEATURES _IOR('i', 0x00000000, __u32)
|
||||
#define LIRC_GET_SEND_MODE _IOR('i', 0x00000001, __u32)
|
||||
#define LIRC_GET_REC_MODE _IOR('i', 0x00000002, __u32)
|
||||
|
|
|
@ -66,6 +66,19 @@
|
|||
#define MDIO_PCS_10GBRT_STAT2 33
|
||||
#define MDIO_AN_10GBT_CTRL 32
|
||||
#define MDIO_AN_10GBT_STAT 33
|
||||
#define MDIO_B10L_PMA_CTRL 2294
|
||||
#define MDIO_PMA_10T1L_STAT 2295
|
||||
#define MDIO_PCS_10T1L_CTRL 2278
|
||||
#define MDIO_PMA_PMD_BT1 18
|
||||
#define MDIO_AN_T1_CTRL 512
|
||||
#define MDIO_AN_T1_STAT 513
|
||||
#define MDIO_AN_T1_ADV_L 514
|
||||
#define MDIO_AN_T1_ADV_M 515
|
||||
#define MDIO_AN_T1_ADV_H 516
|
||||
#define MDIO_AN_T1_LP_L 517
|
||||
#define MDIO_AN_T1_LP_M 518
|
||||
#define MDIO_AN_T1_LP_H 519
|
||||
#define MDIO_PMA_PMD_BT1_CTRL 2100
|
||||
#define MDIO_PMA_LASI_RXCTRL 0x9000
|
||||
#define MDIO_PMA_LASI_TXCTRL 0x9001
|
||||
#define MDIO_PMA_LASI_CTRL 0x9002
|
||||
|
@ -139,6 +152,7 @@
|
|||
#define MDIO_PMA_CTRL2_10BT 0x000f
|
||||
#define MDIO_PMA_CTRL2_2_5GBT 0x0030
|
||||
#define MDIO_PMA_CTRL2_5GBT 0x0031
|
||||
#define MDIO_PMA_CTRL2_BASET1 0x003D
|
||||
#define MDIO_PCS_CTRL2_TYPE 0x0003
|
||||
#define MDIO_PCS_CTRL2_10GBR 0x0000
|
||||
#define MDIO_PCS_CTRL2_10GBX 0x0001
|
||||
|
@ -184,6 +198,7 @@
|
|||
#define MDIO_PMA_EXTABLE_1000BKX 0x0040
|
||||
#define MDIO_PMA_EXTABLE_100BTX 0x0080
|
||||
#define MDIO_PMA_EXTABLE_10BT 0x0100
|
||||
#define MDIO_PMA_EXTABLE_BT1 0x0800
|
||||
#define MDIO_PMA_EXTABLE_NBT 0x4000
|
||||
#define MDIO_PHYXS_LNSTAT_SYNC0 0x0001
|
||||
#define MDIO_PHYXS_LNSTAT_SYNC1 0x0002
|
||||
|
@ -218,6 +233,44 @@
|
|||
#define MDIO_AN_10GBT_STAT_LOCOK 0x2000
|
||||
#define MDIO_AN_10GBT_STAT_MS 0x4000
|
||||
#define MDIO_AN_10GBT_STAT_MSFLT 0x8000
|
||||
#define MDIO_PMA_10T1L_CTRL_LB_EN 0x0001
|
||||
#define MDIO_PMA_10T1L_CTRL_EEE_EN 0x0400
|
||||
#define MDIO_PMA_10T1L_CTRL_LOW_POWER 0x0800
|
||||
#define MDIO_PMA_10T1L_CTRL_2V4_EN 0x1000
|
||||
#define MDIO_PMA_10T1L_CTRL_TX_DIS 0x4000
|
||||
#define MDIO_PMA_10T1L_CTRL_PMA_RST 0x8000
|
||||
#define MDIO_PMA_10T1L_STAT_LINK 0x0001
|
||||
#define MDIO_PMA_10T1L_STAT_FAULT 0x0002
|
||||
#define MDIO_PMA_10T1L_STAT_POLARITY 0x0004
|
||||
#define MDIO_PMA_10T1L_STAT_RECV_FAULT 0x0200
|
||||
#define MDIO_PMA_10T1L_STAT_EEE 0x0400
|
||||
#define MDIO_PMA_10T1L_STAT_LOW_POWER 0x0800
|
||||
#define MDIO_PMA_10T1L_STAT_2V4_ABLE 0x1000
|
||||
#define MDIO_PMA_10T1L_STAT_LB_ABLE 0x2000
|
||||
#define MDIO_PCS_10T1L_CTRL_LB 0x4000
|
||||
#define MDIO_PCS_10T1L_CTRL_RESET 0x8000
|
||||
#define MDIO_PMA_PMD_BT1_B10L_ABLE 0x0004
|
||||
#define MDIO_AN_T1_ADV_L_PAUSE_CAP ADVERTISE_PAUSE_CAP
|
||||
#define MDIO_AN_T1_ADV_L_PAUSE_ASYM ADVERTISE_PAUSE_ASYM
|
||||
#define MDIO_AN_T1_ADV_L_FORCE_MS 0x1000
|
||||
#define MDIO_AN_T1_ADV_L_REMOTE_FAULT ADVERTISE_RFAULT
|
||||
#define MDIO_AN_T1_ADV_L_ACK ADVERTISE_LPACK
|
||||
#define MDIO_AN_T1_ADV_L_NEXT_PAGE_REQ ADVERTISE_NPAGE
|
||||
#define MDIO_AN_T1_ADV_M_B10L 0x4000
|
||||
#define MDIO_AN_T1_ADV_M_MST 0x0010
|
||||
#define MDIO_AN_T1_ADV_H_10L_TX_HI_REQ 0x1000
|
||||
#define MDIO_AN_T1_ADV_H_10L_TX_HI 0x2000
|
||||
#define MDIO_AN_T1_LP_L_PAUSE_CAP LPA_PAUSE_CAP
|
||||
#define MDIO_AN_T1_LP_L_PAUSE_ASYM LPA_PAUSE_ASYM
|
||||
#define MDIO_AN_T1_LP_L_FORCE_MS 0x1000
|
||||
#define MDIO_AN_T1_LP_L_REMOTE_FAULT LPA_RFAULT
|
||||
#define MDIO_AN_T1_LP_L_ACK LPA_LPACK
|
||||
#define MDIO_AN_T1_LP_L_NEXT_PAGE_REQ LPA_NPAGE
|
||||
#define MDIO_AN_T1_LP_M_MST 0x0010
|
||||
#define MDIO_AN_T1_LP_M_B10L 0x4000
|
||||
#define MDIO_AN_T1_LP_H_10L_TX_HI_REQ 0x1000
|
||||
#define MDIO_AN_T1_LP_H_10L_TX_HI 0x2000
|
||||
#define MDIO_PMA_PMD_BT1_CTRL_CFG_MST 0x4000
|
||||
#define MDIO_AN_EEE_ADV_100TX 0x0002
|
||||
#define MDIO_AN_EEE_ADV_1000T 0x0004
|
||||
#define MDIO_EEE_100TX MDIO_AN_EEE_ADV_100TX
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
****************************************************************************/
|
||||
#ifndef __LINUX_MEDIA_H
|
||||
#define __LINUX_MEDIA_H
|
||||
#include <stdint.h>
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
struct media_device_info {
|
||||
|
@ -117,6 +116,7 @@ struct media_pad_desc {
|
|||
#define MEDIA_LNK_FL_LINK_TYPE (0xf << 28)
|
||||
#define MEDIA_LNK_FL_DATA_LINK (0 << 28)
|
||||
#define MEDIA_LNK_FL_INTERFACE_LINK (1 << 28)
|
||||
#define MEDIA_LNK_FL_ANCILLARY_LINK (2 << 28)
|
||||
struct media_link_desc {
|
||||
struct media_pad_desc source;
|
||||
struct media_pad_desc sink;
|
||||
|
|
|
@ -18,12 +18,13 @@
|
|||
****************************************************************************/
|
||||
#ifndef _UAPI_MPTCP_H
|
||||
#define _UAPI_MPTCP_H
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/const.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/in.h>
|
||||
#include <linux/in6.h>
|
||||
#include <linux/socket.h>
|
||||
#include <sys/socket.h>
|
||||
#define MPTCP_SUBFLOW_FLAG_MCAP_REM _BITUL(0)
|
||||
#define MPTCP_SUBFLOW_FLAG_MCAP_LOC _BITUL(1)
|
||||
#define MPTCP_SUBFLOW_FLAG_JOIN_REM _BITUL(2)
|
||||
|
@ -58,6 +59,9 @@ enum {
|
|||
MPTCP_PM_ATTR_ADDR,
|
||||
MPTCP_PM_ATTR_RCV_ADD_ADDRS,
|
||||
MPTCP_PM_ATTR_SUBFLOWS,
|
||||
MPTCP_PM_ATTR_TOKEN,
|
||||
MPTCP_PM_ATTR_LOC_ID,
|
||||
MPTCP_PM_ATTR_ADDR_REMOTE,
|
||||
__MPTCP_PM_ATTR_MAX
|
||||
};
|
||||
#define MPTCP_PM_ATTR_MAX (__MPTCP_PM_ATTR_MAX - 1)
|
||||
|
@ -87,6 +91,10 @@ enum {
|
|||
MPTCP_PM_CMD_SET_LIMITS,
|
||||
MPTCP_PM_CMD_GET_LIMITS,
|
||||
MPTCP_PM_CMD_SET_FLAGS,
|
||||
MPTCP_PM_CMD_ANNOUNCE,
|
||||
MPTCP_PM_CMD_REMOVE,
|
||||
MPTCP_PM_CMD_SUBFLOW_CREATE,
|
||||
MPTCP_PM_CMD_SUBFLOW_DESTROY,
|
||||
__MPTCP_PM_CMD_AFTER_LAST
|
||||
};
|
||||
#define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
|
||||
|
@ -137,6 +145,7 @@ enum mptcp_event_attr {
|
|||
MPTCP_ATTR_IF_IDX,
|
||||
MPTCP_ATTR_RESET_REASON,
|
||||
MPTCP_ATTR_RESET_FLAGS,
|
||||
MPTCP_ATTR_SERVER_SIDE,
|
||||
__MPTCP_ATTR_AFTER_LAST
|
||||
};
|
||||
#define MPTCP_ATTR_MAX (__MPTCP_ATTR_AFTER_LAST - 1)
|
||||
|
|
|
@ -46,6 +46,8 @@ enum {
|
|||
NDA_NH_ID,
|
||||
NDA_FDB_EXT_ATTRS,
|
||||
NDA_FLAGS_EXT,
|
||||
NDA_NDM_STATE_MASK,
|
||||
NDA_NDM_FLAGS_MASK,
|
||||
__NDA_MAX
|
||||
};
|
||||
#define NDA_MAX (__NDA_MAX - 1)
|
||||
|
|
|
@ -73,6 +73,7 @@ struct nlmsghdr {
|
|||
#define NLM_F_CREATE 0x400
|
||||
#define NLM_F_APPEND 0x800
|
||||
#define NLM_F_NONREC 0x100
|
||||
#define NLM_F_BULK 0x200
|
||||
#define NLM_F_CAPPED 0x100
|
||||
#define NLM_F_ACK_TLVS 0x200
|
||||
#define NLMSG_ALIGNTO 4U
|
||||
|
|
|
@ -512,6 +512,7 @@ enum nl80211_attrs {
|
|||
NL80211_ATTR_RADAR_BACKGROUND,
|
||||
NL80211_ATTR_AP_SETTINGS_FLAGS,
|
||||
NL80211_ATTR_EHT_CAPABILITY,
|
||||
NL80211_ATTR_DISABLE_EHT,
|
||||
__NL80211_ATTR_AFTER_LAST,
|
||||
NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
|
||||
NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
|
||||
|
|
|
@ -77,6 +77,26 @@ struct nvme_passthru_cmd64 {
|
|||
__u32 rsvd2;
|
||||
__u64 result;
|
||||
};
|
||||
struct nvme_uring_cmd {
|
||||
__u8 opcode;
|
||||
__u8 flags;
|
||||
__u16 rsvd1;
|
||||
__u32 nsid;
|
||||
__u32 cdw2;
|
||||
__u32 cdw3;
|
||||
__u64 metadata;
|
||||
__u64 addr;
|
||||
__u32 metadata_len;
|
||||
__u32 data_len;
|
||||
__u32 cdw10;
|
||||
__u32 cdw11;
|
||||
__u32 cdw12;
|
||||
__u32 cdw13;
|
||||
__u32 cdw14;
|
||||
__u32 cdw15;
|
||||
__u32 timeout_ms;
|
||||
__u32 rsvd2;
|
||||
};
|
||||
#define nvme_admin_cmd nvme_passthru_cmd
|
||||
#define NVME_IOCTL_ID _IO('N', 0x40)
|
||||
#define NVME_IOCTL_ADMIN_CMD _IOWR('N', 0x41, struct nvme_admin_cmd)
|
||||
|
@ -88,4 +108,8 @@ struct nvme_passthru_cmd64 {
|
|||
#define NVME_IOCTL_ADMIN64_CMD _IOWR('N', 0x47, struct nvme_passthru_cmd64)
|
||||
#define NVME_IOCTL_IO64_CMD _IOWR('N', 0x48, struct nvme_passthru_cmd64)
|
||||
#define NVME_IOCTL_IO64_CMD_VEC _IOWR('N', 0x49, struct nvme_passthru_cmd64)
|
||||
#define NVME_URING_CMD_IO _IOWR('N', 0x80, struct nvme_uring_cmd)
|
||||
#define NVME_URING_CMD_IO_VEC _IOWR('N', 0x81, struct nvme_uring_cmd)
|
||||
#define NVME_URING_CMD_ADMIN _IOWR('N', 0x82, struct nvme_uring_cmd)
|
||||
#define NVME_URING_CMD_ADMIN_VEC _IOWR('N', 0x83, struct nvme_uring_cmd)
|
||||
#endif
|
||||
|
|
|
@ -525,6 +525,7 @@
|
|||
#define PCI_EXP_SLTCTL_PWR_OFF 0x0400
|
||||
#define PCI_EXP_SLTCTL_EIC 0x0800
|
||||
#define PCI_EXP_SLTCTL_DLLSCE 0x1000
|
||||
#define PCI_EXP_SLTCTL_ASPL_DISABLE 0x2000
|
||||
#define PCI_EXP_SLTCTL_IBPD_DISABLE 0x4000
|
||||
#define PCI_EXP_SLTSTA 0x1a
|
||||
#define PCI_EXP_SLTSTA_ABP 0x0001
|
||||
|
|
|
@ -459,6 +459,7 @@ enum {
|
|||
TCA_FLOWER_KEY_MPLS_OPTS,
|
||||
TCA_FLOWER_KEY_HASH,
|
||||
TCA_FLOWER_KEY_HASH_MASK,
|
||||
TCA_FLOWER_KEY_NUM_OF_VLANS,
|
||||
__TCA_FLOWER_MAX,
|
||||
};
|
||||
#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
|
||||
|
|
|
@ -179,6 +179,11 @@ struct prctl_mm_map {
|
|||
#define PR_SCHED_CORE_SCOPE_THREAD 0
|
||||
#define PR_SCHED_CORE_SCOPE_THREAD_GROUP 1
|
||||
#define PR_SCHED_CORE_SCOPE_PROCESS_GROUP 2
|
||||
#define PR_SME_SET_VL 63
|
||||
#define PR_SME_SET_VL_ONEXEC (1 << 18)
|
||||
#define PR_SME_GET_VL 64
|
||||
#define PR_SME_VL_LEN_MASK 0xffff
|
||||
#define PR_SME_VL_INHERIT (1 << 17)
|
||||
#define PR_SET_VMA 0x53564d41
|
||||
#define PR_SET_VMA_ANON_NAME 0
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#define SECCOMP_FILTER_FLAG_SPEC_ALLOW (1UL << 2)
|
||||
#define SECCOMP_FILTER_FLAG_NEW_LISTENER (1UL << 3)
|
||||
#define SECCOMP_FILTER_FLAG_TSYNC_ESRCH (1UL << 4)
|
||||
#define SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV (1UL << 5)
|
||||
#define SECCOMP_RET_KILL_PROCESS 0x80000000U
|
||||
#define SECCOMP_RET_KILL_THREAD 0x00000000U
|
||||
#define SECCOMP_RET_KILL SECCOMP_RET_KILL_THREAD
|
||||
|
|
56
libc/kernel/uapi/linux/sev-guest.h
Normal file
56
libc/kernel/uapi/linux/sev-guest.h
Normal file
|
@ -0,0 +1,56 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_SEV_GUEST_H_
|
||||
#define __UAPI_LINUX_SEV_GUEST_H_
|
||||
#include <linux/types.h>
|
||||
struct snp_report_req {
|
||||
__u8 user_data[64];
|
||||
__u32 vmpl;
|
||||
__u8 rsvd[28];
|
||||
};
|
||||
struct snp_report_resp {
|
||||
__u8 data[4000];
|
||||
};
|
||||
struct snp_derived_key_req {
|
||||
__u32 root_key_select;
|
||||
__u32 rsvd;
|
||||
__u64 guest_field_select;
|
||||
__u32 vmpl;
|
||||
__u32 guest_svn;
|
||||
__u64 tcb_version;
|
||||
};
|
||||
struct snp_derived_key_resp {
|
||||
__u8 data[64];
|
||||
};
|
||||
struct snp_guest_request_ioctl {
|
||||
__u8 msg_version;
|
||||
__u64 req_data;
|
||||
__u64 resp_data;
|
||||
__u64 fw_err;
|
||||
};
|
||||
struct snp_ext_report_req {
|
||||
struct snp_report_req data;
|
||||
__u64 certs_address;
|
||||
__u32 certs_len;
|
||||
};
|
||||
#define SNP_GUEST_REQ_IOC_TYPE 'S'
|
||||
#define SNP_GET_REPORT _IOWR(SNP_GUEST_REQ_IOC_TYPE, 0x0, struct snp_guest_request_ioctl)
|
||||
#define SNP_GET_DERIVED_KEY _IOWR(SNP_GUEST_REQ_IOC_TYPE, 0x1, struct snp_guest_request_ioctl)
|
||||
#define SNP_GET_EXT_REPORT _IOWR(SNP_GUEST_REQ_IOC_TYPE, 0x2, struct snp_guest_request_ioctl)
|
||||
#endif
|
|
@ -32,7 +32,7 @@ struct __kernel_sockaddr_storage {
|
|||
#define SOCK_SNDBUF_LOCK 1
|
||||
#define SOCK_RCVBUF_LOCK 2
|
||||
#define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK)
|
||||
#define SOCK_TXREHASH_DEFAULT ((u8) - 1)
|
||||
#define SOCK_TXREHASH_DEFAULT 255
|
||||
#define SOCK_TXREHASH_DISABLED 0
|
||||
#define SOCK_TXREHASH_ENABLED 1
|
||||
#endif
|
||||
|
|
|
@ -40,5 +40,6 @@
|
|||
#define SPI_TX_OCTAL _BITUL(13)
|
||||
#define SPI_RX_OCTAL _BITUL(14)
|
||||
#define SPI_3WIRE_HIZ _BITUL(15)
|
||||
#define SPI_MODE_USER_MASK (_BITUL(16) - 1)
|
||||
#define SPI_RX_CPHA_FLIP _BITUL(16)
|
||||
#define SPI_MODE_USER_MASK (_BITUL(17) - 1)
|
||||
#endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#ifndef _LINUX_TASKSTATS_H
|
||||
#define _LINUX_TASKSTATS_H
|
||||
#include <linux/types.h>
|
||||
#define TASKSTATS_VERSION 11
|
||||
#define TASKSTATS_VERSION 13
|
||||
#define TS_COMM_LEN 32
|
||||
struct taskstats {
|
||||
__u16 version;
|
||||
|
@ -71,6 +71,12 @@ struct taskstats {
|
|||
__u64 ac_btime64;
|
||||
__u64 compact_count;
|
||||
__u64 compact_delay_total;
|
||||
__u32 ac_tgid;
|
||||
__u64 ac_tgetime __attribute__((aligned(8)));
|
||||
__u64 ac_exe_dev;
|
||||
__u64 ac_exe_inode;
|
||||
__u64 wpcopy_count;
|
||||
__u64 wpcopy_delay_total;
|
||||
};
|
||||
enum {
|
||||
TASKSTATS_CMD_UNSPEC = 0,
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#define SKBEDIT_F_PTYPE 0x8
|
||||
#define SKBEDIT_F_MASK 0x10
|
||||
#define SKBEDIT_F_INHERITDSFIELD 0x20
|
||||
#define SKBEDIT_F_TXQ_SKBHASH 0x40
|
||||
struct tc_skbedit {
|
||||
tc_gen;
|
||||
};
|
||||
|
@ -39,6 +40,7 @@ enum {
|
|||
TCA_SKBEDIT_PTYPE,
|
||||
TCA_SKBEDIT_MASK,
|
||||
TCA_SKBEDIT_FLAGS,
|
||||
TCA_SKBEDIT_QUEUE_MAPPING_MAX,
|
||||
__TCA_SKBEDIT_MAX
|
||||
};
|
||||
#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#include <linux/types.h>
|
||||
#define TEE_IOC_MAGIC 0xa4
|
||||
#define TEE_IOC_BASE 0
|
||||
#define TEE_IOCTL_SHM_MAPPED 0x1
|
||||
#define TEE_IOCTL_SHM_DMA_BUF 0x2
|
||||
#define TEE_MAX_ARG_SIZE 1024
|
||||
#define TEE_GEN_CAP_GP (1 << 0)
|
||||
#define TEE_GEN_CAP_PRIVILEGED (1 << 1)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <linux/types.h>
|
||||
#define TLS_TX 1
|
||||
#define TLS_RX 2
|
||||
#define TLS_TX_ZEROCOPY_RO 3
|
||||
#define TLS_VERSION_MINOR(ver) ((ver) & 0xFF)
|
||||
#define TLS_VERSION_MAJOR(ver) (((ver) >> 8) & 0xFF)
|
||||
#define TLS_VERSION_NUMBER(id) ((((id ##_VERSION_MAJOR) & 0xFF) << 8) | ((id ##_VERSION_MINOR) & 0xFF))
|
||||
|
@ -120,6 +121,7 @@ enum {
|
|||
TLS_INFO_CIPHER,
|
||||
TLS_INFO_TXCONF,
|
||||
TLS_INFO_RXCONF,
|
||||
TLS_INFO_ZC_RO_TX,
|
||||
__TLS_INFO_MAX,
|
||||
};
|
||||
#define TLS_INFO_MAX (__TLS_INFO_MAX - 1)
|
||||
|
|
|
@ -48,5 +48,6 @@
|
|||
#define N_NULL 27
|
||||
#define N_MCTP 28
|
||||
#define N_DEVELOPMENT 29
|
||||
#define NR_LDISCS 30
|
||||
#define N_CAN327 30
|
||||
#define NR_LDISCS 31
|
||||
#endif
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#ifndef __ASSEMBLY__
|
||||
#include <linux/posix_types.h>
|
||||
#define __bitwise
|
||||
#define __bitwise__ __bitwise
|
||||
typedef __u16 __bitwise __le16;
|
||||
typedef __u16 __bitwise __be16;
|
||||
typedef __u32 __bitwise __le32;
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
#include <linux/types.h>
|
||||
#define UFFD_API ((__u64) 0xAA)
|
||||
#define UFFD_API_REGISTER_MODES (UFFDIO_REGISTER_MODE_MISSING | UFFDIO_REGISTER_MODE_WP | UFFDIO_REGISTER_MODE_MINOR)
|
||||
#define UFFD_API_FEATURES (UFFD_FEATURE_PAGEFAULT_FLAG_WP | UFFD_FEATURE_EVENT_FORK | UFFD_FEATURE_EVENT_REMAP | UFFD_FEATURE_EVENT_REMOVE | UFFD_FEATURE_EVENT_UNMAP | UFFD_FEATURE_MISSING_HUGETLBFS | UFFD_FEATURE_MISSING_SHMEM | UFFD_FEATURE_SIGBUS | UFFD_FEATURE_THREAD_ID | UFFD_FEATURE_MINOR_HUGETLBFS | UFFD_FEATURE_MINOR_SHMEM | UFFD_FEATURE_EXACT_ADDRESS)
|
||||
#define UFFD_API_FEATURES (UFFD_FEATURE_PAGEFAULT_FLAG_WP | UFFD_FEATURE_EVENT_FORK | UFFD_FEATURE_EVENT_REMAP | UFFD_FEATURE_EVENT_REMOVE | UFFD_FEATURE_EVENT_UNMAP | UFFD_FEATURE_MISSING_HUGETLBFS | UFFD_FEATURE_MISSING_SHMEM | UFFD_FEATURE_SIGBUS | UFFD_FEATURE_THREAD_ID | UFFD_FEATURE_MINOR_HUGETLBFS | UFFD_FEATURE_MINOR_SHMEM | UFFD_FEATURE_EXACT_ADDRESS | UFFD_FEATURE_WP_HUGETLBFS_SHMEM)
|
||||
#define UFFD_API_IOCTLS ((__u64) 1 << _UFFDIO_REGISTER | (__u64) 1 << _UFFDIO_UNREGISTER | (__u64) 1 << _UFFDIO_API)
|
||||
#define UFFD_API_RANGE_IOCTLS ((__u64) 1 << _UFFDIO_WAKE | (__u64) 1 << _UFFDIO_COPY | (__u64) 1 << _UFFDIO_ZEROPAGE | (__u64) 1 << _UFFDIO_WRITEPROTECT | (__u64) 1 << _UFFDIO_CONTINUE)
|
||||
#define UFFD_API_RANGE_IOCTLS_BASIC ((__u64) 1 << _UFFDIO_WAKE | (__u64) 1 << _UFFDIO_COPY | (__u64) 1 << _UFFDIO_CONTINUE)
|
||||
#define UFFD_API_RANGE_IOCTLS_BASIC ((__u64) 1 << _UFFDIO_WAKE | (__u64) 1 << _UFFDIO_COPY | (__u64) 1 << _UFFDIO_CONTINUE | (__u64) 1 << _UFFDIO_WRITEPROTECT)
|
||||
#define _UFFDIO_REGISTER (0x00)
|
||||
#define _UFFDIO_UNREGISTER (0x01)
|
||||
#define _UFFDIO_WAKE (0x02)
|
||||
|
@ -96,6 +96,7 @@ struct uffdio_api {
|
|||
#define UFFD_FEATURE_MINOR_HUGETLBFS (1 << 9)
|
||||
#define UFFD_FEATURE_MINOR_SHMEM (1 << 10)
|
||||
#define UFFD_FEATURE_EXACT_ADDRESS (1 << 11)
|
||||
#define UFFD_FEATURE_WP_HUGETLBFS_SHMEM (1 << 12)
|
||||
__u64 features;
|
||||
__u64 ioctls;
|
||||
};
|
||||
|
|
|
@ -330,6 +330,11 @@ enum v4l2_mpeg_video_multi_slice_mode {
|
|||
#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_INTRA_REFRESH_PERIOD_TYPE (V4L2_CID_CODEC_BASE + 237)
|
||||
enum v4l2_mpeg_video_intra_refresh_period_type {
|
||||
V4L2_CID_MPEG_VIDEO_INTRA_REFRESH_PERIOD_TYPE_RANDOM = 0,
|
||||
V4L2_CID_MPEG_VIDEO_INTRA_REFRESH_PERIOD_TYPE_CYCLIC = 1,
|
||||
};
|
||||
#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,
|
||||
|
|
|
@ -28,6 +28,7 @@ enum vdpa_command {
|
|||
VDPA_CMD_DEV_DEL,
|
||||
VDPA_CMD_DEV_GET,
|
||||
VDPA_CMD_DEV_CONFIG_GET,
|
||||
VDPA_CMD_DEV_VSTATS_GET,
|
||||
};
|
||||
enum vdpa_attr {
|
||||
VDPA_ATTR_UNSPEC,
|
||||
|
@ -48,6 +49,9 @@ enum vdpa_attr {
|
|||
VDPA_ATTR_DEV_NEGOTIATED_FEATURES,
|
||||
VDPA_ATTR_DEV_MGMTDEV_MAX_VQS,
|
||||
VDPA_ATTR_DEV_SUPPORTED_FEATURES,
|
||||
VDPA_ATTR_DEV_QUEUE_INDEX,
|
||||
VDPA_ATTR_DEV_VENDOR_ATTR_NAME,
|
||||
VDPA_ATTR_DEV_VENDOR_ATTR_VALUE,
|
||||
VDPA_ATTR_MAX,
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#define LINUX_VERSION_CODE 332288
|
||||
#define LINUX_VERSION_CODE 332544
|
||||
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
|
||||
#define LINUX_VERSION_MAJOR 5
|
||||
#define LINUX_VERSION_PATCHLEVEL 18
|
||||
#define LINUX_VERSION_PATCHLEVEL 19
|
||||
#define LINUX_VERSION_SUBLEVEL 0
|
||||
|
|
|
@ -43,8 +43,6 @@
|
|||
#define VHOST_SET_VRING_ERR _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file)
|
||||
#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x23, struct vhost_vring_state)
|
||||
#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x24, struct vhost_vring_state)
|
||||
#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1
|
||||
#define VHOST_BACKEND_F_IOTLB_BATCH 0x2
|
||||
#define VHOST_SET_BACKEND_FEATURES _IOW(VHOST_VIRTIO, 0x25, __u64)
|
||||
#define VHOST_GET_BACKEND_FEATURES _IOR(VHOST_VIRTIO, 0x26, __u64)
|
||||
#define VHOST_NET_SET_BACKEND _IOW(VHOST_VIRTIO, 0x30, struct vhost_vring_file)
|
||||
|
@ -66,4 +64,8 @@
|
|||
#define VHOST_VDPA_GET_IOVA_RANGE _IOR(VHOST_VIRTIO, 0x78, struct vhost_vdpa_iova_range)
|
||||
#define VHOST_VDPA_GET_CONFIG_SIZE _IOR(VHOST_VIRTIO, 0x79, __u32)
|
||||
#define VHOST_VDPA_GET_VQS_COUNT _IOR(VHOST_VIRTIO, 0x80, __u32)
|
||||
#define VHOST_VDPA_GET_GROUP_NUM _IOR(VHOST_VIRTIO, 0x81, __u32)
|
||||
#define VHOST_VDPA_GET_AS_NUM _IOR(VHOST_VIRTIO, 0x7A, unsigned int)
|
||||
#define VHOST_VDPA_GET_VRING_GROUP _IOWR(VHOST_VIRTIO, 0x7B, struct vhost_vring_state)
|
||||
#define VHOST_VDPA_SET_GROUP_ASID _IOW(VHOST_VIRTIO, 0x7C, struct vhost_vring_state)
|
||||
#endif
|
||||
|
|
|
@ -66,7 +66,7 @@ struct vhost_msg {
|
|||
};
|
||||
struct vhost_msg_v2 {
|
||||
__u32 type;
|
||||
__u32 reserved;
|
||||
__u32 asid;
|
||||
union {
|
||||
struct vhost_iotlb_msg iotlb;
|
||||
__u8 padding[64];
|
||||
|
@ -102,4 +102,7 @@ struct vhost_vdpa_iova_range {
|
|||
};
|
||||
#define VHOST_F_LOG_ALL 26
|
||||
#define VHOST_NET_F_VIRTIO_NET_HDR 27
|
||||
#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1
|
||||
#define VHOST_BACKEND_F_IOTLB_BATCH 0x2
|
||||
#define VHOST_BACKEND_F_IOTLB_ASID 0x3
|
||||
#endif
|
||||
|
|
|
@ -255,6 +255,7 @@ struct v4l2_pix_format {
|
|||
#define V4L2_PIX_FMT_Y16_BE v4l2_fourcc_be('Y', '1', '6', ' ')
|
||||
#define V4L2_PIX_FMT_Y10BPACK v4l2_fourcc('Y', '1', '0', 'B')
|
||||
#define V4L2_PIX_FMT_Y10P v4l2_fourcc('Y', '1', '0', 'P')
|
||||
#define V4L2_PIX_FMT_IPU3_Y10 v4l2_fourcc('i', 'p', '3', 'y')
|
||||
#define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P', 'A', 'L', '8')
|
||||
#define V4L2_PIX_FMT_UV8 v4l2_fourcc('U', 'V', '8', ' ')
|
||||
#define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y', 'U', 'Y', 'V')
|
||||
|
@ -401,6 +402,8 @@ struct v4l2_pix_format {
|
|||
#define V4L2_PIX_FMT_INZI v4l2_fourcc('I', 'N', 'Z', 'I')
|
||||
#define V4L2_PIX_FMT_CNF4 v4l2_fourcc('C', 'N', 'F', '4')
|
||||
#define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4')
|
||||
#define V4L2_PIX_FMT_QC08C v4l2_fourcc('Q', '0', '8', 'C')
|
||||
#define V4L2_PIX_FMT_QC10C v4l2_fourcc('Q', '1', '0', 'C')
|
||||
#define V4L2_PIX_FMT_IPU3_SBGGR10 v4l2_fourcc('i', 'p', '3', 'b')
|
||||
#define V4L2_PIX_FMT_IPU3_SGBRG10 v4l2_fourcc('i', 'p', '3', 'g')
|
||||
#define V4L2_PIX_FMT_IPU3_SGRBG10 v4l2_fourcc('i', 'p', '3', 'G')
|
||||
|
|
|
@ -270,6 +270,10 @@ enum hl_server_type {
|
|||
#define HL_INFO_LAST_ERR_OPEN_DEV_TIME 23
|
||||
#define HL_INFO_CS_TIMEOUT_EVENT 24
|
||||
#define HL_INFO_RAZWI_EVENT 25
|
||||
#define HL_INFO_DEV_MEM_ALLOC_PAGE_SIZES 26
|
||||
#define HL_INFO_REGISTER_EVENTFD 28
|
||||
#define HL_INFO_UNREGISTER_EVENTFD 29
|
||||
#define HL_INFO_GET_EVENTS 30
|
||||
#define HL_INFO_VERSION_MAX_LEN 128
|
||||
#define HL_INFO_CARD_NAME_MAX_LEN 16
|
||||
struct hl_info_hw_ip_info {
|
||||
|
@ -298,6 +302,8 @@ struct hl_info_hw_ip_info {
|
|||
__u32 reserved3;
|
||||
__u16 number_of_user_interrupts;
|
||||
__u16 pad2;
|
||||
__u64 reserved4;
|
||||
__u64 device_mem_alloc_default_page_size;
|
||||
};
|
||||
struct hl_info_dram_usage {
|
||||
__u64 dram_free_mem;
|
||||
|
@ -357,6 +363,9 @@ struct hl_pll_frequency_info {
|
|||
struct hl_open_stats_info {
|
||||
__u64 open_counter;
|
||||
__u64 last_open_period_ms;
|
||||
__u8 is_compute_ctx_active;
|
||||
__u8 compute_ctx_in_release;
|
||||
__u8 pad[6];
|
||||
};
|
||||
struct hl_power_info {
|
||||
__u64 power;
|
||||
|
@ -399,6 +408,9 @@ struct hl_info_razwi_event {
|
|||
__u8 error_type;
|
||||
__u8 pad[2];
|
||||
};
|
||||
struct hl_info_dev_memalloc_page_sizes {
|
||||
__u64 page_order_bitmask;
|
||||
};
|
||||
enum gaudi_dcores {
|
||||
HL_GAUDI_WS_DCORE,
|
||||
HL_GAUDI_WN_DCORE,
|
||||
|
@ -414,6 +426,7 @@ struct hl_info_args {
|
|||
__u32 ctx_id;
|
||||
__u32 period_ms;
|
||||
__u32 pll_index;
|
||||
__u32 eventfd;
|
||||
};
|
||||
__u32 pad;
|
||||
};
|
||||
|
@ -573,6 +586,7 @@ union hl_wait_cs_args {
|
|||
#define HL_MEM_SHARED 0x2
|
||||
#define HL_MEM_USERPTR 0x4
|
||||
#define HL_MEM_FORCE_HINT 0x8
|
||||
#define HL_MEM_PREFETCH 0x40
|
||||
struct hl_mem_in {
|
||||
union {
|
||||
struct {
|
||||
|
@ -675,6 +689,7 @@ struct hl_debug_args {
|
|||
__u32 enable;
|
||||
__u32 ctx_id;
|
||||
};
|
||||
#define HL_NOTIFIER_EVENT_TPC_ASSERT (1 << 0)
|
||||
#define HL_IOCTL_INFO _IOWR('H', 0x01, struct hl_info_args)
|
||||
#define HL_IOCTL_CB _IOWR('H', 0x02, union hl_cb_args)
|
||||
#define HL_IOCTL_CS _IOWR('H', 0x03, union hl_cs_args)
|
||||
|
|
|
@ -1079,4 +1079,37 @@ struct ib_uverbs_ex_modify_cq {
|
|||
__u32 reserved;
|
||||
};
|
||||
#define IB_DEVICE_NAME_MAX 64
|
||||
enum ib_uverbs_device_cap_flags {
|
||||
IB_UVERBS_DEVICE_RESIZE_MAX_WR = 1 << 0,
|
||||
IB_UVERBS_DEVICE_BAD_PKEY_CNTR = 1 << 1,
|
||||
IB_UVERBS_DEVICE_BAD_QKEY_CNTR = 1 << 2,
|
||||
IB_UVERBS_DEVICE_RAW_MULTI = 1 << 3,
|
||||
IB_UVERBS_DEVICE_AUTO_PATH_MIG = 1 << 4,
|
||||
IB_UVERBS_DEVICE_CHANGE_PHY_PORT = 1 << 5,
|
||||
IB_UVERBS_DEVICE_UD_AV_PORT_ENFORCE = 1 << 6,
|
||||
IB_UVERBS_DEVICE_CURR_QP_STATE_MOD = 1 << 7,
|
||||
IB_UVERBS_DEVICE_SHUTDOWN_PORT = 1 << 8,
|
||||
IB_UVERBS_DEVICE_PORT_ACTIVE_EVENT = 1 << 10,
|
||||
IB_UVERBS_DEVICE_SYS_IMAGE_GUID = 1 << 11,
|
||||
IB_UVERBS_DEVICE_RC_RNR_NAK_GEN = 1 << 12,
|
||||
IB_UVERBS_DEVICE_SRQ_RESIZE = 1 << 13,
|
||||
IB_UVERBS_DEVICE_N_NOTIFY_CQ = 1 << 14,
|
||||
IB_UVERBS_DEVICE_MEM_WINDOW = 1 << 17,
|
||||
IB_UVERBS_DEVICE_UD_IP_CSUM = 1 << 18,
|
||||
IB_UVERBS_DEVICE_XRC = 1 << 20,
|
||||
IB_UVERBS_DEVICE_MEM_MGT_EXTENSIONS = 1 << 21,
|
||||
IB_UVERBS_DEVICE_MEM_WINDOW_TYPE_2A = 1 << 23,
|
||||
IB_UVERBS_DEVICE_MEM_WINDOW_TYPE_2B = 1 << 24,
|
||||
IB_UVERBS_DEVICE_RC_IP_CSUM = 1 << 25,
|
||||
IB_UVERBS_DEVICE_RAW_IP_CSUM = 1 << 26,
|
||||
IB_UVERBS_DEVICE_MANAGED_FLOW_STEERING = 1 << 29,
|
||||
IB_UVERBS_DEVICE_RAW_SCATTER_FCS = 1ULL << 34,
|
||||
IB_UVERBS_DEVICE_PCI_WRITE_END_PADDING = 1ULL << 36,
|
||||
};
|
||||
enum ib_uverbs_raw_packet_caps {
|
||||
IB_UVERBS_RAW_PACKET_CAP_CVLAN_STRIPPING = 1 << 0,
|
||||
IB_UVERBS_RAW_PACKET_CAP_SCATTER_FCS = 1 << 1,
|
||||
IB_UVERBS_RAW_PACKET_CAP_IP_CSUM = 1 << 2,
|
||||
IB_UVERBS_RAW_PACKET_CAP_DELAY_DROP = 1 << 3,
|
||||
};
|
||||
#endif
|
||||
|
|
333
libc/kernel/uapi/scsi/scsi_bsg_mpi3mr.h
Normal file
333
libc/kernel/uapi/scsi/scsi_bsg_mpi3mr.h
Normal file
|
@ -0,0 +1,333 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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 SCSI_BSG_MPI3MR_H_INCLUDED
|
||||
#define SCSI_BSG_MPI3MR_H_INCLUDED
|
||||
#include <linux/types.h>
|
||||
#define MPI3MR_IOCTL_VERSION 0x06
|
||||
#define MPI3MR_APP_DEFAULT_TIMEOUT (60)
|
||||
#define MPI3MR_BSG_ADPTYPE_UNKNOWN 0
|
||||
#define MPI3MR_BSG_ADPTYPE_AVGFAMILY 1
|
||||
#define MPI3MR_BSG_ADPSTATE_UNKNOWN 0
|
||||
#define MPI3MR_BSG_ADPSTATE_OPERATIONAL 1
|
||||
#define MPI3MR_BSG_ADPSTATE_FAULT 2
|
||||
#define MPI3MR_BSG_ADPSTATE_IN_RESET 3
|
||||
#define MPI3MR_BSG_ADPSTATE_UNRECOVERABLE 4
|
||||
#define MPI3MR_BSG_ADPRESET_UNKNOWN 0
|
||||
#define MPI3MR_BSG_ADPRESET_SOFT 1
|
||||
#define MPI3MR_BSG_ADPRESET_DIAG_FAULT 2
|
||||
#define MPI3MR_BSG_LOGDATA_MAX_ENTRIES 400
|
||||
#define MPI3MR_BSG_LOGDATA_ENTRY_HEADER_SZ 4
|
||||
#define MPI3MR_DRVBSG_OPCODE_UNKNOWN 0
|
||||
#define MPI3MR_DRVBSG_OPCODE_ADPINFO 1
|
||||
#define MPI3MR_DRVBSG_OPCODE_ADPRESET 2
|
||||
#define MPI3MR_DRVBSG_OPCODE_ALLTGTDEVINFO 4
|
||||
#define MPI3MR_DRVBSG_OPCODE_GETCHGCNT 5
|
||||
#define MPI3MR_DRVBSG_OPCODE_LOGDATAENABLE 6
|
||||
#define MPI3MR_DRVBSG_OPCODE_PELENABLE 7
|
||||
#define MPI3MR_DRVBSG_OPCODE_GETLOGDATA 8
|
||||
#define MPI3MR_DRVBSG_OPCODE_QUERY_HDB 9
|
||||
#define MPI3MR_DRVBSG_OPCODE_REPOST_HDB 10
|
||||
#define MPI3MR_DRVBSG_OPCODE_UPLOAD_HDB 11
|
||||
#define MPI3MR_DRVBSG_OPCODE_REFRESH_HDB_TRIGGERS 12
|
||||
#define MPI3MR_BSG_BUFTYPE_UNKNOWN 0
|
||||
#define MPI3MR_BSG_BUFTYPE_RAIDMGMT_CMD 1
|
||||
#define MPI3MR_BSG_BUFTYPE_RAIDMGMT_RESP 2
|
||||
#define MPI3MR_BSG_BUFTYPE_DATA_IN 3
|
||||
#define MPI3MR_BSG_BUFTYPE_DATA_OUT 4
|
||||
#define MPI3MR_BSG_BUFTYPE_MPI_REPLY 5
|
||||
#define MPI3MR_BSG_BUFTYPE_ERR_RESPONSE 6
|
||||
#define MPI3MR_BSG_BUFTYPE_MPI_REQUEST 0xFE
|
||||
#define MPI3MR_BSG_MPI_REPLY_BUFTYPE_UNKNOWN 0
|
||||
#define MPI3MR_BSG_MPI_REPLY_BUFTYPE_STATUS 1
|
||||
#define MPI3MR_BSG_MPI_REPLY_BUFTYPE_ADDRESS 2
|
||||
#define MPI3MR_HDB_BUFTYPE_UNKNOWN 0
|
||||
#define MPI3MR_HDB_BUFTYPE_TRACE 1
|
||||
#define MPI3MR_HDB_BUFTYPE_FIRMWARE 2
|
||||
#define MPI3MR_HDB_BUFTYPE_RESERVED 3
|
||||
#define MPI3MR_HDB_BUFSTATUS_UNKNOWN 0
|
||||
#define MPI3MR_HDB_BUFSTATUS_NOT_ALLOCATED 1
|
||||
#define MPI3MR_HDB_BUFSTATUS_POSTED_UNPAUSED 2
|
||||
#define MPI3MR_HDB_BUFSTATUS_POSTED_PAUSED 3
|
||||
#define MPI3MR_HDB_BUFSTATUS_RELEASED 4
|
||||
#define MPI3MR_HDB_TRIGGER_TYPE_UNKNOWN 0
|
||||
#define MPI3MR_HDB_TRIGGER_TYPE_DIAGFAULT 1
|
||||
#define MPI3MR_HDB_TRIGGER_TYPE_ELEMENT 2
|
||||
#define MPI3MR_HDB_TRIGGER_TYPE_MASTER 3
|
||||
enum command {
|
||||
MPI3MR_DRV_CMD = 1,
|
||||
MPI3MR_MPT_CMD = 2,
|
||||
};
|
||||
struct mpi3_driver_info_layout {
|
||||
__le32 information_length;
|
||||
__u8 driver_signature[12];
|
||||
__u8 os_name[16];
|
||||
__u8 os_version[12];
|
||||
__u8 driver_name[20];
|
||||
__u8 driver_version[32];
|
||||
__u8 driver_release_date[20];
|
||||
__le32 driver_capabilities;
|
||||
};
|
||||
struct mpi3mr_bsg_in_adpinfo {
|
||||
__u32 adp_type;
|
||||
__u32 rsvd1;
|
||||
__u32 pci_dev_id;
|
||||
__u32 pci_dev_hw_rev;
|
||||
__u32 pci_subsys_dev_id;
|
||||
__u32 pci_subsys_ven_id;
|
||||
__u32 pci_dev : 5;
|
||||
__u32 pci_func : 3;
|
||||
__u32 pci_bus : 8;
|
||||
__u16 rsvd2;
|
||||
__u32 pci_seg_id;
|
||||
__u32 app_intfc_ver;
|
||||
__u8 adp_state;
|
||||
__u8 rsvd3;
|
||||
__u16 rsvd4;
|
||||
__u32 rsvd5[2];
|
||||
struct mpi3_driver_info_layout driver_info;
|
||||
};
|
||||
struct mpi3mr_bsg_adp_reset {
|
||||
__u8 reset_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
};
|
||||
struct mpi3mr_change_count {
|
||||
__u16 change_count;
|
||||
__u16 rsvd;
|
||||
};
|
||||
struct mpi3mr_device_map_info {
|
||||
__u16 handle;
|
||||
__u16 perst_id;
|
||||
__u32 target_id;
|
||||
__u8 bus_id;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
};
|
||||
struct mpi3mr_all_tgt_info {
|
||||
__u16 num_devices;
|
||||
__u16 rsvd1;
|
||||
__u32 rsvd2;
|
||||
struct mpi3mr_device_map_info dmi[1];
|
||||
};
|
||||
struct mpi3mr_logdata_enable {
|
||||
__u16 max_entries;
|
||||
__u16 rsvd;
|
||||
};
|
||||
struct mpi3mr_bsg_out_pel_enable {
|
||||
__u16 pel_locale;
|
||||
__u8 pel_class;
|
||||
__u8 rsvd;
|
||||
};
|
||||
struct mpi3mr_logdata_entry {
|
||||
__u8 valid_entry;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u8 data[1];
|
||||
};
|
||||
struct mpi3mr_bsg_in_log_data {
|
||||
struct mpi3mr_logdata_entry entry[1];
|
||||
};
|
||||
struct mpi3mr_hdb_entry {
|
||||
__u8 buf_type;
|
||||
__u8 status;
|
||||
__u8 trigger_type;
|
||||
__u8 rsvd1;
|
||||
__u16 size;
|
||||
__u16 rsvd2;
|
||||
__u64 trigger_data;
|
||||
__u32 rsvd3;
|
||||
__u32 rsvd4;
|
||||
};
|
||||
struct mpi3mr_bsg_in_hdb_status {
|
||||
__u8 num_hdb_types;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u32 rsvd3;
|
||||
struct mpi3mr_hdb_entry entry[1];
|
||||
};
|
||||
struct mpi3mr_bsg_out_repost_hdb {
|
||||
__u8 buf_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
};
|
||||
struct mpi3mr_bsg_out_upload_hdb {
|
||||
__u8 buf_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u32 start_offset;
|
||||
__u32 length;
|
||||
};
|
||||
struct mpi3mr_bsg_out_refresh_hdb_triggers {
|
||||
__u8 page_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
};
|
||||
struct mpi3mr_bsg_drv_cmd {
|
||||
__u8 mrioc_id;
|
||||
__u8 opcode;
|
||||
__u16 rsvd1;
|
||||
__u32 rsvd2[4];
|
||||
};
|
||||
struct mpi3mr_bsg_in_reply_buf {
|
||||
__u8 mpi_reply_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u8 reply_buf[1];
|
||||
};
|
||||
struct mpi3mr_buf_entry {
|
||||
__u8 buf_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u32 buf_len;
|
||||
};
|
||||
struct mpi3mr_buf_entry_list {
|
||||
__u8 num_of_entries;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u32 rsvd3;
|
||||
struct mpi3mr_buf_entry buf_entry[1];
|
||||
};
|
||||
struct mpi3mr_bsg_mptcmd {
|
||||
__u8 mrioc_id;
|
||||
__u8 rsvd1;
|
||||
__u16 timeout;
|
||||
__u32 rsvd2;
|
||||
struct mpi3mr_buf_entry_list buf_entry_list;
|
||||
};
|
||||
struct mpi3mr_bsg_packet {
|
||||
__u8 cmd_type;
|
||||
__u8 rsvd1;
|
||||
__u16 rsvd2;
|
||||
__u32 rsvd3;
|
||||
union {
|
||||
struct mpi3mr_bsg_drv_cmd drvrcmd;
|
||||
struct mpi3mr_bsg_mptcmd mptcmd;
|
||||
} cmd;
|
||||
};
|
||||
#ifndef MPI3_NVME_ENCAP_CMD_MAX
|
||||
#define MPI3_NVME_ENCAP_CMD_MAX (1)
|
||||
#endif
|
||||
struct mpi3_nvme_encapsulated_request {
|
||||
__le16 host_tag;
|
||||
__u8 ioc_use_only02;
|
||||
__u8 function;
|
||||
__le16 ioc_use_only04;
|
||||
__u8 ioc_use_only06;
|
||||
__u8 msg_flags;
|
||||
__le16 change_count;
|
||||
__le16 dev_handle;
|
||||
__le16 encapsulated_command_length;
|
||||
__le16 flags;
|
||||
__le32 data_length;
|
||||
__le32 reserved14[3];
|
||||
__le32 command[MPI3_NVME_ENCAP_CMD_MAX];
|
||||
};
|
||||
struct mpi3_nvme_encapsulated_error_reply {
|
||||
__le16 host_tag;
|
||||
__u8 ioc_use_only02;
|
||||
__u8 function;
|
||||
__le16 ioc_use_only04;
|
||||
__u8 ioc_use_only06;
|
||||
__u8 msg_flags;
|
||||
__le16 ioc_use_only08;
|
||||
__le16 ioc_status;
|
||||
__le32 ioc_log_info;
|
||||
__le32 nvme_completion_entry[4];
|
||||
};
|
||||
#define MPI3MR_NVME_PRP_SIZE 8
|
||||
#define MPI3MR_NVME_CMD_PRP1_OFFSET 24
|
||||
#define MPI3MR_NVME_CMD_PRP2_OFFSET 32
|
||||
#define MPI3MR_NVME_CMD_SGL_OFFSET 24
|
||||
#define MPI3MR_NVME_DATA_FORMAT_PRP 0
|
||||
#define MPI3MR_NVME_DATA_FORMAT_SGL1 1
|
||||
#define MPI3MR_NVME_DATA_FORMAT_SGL2 2
|
||||
struct mpi3_scsi_task_mgmt_request {
|
||||
__le16 host_tag;
|
||||
__u8 ioc_use_only02;
|
||||
__u8 function;
|
||||
__le16 ioc_use_only04;
|
||||
__u8 ioc_use_only06;
|
||||
__u8 msg_flags;
|
||||
__le16 change_count;
|
||||
__le16 dev_handle;
|
||||
__le16 task_host_tag;
|
||||
__u8 task_type;
|
||||
__u8 reserved0f;
|
||||
__le16 task_request_queue_id;
|
||||
__le16 reserved12;
|
||||
__le32 reserved14;
|
||||
__u8 lun[8];
|
||||
};
|
||||
#define MPI3_SCSITASKMGMT_MSGFLAGS_DO_NOT_SEND_TASK_IU (0x08)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_ABORT_TASK (0x01)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_ABORT_TASK_SET (0x02)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_TARGET_RESET (0x03)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET (0x05)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_CLEAR_TASK_SET (0x06)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_QUERY_TASK (0x07)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_CLEAR_ACA (0x08)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_QUERY_TASK_SET (0x09)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_QUERY_ASYNC_EVENT (0x0a)
|
||||
#define MPI3_SCSITASKMGMT_TASKTYPE_I_T_NEXUS_RESET (0x0b)
|
||||
struct mpi3_scsi_task_mgmt_reply {
|
||||
__le16 host_tag;
|
||||
__u8 ioc_use_only02;
|
||||
__u8 function;
|
||||
__le16 ioc_use_only04;
|
||||
__u8 ioc_use_only06;
|
||||
__u8 msg_flags;
|
||||
__le16 ioc_use_only08;
|
||||
__le16 ioc_status;
|
||||
__le32 ioc_log_info;
|
||||
__le32 termination_count;
|
||||
__le32 response_data;
|
||||
__le32 reserved18;
|
||||
};
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_COMPLETE (0x00)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_INVALID_FRAME (0x02)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_FUNCTION_NOT_SUPPORTED (0x04)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_FAILED (0x05)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_SUCCEEDED (0x08)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_INVALID_LUN (0x09)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_OVERLAPPED_TAG (0x0a)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_IO_QUEUED_ON_IOC (0x80)
|
||||
#define MPI3_SCSITASKMGMT_RSPCODE_TM_NVME_DENIED (0x81)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_NON_BLOCKING_BOOT_EVENT (0x0200)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_BLOCKING_BOOT_EVENT (0x0100)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_PCIE (0x0080)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_CONFIGURATION (0x0040)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_CONTROLER (0x0020)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_SAS (0x0010)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_EPACK (0x0008)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_ENCLOSURE (0x0004)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_PD (0x0002)
|
||||
#define MPI3_PEL_LOCALE_FLAGS_VD (0x0001)
|
||||
#define MPI3_PEL_CLASS_DEBUG (0x00)
|
||||
#define MPI3_PEL_CLASS_PROGRESS (0x01)
|
||||
#define MPI3_PEL_CLASS_INFORMATIONAL (0x02)
|
||||
#define MPI3_PEL_CLASS_WARNING (0x03)
|
||||
#define MPI3_PEL_CLASS_CRITICAL (0x04)
|
||||
#define MPI3_PEL_CLASS_FATAL (0x05)
|
||||
#define MPI3_PEL_CLASS_FAULT (0x06)
|
||||
#define MPI3_BSG_FUNCTION_MGMT_PASSTHROUGH (0x0a)
|
||||
#define MPI3_BSG_FUNCTION_SCSI_IO (0x20)
|
||||
#define MPI3_BSG_FUNCTION_SCSI_TASK_MGMT (0x21)
|
||||
#define MPI3_BSG_FUNCTION_SMP_PASSTHROUGH (0x22)
|
||||
#define MPI3_BSG_FUNCTION_NVME_ENCAPSULATED (0x24)
|
||||
#endif
|
111
libc/kernel/uapi/sound/intel/avs/tokens.h
Normal file
111
libc/kernel/uapi/sound/intel/avs/tokens.h
Normal file
|
@ -0,0 +1,111 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_SOUND_INTEL_AVS_TOKENS_H
|
||||
#define __UAPI_SOUND_INTEL_AVS_TOKENS_H
|
||||
enum avs_tplg_token {
|
||||
AVS_TKN_MANIFEST_NAME_STRING = 1,
|
||||
AVS_TKN_MANIFEST_VERSION_U32 = 2,
|
||||
AVS_TKN_MANIFEST_NUM_LIBRARIES_U32 = 3,
|
||||
AVS_TKN_MANIFEST_NUM_AFMTS_U32 = 4,
|
||||
AVS_TKN_MANIFEST_NUM_MODCFGS_BASE_U32 = 5,
|
||||
AVS_TKN_MANIFEST_NUM_MODCFGS_EXT_U32 = 6,
|
||||
AVS_TKN_MANIFEST_NUM_PPLCFGS_U32 = 7,
|
||||
AVS_TKN_MANIFEST_NUM_BINDINGS_U32 = 8,
|
||||
AVS_TKN_LIBRARY_ID_U32 = 101,
|
||||
AVS_TKN_LIBRARY_NAME_STRING = 102,
|
||||
AVS_TKN_AFMT_ID_U32 = 201,
|
||||
AVS_TKN_AFMT_SAMPLE_RATE_U32 = 202,
|
||||
AVS_TKN_AFMT_BIT_DEPTH_U32 = 203,
|
||||
AVS_TKN_AFMT_CHANNEL_MAP_U32 = 204,
|
||||
AVS_TKN_AFMT_CHANNEL_CFG_U32 = 205,
|
||||
AVS_TKN_AFMT_INTERLEAVING_U32 = 206,
|
||||
AVS_TKN_AFMT_NUM_CHANNELS_U32 = 207,
|
||||
AVS_TKN_AFMT_VALID_BIT_DEPTH_U32 = 208,
|
||||
AVS_TKN_AFMT_SAMPLE_TYPE_U32 = 209,
|
||||
AVS_TKN_MODCFG_BASE_ID_U32 = 301,
|
||||
AVS_TKN_MODCFG_BASE_CPC_U32 = 302,
|
||||
AVS_TKN_MODCFG_BASE_IBS_U32 = 303,
|
||||
AVS_TKN_MODCFG_BASE_OBS_U32 = 304,
|
||||
AVS_TKN_MODCFG_BASE_PAGES_U32 = 305,
|
||||
AVS_TKN_MODCFG_EXT_ID_U32 = 401,
|
||||
AVS_TKN_MODCFG_EXT_TYPE_UUID = 402,
|
||||
AVS_TKN_MODCFG_CPR_OUT_AFMT_ID_U32 = 403,
|
||||
AVS_TKN_MODCFG_CPR_FEATURE_MASK_U32 = 404,
|
||||
AVS_TKN_MODCFG_CPR_DMA_TYPE_U32 = 405,
|
||||
AVS_TKN_MODCFG_CPR_DMABUFF_SIZE_U32 = 406,
|
||||
AVS_TKN_MODCFG_CPR_VINDEX_U8 = 407,
|
||||
AVS_TKN_MODCFG_CPR_BLOB_FMT_ID_U32 = 408,
|
||||
AVS_TKN_MODCFG_MICSEL_OUT_AFMT_ID_U32 = 409,
|
||||
AVS_TKN_MODCFG_INTELWOV_CPC_LP_MODE_U32 = 410,
|
||||
AVS_TKN_MODCFG_SRC_OUT_FREQ_U32 = 411,
|
||||
AVS_TKN_MODCFG_MUX_REF_AFMT_ID_U32 = 412,
|
||||
AVS_TKN_MODCFG_MUX_OUT_AFMT_ID_U32 = 413,
|
||||
AVS_TKN_MODCFG_AEC_REF_AFMT_ID_U32 = 414,
|
||||
AVS_TKN_MODCFG_AEC_OUT_AFMT_ID_U32 = 415,
|
||||
AVS_TKN_MODCFG_AEC_CPC_LP_MODE_U32 = 416,
|
||||
AVS_TKN_MODCFG_ASRC_OUT_FREQ_U32 = 417,
|
||||
AVS_TKN_MODCFG_ASRC_MODE_U8 = 418,
|
||||
AVS_TKN_MODCFG_ASRC_DISABLE_JITTER_U8 = 419,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_OUT_CHAN_CFG_U32 = 420,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_SELECT_U32 = 421,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_0_S32 = 422,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_1_S32 = 423,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_2_S32 = 424,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_3_S32 = 425,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_4_S32 = 426,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_5_S32 = 427,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_6_S32 = 428,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_7_S32 = 429,
|
||||
AVS_TKN_MODCFG_UPDOWN_MIX_CHAN_MAP_U32 = 430,
|
||||
AVS_TKN_MODCFG_EXT_NUM_INPUT_PINS_U16 = 431,
|
||||
AVS_TKN_MODCFG_EXT_NUM_OUTPUT_PINS_U16 = 432,
|
||||
AVS_TKN_PPLCFG_ID_U32 = 1401,
|
||||
AVS_TKN_PPLCFG_REQ_SIZE_U16 = 1402,
|
||||
AVS_TKN_PPLCFG_PRIORITY_U8 = 1403,
|
||||
AVS_TKN_PPLCFG_LOW_POWER_BOOL = 1404,
|
||||
AVS_TKN_PPLCFG_ATTRIBUTES_U16 = 1405,
|
||||
AVS_TKN_PPLCFG_TRIGGER_U32 = 1406,
|
||||
AVS_TKN_BINDING_ID_U32 = 1501,
|
||||
AVS_TKN_BINDING_TARGET_TPLG_NAME_STRING = 1502,
|
||||
AVS_TKN_BINDING_TARGET_PATH_TMPL_ID_U32 = 1503,
|
||||
AVS_TKN_BINDING_TARGET_PPL_ID_U32 = 1504,
|
||||
AVS_TKN_BINDING_TARGET_MOD_ID_U32 = 1505,
|
||||
AVS_TKN_BINDING_TARGET_MOD_PIN_U8 = 1506,
|
||||
AVS_TKN_BINDING_MOD_ID_U32 = 1507,
|
||||
AVS_TKN_BINDING_MOD_PIN_U8 = 1508,
|
||||
AVS_TKN_BINDING_IS_SINK_U8 = 1509,
|
||||
AVS_TKN_PPL_ID_U32 = 1601,
|
||||
AVS_TKN_PPL_PPLCFG_ID_U32 = 1602,
|
||||
AVS_TKN_PPL_NUM_BINDING_IDS_U32 = 1603,
|
||||
AVS_TKN_PPL_BINDING_ID_U32 = 1604,
|
||||
AVS_TKN_MOD_ID_U32 = 1701,
|
||||
AVS_TKN_MOD_MODCFG_BASE_ID_U32 = 1702,
|
||||
AVS_TKN_MOD_IN_AFMT_ID_U32 = 1703,
|
||||
AVS_TKN_MOD_CORE_ID_U8 = 1704,
|
||||
AVS_TKN_MOD_PROC_DOMAIN_U8 = 1705,
|
||||
AVS_TKN_MOD_MODCFG_EXT_ID_U32 = 1706,
|
||||
AVS_TKN_PATH_TMPL_ID_U32 = 1801,
|
||||
AVS_TKN_PATH_ID_U32 = 1901,
|
||||
AVS_TKN_PATH_FE_FMT_ID_U32 = 1902,
|
||||
AVS_TKN_PATH_BE_FMT_ID_U32 = 1903,
|
||||
AVS_TKN_PIN_FMT_INDEX_U32 = 2201,
|
||||
AVS_TKN_PIN_FMT_IOBS_U32 = 2202,
|
||||
AVS_TKN_PIN_FMT_AFMT_ID_U32 = 2203,
|
||||
};
|
||||
#endif
|
|
@ -19,8 +19,8 @@
|
|||
#ifndef __INCLUDE_UAPI_SOUND_SOF_ABI_H__
|
||||
#define __INCLUDE_UAPI_SOUND_SOF_ABI_H__
|
||||
#define SOF_ABI_MAJOR 3
|
||||
#define SOF_ABI_MINOR 19
|
||||
#define SOF_ABI_PATCH 1
|
||||
#define SOF_ABI_MINOR 21
|
||||
#define SOF_ABI_PATCH 0
|
||||
#define SOF_ABI_MAJOR_SHIFT 24
|
||||
#define SOF_ABI_MAJOR_MASK 0xff
|
||||
#define SOF_ABI_MINOR_SHIFT 12
|
||||
|
|
Loading…
Reference in a new issue