Update to v5.12 kernel headers.
Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.12 Test: Boots flame device and runs bionic unit tests. Test: Boots acloud device and runs bionic unit tests. Change-Id: I8ac107ce9d4978be3ef9517b90ad6ecafd06785a
This commit is contained in:
parent
48166a4eaf
commit
a9750eda0d
65 changed files with 947 additions and 63 deletions
|
@ -606,6 +606,9 @@
|
|||
#if defined(__NR_mount)
|
||||
#define SYS_mount __NR_mount
|
||||
#endif
|
||||
#if defined(__NR_mount_setattr)
|
||||
#define SYS_mount_setattr __NR_mount_setattr
|
||||
#endif
|
||||
#if defined(__NR_move_mount)
|
||||
#define SYS_move_mount __NR_move_mount
|
||||
#endif
|
||||
|
|
|
@ -57,6 +57,7 @@ struct ccs_modesel_head {
|
|||
#define CLEAR_TASK_SET 0x0e
|
||||
#define INITIATE_RECOVERY 0x0f
|
||||
#define RELEASE_RECOVERY 0x10
|
||||
#define TERMINATE_IO_PROC 0x11
|
||||
#define CLEAR_ACA 0x16
|
||||
#define LOGICAL_UNIT_RESET 0x17
|
||||
#define SIMPLE_QUEUE_TAG 0x20
|
||||
|
|
|
@ -413,4 +413,5 @@
|
|||
#define __NR_faccessat2 (__NR_SYSCALL_BASE + 439)
|
||||
#define __NR_process_madvise (__NR_SYSCALL_BASE + 440)
|
||||
#define __NR_epoll_pwait2 (__NR_SYSCALL_BASE + 441)
|
||||
#define __NR_mount_setattr (__NR_SYSCALL_BASE + 442)
|
||||
#endif
|
||||
|
|
|
@ -402,8 +402,9 @@
|
|||
#define __NR_faccessat2 439
|
||||
#define __NR_process_madvise 440
|
||||
#define __NR_epoll_pwait2 441
|
||||
#define __NR_mount_setattr 442
|
||||
#undef __NR_syscalls
|
||||
#define __NR_syscalls 442
|
||||
#define __NR_syscalls 443
|
||||
#if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
|
||||
#define __NR_fcntl __NR3264_fcntl
|
||||
#define __NR_statfs __NR3264_statfs
|
||||
|
|
|
@ -111,6 +111,7 @@ struct kvm_ioapic_state {
|
|||
#define KVM_IRQCHIP_IOAPIC 2
|
||||
#define KVM_NR_IRQCHIPS 3
|
||||
#define KVM_RUN_X86_SMM (1 << 0)
|
||||
#define KVM_RUN_X86_BUS_LOCK (1 << 1)
|
||||
struct kvm_regs {
|
||||
__u64 rax, rbx, rcx, rdx;
|
||||
__u64 rsi, rdi, rsp, rbp;
|
||||
|
|
|
@ -449,4 +449,5 @@
|
|||
#define __NR_faccessat2 439
|
||||
#define __NR_process_madvise 440
|
||||
#define __NR_epoll_pwait2 441
|
||||
#define __NR_mount_setattr 442
|
||||
#endif
|
||||
|
|
|
@ -371,4 +371,5 @@
|
|||
#define __NR_faccessat2 439
|
||||
#define __NR_process_madvise 440
|
||||
#define __NR_epoll_pwait2 441
|
||||
#define __NR_mount_setattr 442
|
||||
#endif
|
||||
|
|
|
@ -324,6 +324,7 @@
|
|||
#define __NR_faccessat2 (__X32_SYSCALL_BIT + 439)
|
||||
#define __NR_process_madvise (__X32_SYSCALL_BIT + 440)
|
||||
#define __NR_epoll_pwait2 (__X32_SYSCALL_BIT + 441)
|
||||
#define __NR_mount_setattr (__X32_SYSCALL_BIT + 442)
|
||||
#define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512)
|
||||
#define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513)
|
||||
#define __NR_ioctl (__X32_SYSCALL_BIT + 514)
|
||||
|
|
|
@ -79,7 +79,8 @@
|
|||
#define EXIT_REASON_XRSTORS 64
|
||||
#define EXIT_REASON_UMWAIT 67
|
||||
#define EXIT_REASON_TPAUSE 68
|
||||
#define VMX_EXIT_REASONS { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, { EXIT_REASON_EXTERNAL_INTERRUPT, "EXTERNAL_INTERRUPT" }, { EXIT_REASON_TRIPLE_FAULT, "TRIPLE_FAULT" }, { EXIT_REASON_INIT_SIGNAL, "INIT_SIGNAL" }, { EXIT_REASON_SIPI_SIGNAL, "SIPI_SIGNAL" }, { EXIT_REASON_INTERRUPT_WINDOW, "INTERRUPT_WINDOW" }, { EXIT_REASON_NMI_WINDOW, "NMI_WINDOW" }, { EXIT_REASON_TASK_SWITCH, "TASK_SWITCH" }, { EXIT_REASON_CPUID, "CPUID" }, { EXIT_REASON_HLT, "HLT" }, { EXIT_REASON_INVD, "INVD" }, { EXIT_REASON_INVLPG, "INVLPG" }, { EXIT_REASON_RDPMC, "RDPMC" }, { EXIT_REASON_RDTSC, "RDTSC" }, { EXIT_REASON_VMCALL, "VMCALL" }, { EXIT_REASON_VMCLEAR, "VMCLEAR" }, { EXIT_REASON_VMLAUNCH, "VMLAUNCH" }, { EXIT_REASON_VMPTRLD, "VMPTRLD" }, { EXIT_REASON_VMPTRST, "VMPTRST" }, { EXIT_REASON_VMREAD, "VMREAD" }, { EXIT_REASON_VMRESUME, "VMRESUME" }, { EXIT_REASON_VMWRITE, "VMWRITE" }, { EXIT_REASON_VMOFF, "VMOFF" }, { EXIT_REASON_VMON, "VMON" }, { EXIT_REASON_CR_ACCESS, "CR_ACCESS" }, { EXIT_REASON_DR_ACCESS, "DR_ACCESS" }, { EXIT_REASON_IO_INSTRUCTION, "IO_INSTRUCTION" }, { EXIT_REASON_MSR_READ, "MSR_READ" }, { EXIT_REASON_MSR_WRITE, "MSR_WRITE" }, { EXIT_REASON_INVALID_STATE, "INVALID_STATE" }, { EXIT_REASON_MSR_LOAD_FAIL, "MSR_LOAD_FAIL" }, { EXIT_REASON_MWAIT_INSTRUCTION, "MWAIT_INSTRUCTION" }, { EXIT_REASON_MONITOR_TRAP_FLAG, "MONITOR_TRAP_FLAG" }, { EXIT_REASON_MONITOR_INSTRUCTION, "MONITOR_INSTRUCTION" }, { EXIT_REASON_PAUSE_INSTRUCTION, "PAUSE_INSTRUCTION" }, { EXIT_REASON_MCE_DURING_VMENTRY, "MCE_DURING_VMENTRY" }, { EXIT_REASON_TPR_BELOW_THRESHOLD, "TPR_BELOW_THRESHOLD" }, { EXIT_REASON_APIC_ACCESS, "APIC_ACCESS" }, { EXIT_REASON_EOI_INDUCED, "EOI_INDUCED" }, { EXIT_REASON_GDTR_IDTR, "GDTR_IDTR" }, { EXIT_REASON_LDTR_TR, "LDTR_TR" }, { EXIT_REASON_EPT_VIOLATION, "EPT_VIOLATION" }, { EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, { EXIT_REASON_INVEPT, "INVEPT" }, { EXIT_REASON_RDTSCP, "RDTSCP" }, { EXIT_REASON_PREEMPTION_TIMER, "PREEMPTION_TIMER" }, { EXIT_REASON_INVVPID, "INVVPID" }, { EXIT_REASON_WBINVD, "WBINVD" }, { EXIT_REASON_XSETBV, "XSETBV" }, { EXIT_REASON_APIC_WRITE, "APIC_WRITE" }, { EXIT_REASON_RDRAND, "RDRAND" }, { EXIT_REASON_INVPCID, "INVPCID" }, { EXIT_REASON_VMFUNC, "VMFUNC" }, { EXIT_REASON_ENCLS, "ENCLS" }, { EXIT_REASON_RDSEED, "RDSEED" }, { EXIT_REASON_PML_FULL, "PML_FULL" }, { EXIT_REASON_XSAVES, "XSAVES" }, { EXIT_REASON_XRSTORS, "XRSTORS" }, { EXIT_REASON_UMWAIT, "UMWAIT" }, { EXIT_REASON_TPAUSE, "TPAUSE" }
|
||||
#define EXIT_REASON_BUS_LOCK 74
|
||||
#define VMX_EXIT_REASONS { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, { EXIT_REASON_EXTERNAL_INTERRUPT, "EXTERNAL_INTERRUPT" }, { EXIT_REASON_TRIPLE_FAULT, "TRIPLE_FAULT" }, { EXIT_REASON_INIT_SIGNAL, "INIT_SIGNAL" }, { EXIT_REASON_SIPI_SIGNAL, "SIPI_SIGNAL" }, { EXIT_REASON_INTERRUPT_WINDOW, "INTERRUPT_WINDOW" }, { EXIT_REASON_NMI_WINDOW, "NMI_WINDOW" }, { EXIT_REASON_TASK_SWITCH, "TASK_SWITCH" }, { EXIT_REASON_CPUID, "CPUID" }, { EXIT_REASON_HLT, "HLT" }, { EXIT_REASON_INVD, "INVD" }, { EXIT_REASON_INVLPG, "INVLPG" }, { EXIT_REASON_RDPMC, "RDPMC" }, { EXIT_REASON_RDTSC, "RDTSC" }, { EXIT_REASON_VMCALL, "VMCALL" }, { EXIT_REASON_VMCLEAR, "VMCLEAR" }, { EXIT_REASON_VMLAUNCH, "VMLAUNCH" }, { EXIT_REASON_VMPTRLD, "VMPTRLD" }, { EXIT_REASON_VMPTRST, "VMPTRST" }, { EXIT_REASON_VMREAD, "VMREAD" }, { EXIT_REASON_VMRESUME, "VMRESUME" }, { EXIT_REASON_VMWRITE, "VMWRITE" }, { EXIT_REASON_VMOFF, "VMOFF" }, { EXIT_REASON_VMON, "VMON" }, { EXIT_REASON_CR_ACCESS, "CR_ACCESS" }, { EXIT_REASON_DR_ACCESS, "DR_ACCESS" }, { EXIT_REASON_IO_INSTRUCTION, "IO_INSTRUCTION" }, { EXIT_REASON_MSR_READ, "MSR_READ" }, { EXIT_REASON_MSR_WRITE, "MSR_WRITE" }, { EXIT_REASON_INVALID_STATE, "INVALID_STATE" }, { EXIT_REASON_MSR_LOAD_FAIL, "MSR_LOAD_FAIL" }, { EXIT_REASON_MWAIT_INSTRUCTION, "MWAIT_INSTRUCTION" }, { EXIT_REASON_MONITOR_TRAP_FLAG, "MONITOR_TRAP_FLAG" }, { EXIT_REASON_MONITOR_INSTRUCTION, "MONITOR_INSTRUCTION" }, { EXIT_REASON_PAUSE_INSTRUCTION, "PAUSE_INSTRUCTION" }, { EXIT_REASON_MCE_DURING_VMENTRY, "MCE_DURING_VMENTRY" }, { EXIT_REASON_TPR_BELOW_THRESHOLD, "TPR_BELOW_THRESHOLD" }, { EXIT_REASON_APIC_ACCESS, "APIC_ACCESS" }, { EXIT_REASON_EOI_INDUCED, "EOI_INDUCED" }, { EXIT_REASON_GDTR_IDTR, "GDTR_IDTR" }, { EXIT_REASON_LDTR_TR, "LDTR_TR" }, { EXIT_REASON_EPT_VIOLATION, "EPT_VIOLATION" }, { EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, { EXIT_REASON_INVEPT, "INVEPT" }, { EXIT_REASON_RDTSCP, "RDTSCP" }, { EXIT_REASON_PREEMPTION_TIMER, "PREEMPTION_TIMER" }, { EXIT_REASON_INVVPID, "INVVPID" }, { EXIT_REASON_WBINVD, "WBINVD" }, { EXIT_REASON_XSETBV, "XSETBV" }, { EXIT_REASON_APIC_WRITE, "APIC_WRITE" }, { EXIT_REASON_RDRAND, "RDRAND" }, { EXIT_REASON_INVPCID, "INVPCID" }, { EXIT_REASON_VMFUNC, "VMFUNC" }, { EXIT_REASON_ENCLS, "ENCLS" }, { EXIT_REASON_RDSEED, "RDSEED" }, { EXIT_REASON_PML_FULL, "PML_FULL" }, { EXIT_REASON_XSAVES, "XSAVES" }, { EXIT_REASON_XRSTORS, "XRSTORS" }, { EXIT_REASON_UMWAIT, "UMWAIT" }, { EXIT_REASON_TPAUSE, "TPAUSE" }, { EXIT_REASON_BUS_LOCK, "BUS_LOCK" }
|
||||
#define VMX_EXIT_REASON_FLAGS { VMX_EXIT_REASONS_FAILED_VMENTRY, "FAILED_VMENTRY" }
|
||||
#define VMX_ABORT_SAVE_GUEST_MSR_FAIL 1
|
||||
#define VMX_ABORT_LOAD_HOST_PDPTE_FAIL 2
|
||||
|
|
|
@ -153,6 +153,7 @@ extern "C" {
|
|||
#define I915_FORMAT_MOD_Yf_TILED_CCS fourcc_mod_code(INTEL, 5)
|
||||
#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 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)
|
||||
|
@ -204,9 +205,9 @@ extern "C" {
|
|||
#define AFBC_FORMAT_MOD_USM (1ULL << 12)
|
||||
#define DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED DRM_FORMAT_MOD_ARM_CODE(DRM_FORMAT_MOD_ARM_TYPE_MISC, 1ULL)
|
||||
#define DRM_FORMAT_MOD_ALLWINNER_TILED fourcc_mod_code(ALLWINNER, 1)
|
||||
#define __fourcc_mod_amlogic_layout_mask 0xf
|
||||
#define __fourcc_mod_amlogic_layout_mask 0xff
|
||||
#define __fourcc_mod_amlogic_options_shift 8
|
||||
#define __fourcc_mod_amlogic_options_mask 0xf
|
||||
#define __fourcc_mod_amlogic_options_mask 0xff
|
||||
#define DRM_FORMAT_MOD_AMLOGIC_FBC(__layout,__options) fourcc_mod_code(AMLOGIC, ((__layout) & __fourcc_mod_amlogic_layout_mask) | (((__options) & __fourcc_mod_amlogic_options_mask) << __fourcc_mod_amlogic_options_shift))
|
||||
#define AMLOGIC_FBC_LAYOUT_BASIC (1ULL)
|
||||
#define AMLOGIC_FBC_LAYOUT_SCATTER (2ULL)
|
||||
|
|
|
@ -67,6 +67,7 @@ enum drm_i915_pmu_engine_sample {
|
|||
#define I915_PMU_REQUESTED_FREQUENCY __I915_PMU_OTHER(1)
|
||||
#define I915_PMU_INTERRUPTS __I915_PMU_OTHER(2)
|
||||
#define I915_PMU_RC6_RESIDENCY __I915_PMU_OTHER(3)
|
||||
#define I915_PMU_SOFTWARE_GT_AWAKE_TIME __I915_PMU_OTHER(4)
|
||||
#define I915_PMU_LAST I915_PMU_RC6_RESIDENCY
|
||||
#define I915_NR_TEX_REGIONS 255
|
||||
#define I915_LOG_MIN_TEX_REGION_SIZE 14
|
||||
|
|
263
libc/kernel/uapi/linux/acrn.h
Normal file
263
libc/kernel/uapi/linux/acrn.h
Normal file
|
@ -0,0 +1,263 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_ACRN_H
|
||||
#define _UAPI_ACRN_H
|
||||
#include <linux/types.h>
|
||||
#include <linux/uuid.h>
|
||||
#define ACRN_IO_REQUEST_MAX 16
|
||||
#define ACRN_IOREQ_STATE_PENDING 0
|
||||
#define ACRN_IOREQ_STATE_COMPLETE 1
|
||||
#define ACRN_IOREQ_STATE_PROCESSING 2
|
||||
#define ACRN_IOREQ_STATE_FREE 3
|
||||
#define ACRN_IOREQ_TYPE_PORTIO 0
|
||||
#define ACRN_IOREQ_TYPE_MMIO 1
|
||||
#define ACRN_IOREQ_TYPE_PCICFG 2
|
||||
#define ACRN_IOREQ_DIR_READ 0
|
||||
#define ACRN_IOREQ_DIR_WRITE 1
|
||||
struct acrn_mmio_request {
|
||||
__u32 direction;
|
||||
__u32 reserved;
|
||||
__u64 address;
|
||||
__u64 size;
|
||||
__u64 value;
|
||||
};
|
||||
struct acrn_pio_request {
|
||||
__u32 direction;
|
||||
__u32 reserved;
|
||||
__u64 address;
|
||||
__u64 size;
|
||||
__u32 value;
|
||||
};
|
||||
struct acrn_pci_request {
|
||||
__u32 direction;
|
||||
__u32 reserved[3];
|
||||
__u64 size;
|
||||
__u32 value;
|
||||
__u32 bus;
|
||||
__u32 dev;
|
||||
__u32 func;
|
||||
__u32 reg;
|
||||
};
|
||||
struct acrn_io_request {
|
||||
__u32 type;
|
||||
__u32 completion_polling;
|
||||
__u32 reserved0[14];
|
||||
union {
|
||||
struct acrn_pio_request pio_request;
|
||||
struct acrn_pci_request pci_request;
|
||||
struct acrn_mmio_request mmio_request;
|
||||
__u64 data[8];
|
||||
} reqs;
|
||||
__u32 reserved1;
|
||||
__u32 kernel_handled;
|
||||
__u32 processed;
|
||||
} __attribute__((aligned(256)));
|
||||
struct acrn_io_request_buffer {
|
||||
union {
|
||||
struct acrn_io_request req_slot[ACRN_IO_REQUEST_MAX];
|
||||
__u8 reserved[4096];
|
||||
};
|
||||
};
|
||||
struct acrn_ioreq_notify {
|
||||
__u16 vmid;
|
||||
__u16 reserved;
|
||||
__u32 vcpu;
|
||||
};
|
||||
struct acrn_vm_creation {
|
||||
__u16 vmid;
|
||||
__u16 reserved0;
|
||||
__u16 vcpu_num;
|
||||
__u16 reserved1;
|
||||
guid_t uuid;
|
||||
__u64 vm_flag;
|
||||
__u64 ioreq_buf;
|
||||
__u64 cpu_affinity;
|
||||
};
|
||||
struct acrn_gp_regs {
|
||||
__le64 rax;
|
||||
__le64 rcx;
|
||||
__le64 rdx;
|
||||
__le64 rbx;
|
||||
__le64 rsp;
|
||||
__le64 rbp;
|
||||
__le64 rsi;
|
||||
__le64 rdi;
|
||||
__le64 r8;
|
||||
__le64 r9;
|
||||
__le64 r10;
|
||||
__le64 r11;
|
||||
__le64 r12;
|
||||
__le64 r13;
|
||||
__le64 r14;
|
||||
__le64 r15;
|
||||
};
|
||||
struct acrn_descriptor_ptr {
|
||||
__le16 limit;
|
||||
__le64 base;
|
||||
__le16 reserved[3];
|
||||
} __attribute__((__packed__));
|
||||
struct acrn_regs {
|
||||
struct acrn_gp_regs gprs;
|
||||
struct acrn_descriptor_ptr gdt;
|
||||
struct acrn_descriptor_ptr idt;
|
||||
__le64 rip;
|
||||
__le64 cs_base;
|
||||
__le64 cr0;
|
||||
__le64 cr4;
|
||||
__le64 cr3;
|
||||
__le64 ia32_efer;
|
||||
__le64 rflags;
|
||||
__le64 reserved_64[4];
|
||||
__le32 cs_ar;
|
||||
__le32 cs_limit;
|
||||
__le32 reserved_32[3];
|
||||
__le16 cs_sel;
|
||||
__le16 ss_sel;
|
||||
__le16 ds_sel;
|
||||
__le16 es_sel;
|
||||
__le16 fs_sel;
|
||||
__le16 gs_sel;
|
||||
__le16 ldt_sel;
|
||||
__le16 tr_sel;
|
||||
};
|
||||
struct acrn_vcpu_regs {
|
||||
__u16 vcpu_id;
|
||||
__u16 reserved[3];
|
||||
struct acrn_regs vcpu_regs;
|
||||
};
|
||||
#define ACRN_MEM_ACCESS_RIGHT_MASK 0x00000007U
|
||||
#define ACRN_MEM_ACCESS_READ 0x00000001U
|
||||
#define ACRN_MEM_ACCESS_WRITE 0x00000002U
|
||||
#define ACRN_MEM_ACCESS_EXEC 0x00000004U
|
||||
#define ACRN_MEM_ACCESS_RWX (ACRN_MEM_ACCESS_READ | ACRN_MEM_ACCESS_WRITE | ACRN_MEM_ACCESS_EXEC)
|
||||
#define ACRN_MEM_TYPE_MASK 0x000007C0U
|
||||
#define ACRN_MEM_TYPE_WB 0x00000040U
|
||||
#define ACRN_MEM_TYPE_WT 0x00000080U
|
||||
#define ACRN_MEM_TYPE_UC 0x00000100U
|
||||
#define ACRN_MEM_TYPE_WC 0x00000200U
|
||||
#define ACRN_MEM_TYPE_WP 0x00000400U
|
||||
#define ACRN_MEMMAP_RAM 0
|
||||
#define ACRN_MEMMAP_MMIO 1
|
||||
struct acrn_vm_memmap {
|
||||
__u32 type;
|
||||
__u32 attr;
|
||||
__u64 user_vm_pa;
|
||||
union {
|
||||
__u64 service_vm_pa;
|
||||
__u64 vma_base;
|
||||
};
|
||||
__u64 len;
|
||||
};
|
||||
#define ACRN_PTDEV_IRQ_INTX 0
|
||||
#define ACRN_PTDEV_IRQ_MSI 1
|
||||
#define ACRN_PTDEV_IRQ_MSIX 2
|
||||
struct acrn_ptdev_irq {
|
||||
__u32 type;
|
||||
__u16 virt_bdf;
|
||||
__u16 phys_bdf;
|
||||
struct {
|
||||
__u32 virt_pin;
|
||||
__u32 phys_pin;
|
||||
__u32 is_pic_pin;
|
||||
} intx;
|
||||
};
|
||||
#define ACRN_PTDEV_QUIRK_ASSIGN (1U << 0)
|
||||
#define ACRN_PCI_NUM_BARS 6
|
||||
struct acrn_pcidev {
|
||||
__u32 type;
|
||||
__u16 virt_bdf;
|
||||
__u16 phys_bdf;
|
||||
__u8 intr_line;
|
||||
__u8 intr_pin;
|
||||
__u32 bar[ACRN_PCI_NUM_BARS];
|
||||
};
|
||||
struct acrn_msi_entry {
|
||||
__u64 msi_addr;
|
||||
__u64 msi_data;
|
||||
};
|
||||
struct acrn_acpi_generic_address {
|
||||
__u8 space_id;
|
||||
__u8 bit_width;
|
||||
__u8 bit_offset;
|
||||
__u8 access_size;
|
||||
__u64 address;
|
||||
} __attribute__((__packed__));
|
||||
struct acrn_cstate_data {
|
||||
struct acrn_acpi_generic_address cx_reg;
|
||||
__u8 type;
|
||||
__u32 latency;
|
||||
__u64 power;
|
||||
};
|
||||
struct acrn_pstate_data {
|
||||
__u64 core_frequency;
|
||||
__u64 power;
|
||||
__u64 transition_latency;
|
||||
__u64 bus_master_latency;
|
||||
__u64 control;
|
||||
__u64 status;
|
||||
};
|
||||
#define PMCMD_TYPE_MASK 0x000000ff
|
||||
enum acrn_pm_cmd_type {
|
||||
ACRN_PMCMD_GET_PX_CNT,
|
||||
ACRN_PMCMD_GET_PX_DATA,
|
||||
ACRN_PMCMD_GET_CX_CNT,
|
||||
ACRN_PMCMD_GET_CX_DATA,
|
||||
};
|
||||
#define ACRN_IOEVENTFD_FLAG_PIO 0x01
|
||||
#define ACRN_IOEVENTFD_FLAG_DATAMATCH 0x02
|
||||
#define ACRN_IOEVENTFD_FLAG_DEASSIGN 0x04
|
||||
struct acrn_ioeventfd {
|
||||
__u32 fd;
|
||||
__u32 flags;
|
||||
__u64 addr;
|
||||
__u32 len;
|
||||
__u32 reserved;
|
||||
__u64 data;
|
||||
};
|
||||
#define ACRN_IRQFD_FLAG_DEASSIGN 0x01
|
||||
struct acrn_irqfd {
|
||||
__s32 fd;
|
||||
__u32 flags;
|
||||
struct acrn_msi_entry msi;
|
||||
};
|
||||
#define ACRN_IOCTL_TYPE 0xA2
|
||||
#define ACRN_IOCTL_CREATE_VM _IOWR(ACRN_IOCTL_TYPE, 0x10, struct acrn_vm_creation)
|
||||
#define ACRN_IOCTL_DESTROY_VM _IO(ACRN_IOCTL_TYPE, 0x11)
|
||||
#define ACRN_IOCTL_START_VM _IO(ACRN_IOCTL_TYPE, 0x12)
|
||||
#define ACRN_IOCTL_PAUSE_VM _IO(ACRN_IOCTL_TYPE, 0x13)
|
||||
#define ACRN_IOCTL_RESET_VM _IO(ACRN_IOCTL_TYPE, 0x15)
|
||||
#define ACRN_IOCTL_SET_VCPU_REGS _IOW(ACRN_IOCTL_TYPE, 0x16, struct acrn_vcpu_regs)
|
||||
#define ACRN_IOCTL_INJECT_MSI _IOW(ACRN_IOCTL_TYPE, 0x23, struct acrn_msi_entry)
|
||||
#define ACRN_IOCTL_VM_INTR_MONITOR _IOW(ACRN_IOCTL_TYPE, 0x24, unsigned long)
|
||||
#define ACRN_IOCTL_SET_IRQLINE _IOW(ACRN_IOCTL_TYPE, 0x25, __u64)
|
||||
#define ACRN_IOCTL_NOTIFY_REQUEST_FINISH _IOW(ACRN_IOCTL_TYPE, 0x31, struct acrn_ioreq_notify)
|
||||
#define ACRN_IOCTL_CREATE_IOREQ_CLIENT _IO(ACRN_IOCTL_TYPE, 0x32)
|
||||
#define ACRN_IOCTL_ATTACH_IOREQ_CLIENT _IO(ACRN_IOCTL_TYPE, 0x33)
|
||||
#define ACRN_IOCTL_DESTROY_IOREQ_CLIENT _IO(ACRN_IOCTL_TYPE, 0x34)
|
||||
#define ACRN_IOCTL_CLEAR_VM_IOREQ _IO(ACRN_IOCTL_TYPE, 0x35)
|
||||
#define ACRN_IOCTL_SET_MEMSEG _IOW(ACRN_IOCTL_TYPE, 0x41, struct acrn_vm_memmap)
|
||||
#define ACRN_IOCTL_UNSET_MEMSEG _IOW(ACRN_IOCTL_TYPE, 0x42, struct acrn_vm_memmap)
|
||||
#define ACRN_IOCTL_SET_PTDEV_INTR _IOW(ACRN_IOCTL_TYPE, 0x53, struct acrn_ptdev_irq)
|
||||
#define ACRN_IOCTL_RESET_PTDEV_INTR _IOW(ACRN_IOCTL_TYPE, 0x54, struct acrn_ptdev_irq)
|
||||
#define ACRN_IOCTL_ASSIGN_PCIDEV _IOW(ACRN_IOCTL_TYPE, 0x55, struct acrn_pcidev)
|
||||
#define ACRN_IOCTL_DEASSIGN_PCIDEV _IOW(ACRN_IOCTL_TYPE, 0x56, struct acrn_pcidev)
|
||||
#define ACRN_IOCTL_PM_GET_CPU_STATE _IOWR(ACRN_IOCTL_TYPE, 0x60, __u64)
|
||||
#define ACRN_IOCTL_IOEVENTFD _IOW(ACRN_IOCTL_TYPE, 0x70, struct acrn_ioeventfd)
|
||||
#define ACRN_IOCTL_IRQFD _IOW(ACRN_IOCTL_TYPE, 0x71, struct acrn_irqfd)
|
||||
#endif
|
|
@ -23,4 +23,6 @@ struct pt_regs;
|
|||
#define MAX_ARG_STRLEN (PAGE_SIZE * 32)
|
||||
#define MAX_ARG_STRINGS 0x7FFFFFFF
|
||||
#define BINPRM_BUF_SIZE 256
|
||||
#define AT_FLAGS_PRESERVE_ARGV0_BIT 0
|
||||
#define AT_FLAGS_PRESERVE_ARGV0 (1 << AT_FLAGS_PRESERVE_ARGV0_BIT)
|
||||
#endif
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#define BPF_JMP32 0x06
|
||||
#define BPF_ALU64 0x07
|
||||
#define BPF_DW 0x18
|
||||
#define BPF_ATOMIC 0xc0
|
||||
#define BPF_XADD 0xc0
|
||||
#define BPF_MOV 0xb0
|
||||
#define BPF_ARSH 0xc0
|
||||
|
@ -40,6 +41,9 @@
|
|||
#define BPF_JSLE 0xd0
|
||||
#define BPF_CALL 0x80
|
||||
#define BPF_EXIT 0x90
|
||||
#define BPF_FETCH 0x01
|
||||
#define BPF_XCHG (0xe0 | BPF_FETCH)
|
||||
#define BPF_CMPXCHG (0xf0 | BPF_FETCH)
|
||||
enum {
|
||||
BPF_REG_0 = 0,
|
||||
BPF_REG_1,
|
||||
|
@ -456,7 +460,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),
|
||||
#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),
|
||||
#define __BPF_ENUM_FN(x) BPF_FUNC_ ##x
|
||||
enum bpf_func_id {
|
||||
__BPF_FUNC_MAPPER(__BPF_ENUM_FN) __BPF_FUNC_MAX_ID,
|
||||
|
@ -783,6 +787,7 @@ struct bpf_prog_info {
|
|||
__aligned_u64 prog_tags;
|
||||
__u64 run_time_ns;
|
||||
__u64 run_cnt;
|
||||
__u64 recursion_misses;
|
||||
} __attribute__((aligned(8)));
|
||||
struct bpf_map_info {
|
||||
__u32 type;
|
||||
|
@ -1001,7 +1006,10 @@ struct bpf_fib_lookup {
|
|||
__u8 l4_protocol;
|
||||
__be16 sport;
|
||||
__be16 dport;
|
||||
__u16 tot_len;
|
||||
union {
|
||||
__u16 tot_len;
|
||||
__u16 mtu_result;
|
||||
};
|
||||
__u32 ifindex;
|
||||
union {
|
||||
__u8 tos;
|
||||
|
@ -1028,6 +1036,14 @@ struct bpf_redir_neigh {
|
|||
__u32 ipv6_nh[4];
|
||||
};
|
||||
};
|
||||
enum bpf_check_mtu_flags {
|
||||
BPF_MTU_CHK_SEGS = (1U << 0),
|
||||
};
|
||||
enum bpf_check_mtu_ret {
|
||||
BPF_MTU_CHK_RET_SUCCESS,
|
||||
BPF_MTU_CHK_RET_FRAG_NEEDED,
|
||||
BPF_MTU_CHK_RET_SEGS_TOOBIG,
|
||||
};
|
||||
enum bpf_task_fd_type {
|
||||
BPF_FD_TYPE_RAW_TRACEPOINT,
|
||||
BPF_FD_TYPE_TRACEPOINT,
|
||||
|
|
|
@ -40,7 +40,7 @@ struct can_frame {
|
|||
union {
|
||||
__u8 len;
|
||||
__u8 can_dlc;
|
||||
};
|
||||
} __attribute__((packed));
|
||||
__u8 __pad;
|
||||
__u8 __res0;
|
||||
__u8 len8_dlc;
|
||||
|
|
30
libc/kernel/uapi/linux/ccs.h
Normal file
30
libc/kernel/uapi/linux/ccs.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_CCS_H__
|
||||
#define __UAPI_CCS_H__
|
||||
#include <linux/v4l2-controls.h>
|
||||
#define V4L2_CID_CCS_ANALOGUE_GAIN_M0 (V4L2_CID_USER_CCS_BASE + 1)
|
||||
#define V4L2_CID_CCS_ANALOGUE_GAIN_C0 (V4L2_CID_USER_CCS_BASE + 2)
|
||||
#define V4L2_CID_CCS_ANALOGUE_GAIN_M1 (V4L2_CID_USER_CCS_BASE + 3)
|
||||
#define V4L2_CID_CCS_ANALOGUE_GAIN_C1 (V4L2_CID_USER_CCS_BASE + 4)
|
||||
#define V4L2_CID_CCS_ANALOGUE_LINEAR_GAIN (V4L2_CID_USER_CCS_BASE + 5)
|
||||
#define V4L2_CID_CCS_ANALOGUE_EXPONENTIAL_GAIN (V4L2_CID_USER_CCS_BASE + 6)
|
||||
#define V4L2_CID_CCS_SHADING_CORRECTION (V4L2_CID_USER_CCS_BASE + 8)
|
||||
#define V4L2_CID_CCS_LUMINANCE_CORRECTION_LEVEL (V4L2_CID_USER_CCS_BASE + 9)
|
||||
#endif
|
71
libc/kernel/uapi/linux/cxl_mem.h
Normal file
71
libc/kernel/uapi/linux/cxl_mem.h
Normal file
|
@ -0,0 +1,71 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_CXL_MEM_H_
|
||||
#define _UAPI_CXL_MEM_H_
|
||||
#include <linux/types.h>
|
||||
#define CXL_MEM_QUERY_COMMANDS _IOR(0xCE, 1, struct cxl_mem_query_commands)
|
||||
#define CXL_MEM_SEND_COMMAND _IOWR(0xCE, 2, struct cxl_send_command)
|
||||
#define CXL_CMDS ___C(INVALID, "Invalid Command"), ___C(IDENTIFY, "Identify Command"), ___C(RAW, "Raw device command"), ___C(GET_SUPPORTED_LOGS, "Get Supported Logs"), ___C(GET_FW_INFO, "Get FW Info"), ___C(GET_PARTITION_INFO, "Get Partition Information"), ___C(GET_LSA, "Get Label Storage Area"), ___C(GET_HEALTH_INFO, "Get Health Info"), ___C(GET_LOG, "Get Log"), ___C(MAX, "invalid / last command")
|
||||
#define ___C(a,b) CXL_MEM_COMMAND_ID_ ##a
|
||||
enum {
|
||||
CXL_CMDS
|
||||
};
|
||||
#undef ___C
|
||||
#define ___C(a,b) { b }
|
||||
static const struct {
|
||||
const char * name;
|
||||
} cxl_command_names[] = {
|
||||
CXL_CMDS
|
||||
};
|
||||
#undef ___C
|
||||
struct cxl_command_info {
|
||||
__u32 id;
|
||||
__u32 flags;
|
||||
#define CXL_MEM_COMMAND_FLAG_MASK GENMASK(0, 0)
|
||||
__s32 size_in;
|
||||
__s32 size_out;
|
||||
};
|
||||
struct cxl_mem_query_commands {
|
||||
__u32 n_commands;
|
||||
__u32 rsvd;
|
||||
struct cxl_command_info __user commands[];
|
||||
};
|
||||
struct cxl_send_command {
|
||||
__u32 id;
|
||||
__u32 flags;
|
||||
union {
|
||||
struct {
|
||||
__u16 opcode;
|
||||
__u16 rsvd;
|
||||
} raw;
|
||||
__u32 rsvd;
|
||||
};
|
||||
__u32 retval;
|
||||
struct {
|
||||
__s32 size;
|
||||
__u32 rsvd;
|
||||
__u64 payload;
|
||||
} in;
|
||||
struct {
|
||||
__s32 size;
|
||||
__u32 rsvd;
|
||||
__u64 payload;
|
||||
} out;
|
||||
};
|
||||
#endif
|
|
@ -139,6 +139,7 @@ enum devlink_port_flavour {
|
|||
DEVLINK_PORT_FLAVOUR_PCI_VF,
|
||||
DEVLINK_PORT_FLAVOUR_VIRTUAL,
|
||||
DEVLINK_PORT_FLAVOUR_UNUSED,
|
||||
DEVLINK_PORT_FLAVOUR_PCI_SF,
|
||||
};
|
||||
enum devlink_param_cmode {
|
||||
DEVLINK_PARAM_CMODE_RUNTIME,
|
||||
|
@ -368,6 +369,7 @@ enum devlink_attr {
|
|||
DEVLINK_ATTR_REMOTE_RELOAD_STATS,
|
||||
DEVLINK_ATTR_RELOAD_ACTION_INFO,
|
||||
DEVLINK_ATTR_RELOAD_ACTION_STATS,
|
||||
DEVLINK_ATTR_PORT_PCI_SF_NUMBER,
|
||||
__DEVLINK_ATTR_MAX,
|
||||
DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX - 1
|
||||
};
|
||||
|
@ -401,7 +403,17 @@ enum devlink_resource_unit {
|
|||
enum devlink_port_function_attr {
|
||||
DEVLINK_PORT_FUNCTION_ATTR_UNSPEC,
|
||||
DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR,
|
||||
DEVLINK_PORT_FN_ATTR_STATE,
|
||||
DEVLINK_PORT_FN_ATTR_OPSTATE,
|
||||
__DEVLINK_PORT_FUNCTION_ATTR_MAX,
|
||||
DEVLINK_PORT_FUNCTION_ATTR_MAX = __DEVLINK_PORT_FUNCTION_ATTR_MAX - 1
|
||||
};
|
||||
enum devlink_port_fn_state {
|
||||
DEVLINK_PORT_FN_STATE_INACTIVE,
|
||||
DEVLINK_PORT_FN_STATE_ACTIVE,
|
||||
};
|
||||
enum devlink_port_fn_opstate {
|
||||
DEVLINK_PORT_FN_OPSTATE_DETACHED,
|
||||
DEVLINK_PORT_FN_OPSTATE_ATTACHED,
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -104,9 +104,9 @@ enum {
|
|||
#define DM_TARGET_MSG _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl)
|
||||
#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
|
||||
#define DM_VERSION_MAJOR 4
|
||||
#define DM_VERSION_MINOR 43
|
||||
#define DM_VERSION_MINOR 44
|
||||
#define DM_VERSION_PATCHLEVEL 0
|
||||
#define DM_VERSION_EXTRA "-ioctl(2020-10-01)"
|
||||
#define DM_VERSION_EXTRA "-ioctl(2021-02-01)"
|
||||
#define DM_READONLY_FLAG (1 << 0)
|
||||
#define DM_SUSPEND_FLAG (1 << 1)
|
||||
#define DM_PERSISTENT_DEV_FLAG (1 << 3)
|
||||
|
|
|
@ -178,6 +178,7 @@ enum {
|
|||
ETHTOOL_A_LINKMODES_DUPLEX,
|
||||
ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG,
|
||||
ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE,
|
||||
ETHTOOL_A_LINKMODES_LANES,
|
||||
__ETHTOOL_A_LINKMODES_CNT,
|
||||
ETHTOOL_A_LINKMODES_MAX = __ETHTOOL_A_LINKMODES_CNT - 1
|
||||
};
|
||||
|
|
30
libc/kernel/uapi/linux/fsl_mc.h
Normal file
30
libc/kernel/uapi/linux/fsl_mc.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_FSL_MC_H_
|
||||
#define _UAPI_FSL_MC_H_
|
||||
#include <linux/types.h>
|
||||
#define MC_CMD_NUM_OF_PARAMS 7
|
||||
struct fsl_mc_command {
|
||||
__le64 header;
|
||||
__le64 params[MC_CMD_NUM_OF_PARAMS];
|
||||
};
|
||||
#define FSL_MC_SEND_CMD_IOCTL_TYPE 'R'
|
||||
#define FSL_MC_SEND_CMD_IOCTL_SEQ 0xE0
|
||||
#define FSL_MC_SEND_MC_COMMAND _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_MC_SEND_CMD_IOCTL_SEQ, struct fsl_mc_command)
|
||||
#endif
|
|
@ -55,6 +55,17 @@ struct fsverity_formatted_digest {
|
|||
__le16 digest_size;
|
||||
__u8 digest[];
|
||||
};
|
||||
#define FS_VERITY_METADATA_TYPE_MERKLE_TREE 1
|
||||
#define FS_VERITY_METADATA_TYPE_DESCRIPTOR 2
|
||||
#define FS_VERITY_METADATA_TYPE_SIGNATURE 3
|
||||
struct fsverity_read_metadata_arg {
|
||||
__u64 metadata_type;
|
||||
__u64 offset;
|
||||
__u64 length;
|
||||
__u64 buf_ptr;
|
||||
__u64 __reserved;
|
||||
};
|
||||
#define FS_IOC_ENABLE_VERITY _IOW('f', 133, struct fsverity_enable_arg)
|
||||
#define FS_IOC_MEASURE_VERITY _IOWR('f', 134, struct fsverity_digest)
|
||||
#define FS_IOC_READ_VERITY_METADATA _IOWR('f', 135, struct fsverity_read_metadata_arg)
|
||||
#endif
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
#define GFS2_FORMAT_RI 1100
|
||||
#define GFS2_FORMAT_DE 1200
|
||||
#define GFS2_FORMAT_QU 1500
|
||||
#define GFS2_FORMAT_FS 1801
|
||||
#define GFS2_FORMAT_FS 1802
|
||||
#define GFS2_FORMAT_MULTI 1900
|
||||
struct gfs2_inum {
|
||||
__be64 no_formal_ino;
|
||||
|
@ -260,7 +260,8 @@ struct gfs2_leaf {
|
|||
#define GFS2_EATYPE_USR 1
|
||||
#define GFS2_EATYPE_SYS 2
|
||||
#define GFS2_EATYPE_SECURITY 3
|
||||
#define GFS2_EATYPE_LAST 3
|
||||
#define GFS2_EATYPE_TRUSTED 4
|
||||
#define GFS2_EATYPE_LAST 4
|
||||
#define GFS2_EATYPE_VALID(x) ((x) <= GFS2_EATYPE_LAST)
|
||||
#define GFS2_EAFLAG_LAST 0x01
|
||||
struct gfs2_ea_header {
|
||||
|
|
|
@ -60,6 +60,7 @@ struct i2c_msg {
|
|||
#define I2C_FUNC_SMBUS_BLOCK_DATA (I2C_FUNC_SMBUS_READ_BLOCK_DATA | I2C_FUNC_SMBUS_WRITE_BLOCK_DATA)
|
||||
#define I2C_FUNC_SMBUS_I2C_BLOCK (I2C_FUNC_SMBUS_READ_I2C_BLOCK | I2C_FUNC_SMBUS_WRITE_I2C_BLOCK)
|
||||
#define I2C_FUNC_SMBUS_EMUL (I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_PROC_CALL | I2C_FUNC_SMBUS_WRITE_BLOCK_DATA | I2C_FUNC_SMBUS_I2C_BLOCK | I2C_FUNC_SMBUS_PEC)
|
||||
#define I2C_FUNC_SMBUS_EMUL_ALL (I2C_FUNC_SMBUS_EMUL | I2C_FUNC_SMBUS_READ_BLOCK_DATA | I2C_FUNC_SMBUS_BLOCK_PROC_CALL)
|
||||
#define I2C_SMBUS_BLOCK_MAX 32
|
||||
union i2c_smbus_data {
|
||||
__u8 byte;
|
||||
|
|
|
@ -231,8 +231,8 @@ struct dsa_completion_record {
|
|||
uint32_t invalid_flags : 24;
|
||||
uint32_t rsvd2 : 8;
|
||||
};
|
||||
uint16_t delta_rec_size;
|
||||
uint16_t crc_val;
|
||||
uint32_t delta_rec_size;
|
||||
uint32_t crc_val;
|
||||
struct {
|
||||
uint32_t dif_chk_ref_tag;
|
||||
uint16_t dif_chk_app_tag_mask;
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
#define BOND_XMIT_POLICY_LAYER23 2
|
||||
#define BOND_XMIT_POLICY_ENCAP23 3
|
||||
#define BOND_XMIT_POLICY_ENCAP34 4
|
||||
#define BOND_XMIT_POLICY_VLAN_SRCMAC 5
|
||||
#define LACP_STATE_LACP_ACTIVITY 0x1
|
||||
#define LACP_STATE_LACP_TIMEOUT 0x2
|
||||
#define LACP_STATE_AGGREGATION 0x4
|
||||
|
|
|
@ -282,6 +282,8 @@ enum {
|
|||
IFLA_BRPORT_BACKUP_PORT,
|
||||
IFLA_BRPORT_MRP_RING_OPEN,
|
||||
IFLA_BRPORT_MRP_IN_OPEN,
|
||||
IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT,
|
||||
IFLA_BRPORT_MCAST_EHT_HOSTS_CNT,
|
||||
__IFLA_BRPORT_MAX
|
||||
};
|
||||
#define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/xattr.h>
|
||||
#define INCFS_NAME "incremental-fs"
|
||||
#define INCFS_MAGIC_NUMBER (unsigned long) (0x5346434e49ul)
|
||||
#define INCFS_MAGIC_NUMBER (0x5346434e49ul & ULONG_MAX)
|
||||
#define INCFS_DATA_FILE_BLOCK_SIZE 4096
|
||||
#define INCFS_HEADER_VER 1
|
||||
#define INCFS_MAX_HASH_SIZE 32
|
||||
|
@ -50,6 +50,7 @@
|
|||
#define INCFS_IOC_GET_BLOCK_COUNT _IOR(INCFS_IOCTL_BASE_CODE, 36, struct incfs_get_block_count_args)
|
||||
#define INCFS_IOC_GET_READ_TIMEOUTS _IOR(INCFS_IOCTL_BASE_CODE, 37, struct incfs_get_read_timeouts_args)
|
||||
#define INCFS_IOC_SET_READ_TIMEOUTS _IOW(INCFS_IOCTL_BASE_CODE, 38, struct incfs_set_read_timeouts_args)
|
||||
#define INCFS_IOC_GET_LAST_READ_ERROR _IOW(INCFS_IOCTL_BASE_CODE, 39, struct incfs_get_last_read_error_args)
|
||||
#define INCFS_FEATURE_FLAG_COREFS "corefs"
|
||||
#define INCFS_FEATURE_FLAG_ZSTD "zstd"
|
||||
#define INCFS_FEATURE_FLAG_V2 "v2"
|
||||
|
@ -165,4 +166,11 @@ struct incfs_set_read_timeouts_args {
|
|||
__aligned_u64 timeouts_array;
|
||||
__u32 timeouts_array_size;
|
||||
};
|
||||
struct incfs_get_last_read_error_args {
|
||||
incfs_uuid_t file_id_out;
|
||||
__u64 time_us_out;
|
||||
__u32 page_out;
|
||||
__u32 errno_out;
|
||||
__u64 reserved;
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -191,6 +191,7 @@ struct io_uring_params {
|
|||
#define IORING_FEAT_POLL_32BITS (1U << 6)
|
||||
#define IORING_FEAT_SQPOLL_NONFIXED (1U << 7)
|
||||
#define IORING_FEAT_EXT_ARG (1U << 8)
|
||||
#define IORING_FEAT_NATIVE_WORKERS (1U << 9)
|
||||
enum {
|
||||
IORING_REGISTER_BUFFERS = 0,
|
||||
IORING_UNREGISTER_BUFFERS = 1,
|
||||
|
@ -212,6 +213,12 @@ struct io_uring_files_update {
|
|||
__u32 resv;
|
||||
__aligned_u64 fds;
|
||||
};
|
||||
struct io_uring_rsrc_update {
|
||||
__u32 offset;
|
||||
__u32 resv;
|
||||
__aligned_u64 data;
|
||||
};
|
||||
#define IORING_REGISTER_FILES_SKIP (- 2)
|
||||
#define IO_URING_OP_SUPPORTED (1U << 0)
|
||||
struct io_uring_probe_op {
|
||||
__u8 op;
|
||||
|
|
|
@ -143,6 +143,7 @@ enum {
|
|||
DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,
|
||||
DEVCONF_NDISC_TCLASS,
|
||||
DEVCONF_RPL_SEG_ENABLED,
|
||||
DEVCONF_RA_DEFRTR_METRIC,
|
||||
DEVCONF_MAX
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -164,6 +164,19 @@ struct kvm_hyperv_exit {
|
|||
} syndbg;
|
||||
} u;
|
||||
};
|
||||
struct kvm_xen_exit {
|
||||
#define KVM_EXIT_XEN_HCALL 1
|
||||
__u32 type;
|
||||
union {
|
||||
struct {
|
||||
__u32 longmode;
|
||||
__u32 cpl;
|
||||
__u64 input;
|
||||
__u64 result;
|
||||
__u64 params[6];
|
||||
} hcall;
|
||||
} u;
|
||||
};
|
||||
#define KVM_S390_GET_SKEYS_NONE 1
|
||||
#define KVM_S390_SKEYS_MAX 1048576
|
||||
#define KVM_EXIT_UNKNOWN 0
|
||||
|
@ -199,6 +212,8 @@ struct kvm_hyperv_exit {
|
|||
#define KVM_EXIT_X86_WRMSR 30
|
||||
#define KVM_EXIT_DIRTY_RING_FULL 31
|
||||
#define KVM_EXIT_AP_RESET_HOLD 32
|
||||
#define KVM_EXIT_X86_BUS_LOCK 33
|
||||
#define KVM_EXIT_XEN 34
|
||||
#define KVM_INTERNAL_ERROR_EMULATION 1
|
||||
#define KVM_INTERNAL_ERROR_SIMUL_EX 2
|
||||
#define KVM_INTERNAL_ERROR_DELIVERY_EV 3
|
||||
|
@ -336,6 +351,7 @@ struct kvm_run {
|
|||
__u32 index;
|
||||
__u64 data;
|
||||
} msr;
|
||||
struct kvm_xen_exit xen;
|
||||
char padding[256];
|
||||
};
|
||||
#define SYNC_REGS_SIZE_BYTES 2048
|
||||
|
@ -836,6 +852,8 @@ struct kvm_ppc_resize_hpt {
|
|||
#define KVM_CAP_ENFORCE_PV_FEATURE_CPUID 190
|
||||
#define KVM_CAP_SYS_HYPERV_CPUID 191
|
||||
#define KVM_CAP_DIRTY_LOG_RING 192
|
||||
#define KVM_CAP_X86_BUS_LOCK_EXIT 193
|
||||
#define KVM_CAP_PPC_DAWR1 194
|
||||
#ifdef KVM_CAP_IRQ_ROUTING
|
||||
struct kvm_irq_routing_irqchip {
|
||||
__u32 irqchip;
|
||||
|
@ -896,6 +914,10 @@ struct kvm_x86_mce {
|
|||
};
|
||||
#endif
|
||||
#ifdef KVM_CAP_XEN_HVM
|
||||
#define KVM_XEN_HVM_CONFIG_HYPERCALL_MSR (1 << 0)
|
||||
#define KVM_XEN_HVM_CONFIG_INTERCEPT_HCALL (1 << 1)
|
||||
#define KVM_XEN_HVM_CONFIG_SHARED_INFO (1 << 2)
|
||||
#define KVM_XEN_HVM_CONFIG_RUNSTATE (1 << 3)
|
||||
struct kvm_xen_hvm_config {
|
||||
__u32 flags;
|
||||
__u32 msr;
|
||||
|
@ -1189,6 +1211,47 @@ struct kvm_pv_cmd {
|
|||
#define KVM_S390_PV_COMMAND _IOWR(KVMIO, 0xc5, struct kvm_pv_cmd)
|
||||
#define KVM_X86_SET_MSR_FILTER _IOW(KVMIO, 0xc6, struct kvm_msr_filter)
|
||||
#define KVM_RESET_DIRTY_RINGS _IO(KVMIO, 0xc7)
|
||||
#define KVM_XEN_HVM_GET_ATTR _IOWR(KVMIO, 0xc8, struct kvm_xen_hvm_attr)
|
||||
#define KVM_XEN_HVM_SET_ATTR _IOW(KVMIO, 0xc9, struct kvm_xen_hvm_attr)
|
||||
struct kvm_xen_hvm_attr {
|
||||
__u16 type;
|
||||
__u16 pad[3];
|
||||
union {
|
||||
__u8 long_mode;
|
||||
__u8 vector;
|
||||
struct {
|
||||
__u64 gfn;
|
||||
} shared_info;
|
||||
__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_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)
|
||||
struct kvm_xen_vcpu_attr {
|
||||
__u16 type;
|
||||
__u16 pad[3];
|
||||
union {
|
||||
__u64 gpa;
|
||||
__u64 pad[8];
|
||||
struct {
|
||||
__u64 state;
|
||||
__u64 state_entry_time;
|
||||
__u64 time_running;
|
||||
__u64 time_runnable;
|
||||
__u64 time_blocked;
|
||||
__u64 time_offline;
|
||||
} runstate;
|
||||
} u;
|
||||
};
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_VCPU_INFO 0x0
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_VCPU_TIME_INFO 0x1
|
||||
#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADDR 0x2
|
||||
#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
|
||||
enum sev_cmd_id {
|
||||
KVM_SEV_INIT = 0,
|
||||
KVM_SEV_ES_INIT,
|
||||
|
@ -1210,6 +1273,7 @@ enum sev_cmd_id {
|
|||
KVM_SEV_DBG_DECRYPT,
|
||||
KVM_SEV_DBG_ENCRYPT,
|
||||
KVM_SEV_CERT_EXPORT,
|
||||
KVM_SEV_GET_ATTESTATION_REPORT,
|
||||
KVM_SEV_NR_MAX,
|
||||
};
|
||||
struct kvm_sev_cmd {
|
||||
|
@ -1252,6 +1316,11 @@ struct kvm_sev_dbg {
|
|||
__u64 dst_uaddr;
|
||||
__u32 len;
|
||||
};
|
||||
struct kvm_sev_attestation_report {
|
||||
__u8 mnonce[16];
|
||||
__u64 uaddr;
|
||||
__u32 len;
|
||||
};
|
||||
#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)
|
||||
#define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1)
|
||||
#define KVM_DEV_ASSIGN_MASK_INTX (1 << 2)
|
||||
|
@ -1320,4 +1389,6 @@ struct kvm_dirty_gfn {
|
|||
__u32 slot;
|
||||
__u64 offset;
|
||||
};
|
||||
#define KVM_BUS_LOCK_DETECTION_OFF (1 << 0)
|
||||
#define KVM_BUS_LOCK_DETECTION_EXIT (1 << 1)
|
||||
#endif
|
||||
|
|
|
@ -104,6 +104,7 @@ enum {
|
|||
L2TP_ATTR_RX_ERRORS,
|
||||
L2TP_ATTR_STATS_PAD,
|
||||
L2TP_ATTR_RX_COOKIE_DISCARDS,
|
||||
L2TP_ATTR_RX_INVALID,
|
||||
__L2TP_ATTR_STATS_MAX,
|
||||
};
|
||||
#define L2TP_ATTR_STATS_MAX (__L2TP_ATTR_STATS_MAX - 1)
|
||||
|
|
|
@ -61,6 +61,7 @@ struct media_device_info {
|
|||
#define MEDIA_ENT_F_PROC_VIDEO_STATISTICS (MEDIA_ENT_F_BASE + 0x4006)
|
||||
#define MEDIA_ENT_F_PROC_VIDEO_ENCODER (MEDIA_ENT_F_BASE + 0x4007)
|
||||
#define MEDIA_ENT_F_PROC_VIDEO_DECODER (MEDIA_ENT_F_BASE + 0x4008)
|
||||
#define MEDIA_ENT_F_PROC_VIDEO_ISP (MEDIA_ENT_F_BASE + 0x4009)
|
||||
#define MEDIA_ENT_F_VID_MUX (MEDIA_ENT_F_BASE + 0x5001)
|
||||
#define MEDIA_ENT_F_VID_IF_BRIDGE (MEDIA_ENT_F_BASE + 0x5002)
|
||||
#define MEDIA_ENT_F_ATV_DECODER (MEDIA_ENT_F_OLD_SUBDEV_BASE + 4)
|
||||
|
|
|
@ -29,7 +29,8 @@ enum {
|
|||
};
|
||||
#define MPOL_F_STATIC_NODES (1 << 15)
|
||||
#define MPOL_F_RELATIVE_NODES (1 << 14)
|
||||
#define MPOL_MODE_FLAGS (MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES)
|
||||
#define MPOL_F_NUMA_BALANCING (1 << 13)
|
||||
#define MPOL_MODE_FLAGS (MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES | MPOL_F_NUMA_BALANCING)
|
||||
#define MPOL_F_NODE (1 << 0)
|
||||
#define MPOL_F_ADDR (1 << 1)
|
||||
#define MPOL_F_MEMS_ALLOWED (1 << 2)
|
||||
|
|
70
libc/kernel/uapi/linux/misc/bcm_vk.h
Normal file
70
libc/kernel/uapi/linux/misc/bcm_vk.h
Normal file
|
@ -0,0 +1,70 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_MISC_BCM_VK_H
|
||||
#define __UAPI_LINUX_MISC_BCM_VK_H
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
#define BCM_VK_MAX_FILENAME 64
|
||||
struct vk_image {
|
||||
__u32 type;
|
||||
#define VK_IMAGE_TYPE_BOOT1 1
|
||||
#define VK_IMAGE_TYPE_BOOT2 2
|
||||
__u8 filename[BCM_VK_MAX_FILENAME];
|
||||
};
|
||||
struct vk_reset {
|
||||
__u32 arg1;
|
||||
__u32 arg2;
|
||||
};
|
||||
#define VK_MAGIC 0x5e
|
||||
#define VK_IOCTL_LOAD_IMAGE _IOW(VK_MAGIC, 0x2, struct vk_image)
|
||||
#define VK_IOCTL_RESET _IOW(VK_MAGIC, 0x4, struct vk_reset)
|
||||
#define VK_BAR_FWSTS 0x41c
|
||||
#define VK_BAR_COP_FWSTS 0x428
|
||||
#define VK_FWSTS_RELOCATION_ENTRY (1UL << 0)
|
||||
#define VK_FWSTS_RELOCATION_EXIT (1UL << 1)
|
||||
#define VK_FWSTS_INIT_START (1UL << 2)
|
||||
#define VK_FWSTS_ARCH_INIT_DONE (1UL << 3)
|
||||
#define VK_FWSTS_PRE_KNL1_INIT_DONE (1UL << 4)
|
||||
#define VK_FWSTS_PRE_KNL2_INIT_DONE (1UL << 5)
|
||||
#define VK_FWSTS_POST_KNL_INIT_DONE (1UL << 6)
|
||||
#define VK_FWSTS_INIT_DONE (1UL << 7)
|
||||
#define VK_FWSTS_APP_INIT_START (1UL << 8)
|
||||
#define VK_FWSTS_APP_INIT_DONE (1UL << 9)
|
||||
#define VK_FWSTS_MASK 0xffffffff
|
||||
#define VK_FWSTS_READY (VK_FWSTS_INIT_START | VK_FWSTS_ARCH_INIT_DONE | VK_FWSTS_PRE_KNL1_INIT_DONE | VK_FWSTS_PRE_KNL2_INIT_DONE | VK_FWSTS_POST_KNL_INIT_DONE | VK_FWSTS_INIT_DONE | VK_FWSTS_APP_INIT_START | VK_FWSTS_APP_INIT_DONE)
|
||||
#define VK_FWSTS_APP_DEINIT_START (1UL << 23)
|
||||
#define VK_FWSTS_APP_DEINIT_DONE (1UL << 24)
|
||||
#define VK_FWSTS_DRV_DEINIT_START (1UL << 25)
|
||||
#define VK_FWSTS_DRV_DEINIT_DONE (1UL << 26)
|
||||
#define VK_FWSTS_RESET_DONE (1UL << 27)
|
||||
#define VK_FWSTS_DEINIT_TRIGGERED (VK_FWSTS_APP_DEINIT_START | VK_FWSTS_APP_DEINIT_DONE | VK_FWSTS_DRV_DEINIT_START | VK_FWSTS_DRV_DEINIT_DONE)
|
||||
#define VK_FWSTS_RESET_REASON_SHIFT 28
|
||||
#define VK_FWSTS_RESET_REASON_MASK (0xf << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_SYS_PWRUP (0x0 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_MBOX_DB (0x1 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_M7_WDOG (0x2 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_TEMP (0x3 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_PCI_FLR (0x4 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_PCI_HOT (0x5 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_PCI_WARM (0x6 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_PCI_COLD (0x7 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_L1 (0x8 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_L0 (0x9 << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#define VK_FWSTS_RESET_UNKNOWN (0xf << VK_FWSTS_RESET_REASON_SHIFT)
|
||||
#endif
|
|
@ -18,6 +18,7 @@
|
|||
****************************************************************************/
|
||||
#ifndef _UAPI_LINUX_MOUNT_H
|
||||
#define _UAPI_LINUX_MOUNT_H
|
||||
#include <linux/types.h>
|
||||
#define MS_RDONLY 1
|
||||
#define MS_NOSUID 2
|
||||
#define MS_NODEV 4
|
||||
|
@ -87,4 +88,12 @@ enum fsconfig_command {
|
|||
#define MOUNT_ATTR_NOATIME 0x00000010
|
||||
#define MOUNT_ATTR_STRICTATIME 0x00000020
|
||||
#define MOUNT_ATTR_NODIRATIME 0x00000080
|
||||
#define MOUNT_ATTR_IDMAP 0x00100000
|
||||
struct mount_attr {
|
||||
__u64 attr_set;
|
||||
__u64 attr_clr;
|
||||
__u64 propagation;
|
||||
__u64 userns_fd;
|
||||
};
|
||||
#define MOUNT_ATTR_SIZE_VER0 32
|
||||
#endif
|
||||
|
|
|
@ -47,6 +47,7 @@ enum {
|
|||
#define MPTCP_SUBFLOW_ATTR_MAX (__MPTCP_SUBFLOW_ATTR_MAX - 1)
|
||||
#define MPTCP_PM_NAME "mptcp_pm"
|
||||
#define MPTCP_PM_CMD_GRP_NAME "mptcp_pm_cmds"
|
||||
#define MPTCP_PM_EV_GRP_NAME "mptcp_pm_events"
|
||||
#define MPTCP_PM_VER 0x1
|
||||
enum {
|
||||
MPTCP_PM_ATTR_UNSPEC,
|
||||
|
@ -79,6 +80,7 @@ enum {
|
|||
MPTCP_PM_CMD_FLUSH_ADDRS,
|
||||
MPTCP_PM_CMD_SET_LIMITS,
|
||||
MPTCP_PM_CMD_GET_LIMITS,
|
||||
MPTCP_PM_CMD_SET_FLAGS,
|
||||
__MPTCP_PM_CMD_AFTER_LAST
|
||||
};
|
||||
#define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
|
||||
|
@ -95,5 +97,38 @@ struct mptcp_info {
|
|||
__u64 mptcpi_write_seq;
|
||||
__u64 mptcpi_snd_una;
|
||||
__u64 mptcpi_rcv_nxt;
|
||||
__u8 mptcpi_local_addr_used;
|
||||
__u8 mptcpi_local_addr_max;
|
||||
};
|
||||
enum mptcp_event_type {
|
||||
MPTCP_EVENT_UNSPEC = 0,
|
||||
MPTCP_EVENT_CREATED = 1,
|
||||
MPTCP_EVENT_ESTABLISHED = 2,
|
||||
MPTCP_EVENT_CLOSED = 3,
|
||||
MPTCP_EVENT_ANNOUNCED = 6,
|
||||
MPTCP_EVENT_REMOVED = 7,
|
||||
MPTCP_EVENT_SUB_ESTABLISHED = 10,
|
||||
MPTCP_EVENT_SUB_CLOSED = 11,
|
||||
MPTCP_EVENT_SUB_PRIORITY = 13,
|
||||
};
|
||||
enum mptcp_event_attr {
|
||||
MPTCP_ATTR_UNSPEC = 0,
|
||||
MPTCP_ATTR_TOKEN,
|
||||
MPTCP_ATTR_FAMILY,
|
||||
MPTCP_ATTR_LOC_ID,
|
||||
MPTCP_ATTR_REM_ID,
|
||||
MPTCP_ATTR_SADDR4,
|
||||
MPTCP_ATTR_SADDR6,
|
||||
MPTCP_ATTR_DADDR4,
|
||||
MPTCP_ATTR_DADDR6,
|
||||
MPTCP_ATTR_SPORT,
|
||||
MPTCP_ATTR_DPORT,
|
||||
MPTCP_ATTR_BACKUP,
|
||||
MPTCP_ATTR_ERROR,
|
||||
MPTCP_ATTR_FLAGS,
|
||||
MPTCP_ATTR_TIMEOUT,
|
||||
MPTCP_ATTR_IF_IDX,
|
||||
__MPTCP_ATTR_AFTER_LAST
|
||||
};
|
||||
#define MPTCP_ATTR_MAX (__MPTCP_ATTR_AFTER_LAST - 1)
|
||||
#endif
|
||||
|
|
|
@ -105,7 +105,9 @@ enum nft_hook_attributes {
|
|||
#define NFTA_HOOK_MAX (__NFTA_HOOK_MAX - 1)
|
||||
enum nft_table_flags {
|
||||
NFT_TABLE_F_DORMANT = 0x1,
|
||||
NFT_TABLE_F_OWNER = 0x2,
|
||||
};
|
||||
#define NFT_TABLE_F_MASK (NFT_TABLE_F_DORMANT | NFT_TABLE_F_OWNER)
|
||||
enum nft_table_attributes {
|
||||
NFTA_TABLE_UNSPEC,
|
||||
NFTA_TABLE_NAME,
|
||||
|
@ -114,6 +116,7 @@ enum nft_table_attributes {
|
|||
NFTA_TABLE_HANDLE,
|
||||
NFTA_TABLE_PAD,
|
||||
NFTA_TABLE_USERDATA,
|
||||
NFTA_TABLE_OWNER,
|
||||
__NFTA_TABLE_MAX
|
||||
};
|
||||
#define NFTA_TABLE_MAX (__NFTA_TABLE_MAX - 1)
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#define _NFNL_CTHELPER_H_
|
||||
#define NFCT_HELPER_STATUS_DISABLED 0
|
||||
#define NFCT_HELPER_STATUS_ENABLED 1
|
||||
enum nfnl_acct_msg_types {
|
||||
enum nfnl_cthelper_msg_types {
|
||||
NFNL_MSG_CTHELPER_NEW,
|
||||
NFNL_MSG_CTHELPER_GET,
|
||||
NFNL_MSG_CTHELPER_DEL,
|
||||
|
|
|
@ -21,13 +21,9 @@
|
|||
#include <linux/types.h>
|
||||
#define MAX_IDLETIMER_LABEL_SIZE 28
|
||||
#define XT_IDLETIMER_ALARM 0x01
|
||||
#define NLMSG_MAX_SIZE 64
|
||||
#define NL_EVENT_TYPE_INACTIVE 0
|
||||
#define NL_EVENT_TYPE_ACTIVE 1
|
||||
struct idletimer_tg_info {
|
||||
__u32 timeout;
|
||||
char label[MAX_IDLETIMER_LABEL_SIZE];
|
||||
__u8 send_nl_msg;
|
||||
struct idletimer_tg * timer __attribute__((aligned(8)));
|
||||
};
|
||||
struct idletimer_tg_info_v1 {
|
||||
|
|
|
@ -67,6 +67,11 @@ enum nfs3_ftype {
|
|||
NF3FIFO = 7,
|
||||
NF3BAD = 8
|
||||
};
|
||||
enum nfs3_time_how {
|
||||
DONT_CHANGE = 0,
|
||||
SET_TO_SERVER_TIME = 1,
|
||||
SET_TO_CLIENT_TIME = 2,
|
||||
};
|
||||
struct nfs3_fh {
|
||||
unsigned short size;
|
||||
unsigned char data[NFS3_FHSIZE];
|
||||
|
|
|
@ -495,6 +495,7 @@ enum nl80211_attrs {
|
|||
NL80211_ATTR_SAE_PWE,
|
||||
NL80211_ATTR_RECONNECT_REQUESTED,
|
||||
NL80211_ATTR_SAR_SPEC,
|
||||
NL80211_ATTR_DISABLE_HE,
|
||||
__NL80211_ATTR_AFTER_LAST,
|
||||
NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
|
||||
NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
|
||||
|
|
|
@ -29,4 +29,5 @@ struct open_how {
|
|||
#define RESOLVE_NO_SYMLINKS 0x04
|
||||
#define RESOLVE_BENEATH 0x08
|
||||
#define RESOLVE_IN_ROOT 0x10
|
||||
#define RESOLVE_CACHED 0x20
|
||||
#endif
|
||||
|
|
|
@ -103,9 +103,11 @@ enum perf_event_sample_format {
|
|||
PERF_SAMPLE_CGROUP = 1U << 21,
|
||||
PERF_SAMPLE_DATA_PAGE_SIZE = 1U << 22,
|
||||
PERF_SAMPLE_CODE_PAGE_SIZE = 1U << 23,
|
||||
PERF_SAMPLE_MAX = 1U << 24,
|
||||
PERF_SAMPLE_WEIGHT_STRUCT = 1U << 24,
|
||||
PERF_SAMPLE_MAX = 1U << 25,
|
||||
__PERF_SAMPLE_CALLCHAIN_EARLY = 1ULL << 63,
|
||||
};
|
||||
#define PERF_SAMPLE_WEIGHT_TYPE (PERF_SAMPLE_WEIGHT | PERF_SAMPLE_WEIGHT_STRUCT)
|
||||
enum perf_branch_sample_type_shift {
|
||||
PERF_SAMPLE_BRANCH_USER_SHIFT = 0,
|
||||
PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 1,
|
||||
|
@ -205,7 +207,7 @@ struct perf_event_attr {
|
|||
};
|
||||
__u64 sample_type;
|
||||
__u64 read_format;
|
||||
__u64 disabled : 1, inherit : 1, pinned : 1, exclusive : 1, exclude_user : 1, exclude_kernel : 1, exclude_hv : 1, exclude_idle : 1, mmap : 1, comm : 1, freq : 1, inherit_stat : 1, enable_on_exec : 1, task : 1, watermark : 1, precise_ip : 2, mmap_data : 1, sample_id_all : 1, exclude_host : 1, exclude_guest : 1, exclude_callchain_kernel : 1, exclude_callchain_user : 1, mmap2 : 1, comm_exec : 1, use_clockid : 1, context_switch : 1, write_backward : 1, namespaces : 1, ksymbol : 1, bpf_event : 1, aux_output : 1, cgroup : 1, text_poke : 1, __reserved_1 : 30;
|
||||
__u64 disabled : 1, inherit : 1, pinned : 1, exclusive : 1, exclude_user : 1, exclude_kernel : 1, exclude_hv : 1, exclude_idle : 1, mmap : 1, comm : 1, freq : 1, inherit_stat : 1, enable_on_exec : 1, task : 1, watermark : 1, precise_ip : 2, mmap_data : 1, sample_id_all : 1, exclude_host : 1, exclude_guest : 1, exclude_callchain_kernel : 1, exclude_callchain_user : 1, mmap2 : 1, comm_exec : 1, use_clockid : 1, context_switch : 1, write_backward : 1, namespaces : 1, ksymbol : 1, bpf_event : 1, aux_output : 1, cgroup : 1, text_poke : 1, build_id : 1, __reserved_1 : 29;
|
||||
union {
|
||||
__u32 wakeup_events;
|
||||
__u32 wakeup_watermark;
|
||||
|
@ -301,6 +303,7 @@ struct perf_event_mmap_page {
|
|||
#define PERF_RECORD_MISC_SWITCH_OUT (1 << 13)
|
||||
#define PERF_RECORD_MISC_EXACT_IP (1 << 14)
|
||||
#define PERF_RECORD_MISC_SWITCH_OUT_PREEMPT (1 << 14)
|
||||
#define PERF_RECORD_MISC_MMAP_BUILD_ID (1 << 14)
|
||||
#define PERF_RECORD_MISC_EXT_RESERVED (1 << 15)
|
||||
struct perf_event_header {
|
||||
__u32 type;
|
||||
|
@ -380,14 +383,14 @@ enum perf_callchain_context {
|
|||
union perf_mem_data_src {
|
||||
__u64 val;
|
||||
struct {
|
||||
__u64 mem_op : 5, mem_lvl : 14, mem_snoop : 5, mem_lock : 2, mem_dtlb : 7, mem_lvl_num : 4, mem_remote : 1, mem_snoopx : 2, mem_rsvd : 24;
|
||||
__u64 mem_op : 5, mem_lvl : 14, mem_snoop : 5, mem_lock : 2, mem_dtlb : 7, mem_lvl_num : 4, mem_remote : 1, mem_snoopx : 2, mem_blk : 3, mem_rsvd : 21;
|
||||
};
|
||||
};
|
||||
#elif defined(__BIG_ENDIAN_BITFIELD)
|
||||
union perf_mem_data_src {
|
||||
__u64 val;
|
||||
struct {
|
||||
__u64 mem_rsvd : 24, mem_snoopx : 2, mem_remote : 1, mem_lvl_num : 4, mem_dtlb : 7, mem_lock : 2, mem_snoop : 5, mem_lvl : 14, mem_op : 5;
|
||||
__u64 mem_rsvd : 21, mem_blk : 3, mem_snoopx : 2, mem_remote : 1, mem_lvl_num : 4, mem_dtlb : 7, mem_lock : 2, mem_snoop : 5, mem_lvl : 14, mem_op : 5;
|
||||
};
|
||||
};
|
||||
#else
|
||||
|
@ -445,10 +448,32 @@ union perf_mem_data_src {
|
|||
#define PERF_MEM_TLB_WK 0x20
|
||||
#define PERF_MEM_TLB_OS 0x40
|
||||
#define PERF_MEM_TLB_SHIFT 26
|
||||
#define PERF_MEM_BLK_NA 0x01
|
||||
#define PERF_MEM_BLK_DATA 0x02
|
||||
#define PERF_MEM_BLK_ADDR 0x04
|
||||
#define PERF_MEM_BLK_SHIFT 40
|
||||
#define PERF_MEM_S(a,s) (((__u64) PERF_MEM_ ##a ##_ ##s) << PERF_MEM_ ##a ##_SHIFT)
|
||||
struct perf_branch_entry {
|
||||
__u64 from;
|
||||
__u64 to;
|
||||
__u64 mispred : 1, predicted : 1, in_tx : 1, abort : 1, cycles : 16, type : 4, reserved : 40;
|
||||
};
|
||||
union perf_sample_weight {
|
||||
__u64 full;
|
||||
#ifdef __LITTLE_ENDIAN_BITFIELD
|
||||
struct {
|
||||
__u32 var1_dw;
|
||||
__u16 var2_w;
|
||||
__u16 var3_w;
|
||||
};
|
||||
#elif defined(__BIG_ENDIAN_BITFIELD)
|
||||
struct {
|
||||
__u16 var3_w;
|
||||
__u16 var2_w;
|
||||
__u32 var1_dw;
|
||||
};
|
||||
#else
|
||||
#error "Unknown endianness"
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -462,6 +462,9 @@ enum {
|
|||
TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED = 1 << 1,
|
||||
TCA_FLOWER_KEY_CT_FLAGS_RELATED = 1 << 2,
|
||||
TCA_FLOWER_KEY_CT_FLAGS_TRACKED = 1 << 3,
|
||||
TCA_FLOWER_KEY_CT_FLAGS_INVALID = 1 << 4,
|
||||
TCA_FLOWER_KEY_CT_FLAGS_REPLY = 1 << 5,
|
||||
__TCA_FLOWER_KEY_CT_FLAGS_MAX,
|
||||
};
|
||||
enum {
|
||||
TCA_FLOWER_KEY_ENC_OPTS_UNSPEC,
|
||||
|
|
|
@ -306,6 +306,7 @@ enum {
|
|||
TCA_HTB_RATE64,
|
||||
TCA_HTB_CEIL64,
|
||||
TCA_HTB_PAD,
|
||||
TCA_HTB_OFFLOAD,
|
||||
__TCA_HTB_MAX,
|
||||
};
|
||||
#define TCA_HTB_MAX (__TCA_HTB_MAX - 1)
|
||||
|
|
|
@ -26,8 +26,8 @@ enum {
|
|||
PSAMPLE_ATTR_GROUP_SEQ,
|
||||
PSAMPLE_ATTR_SAMPLE_RATE,
|
||||
PSAMPLE_ATTR_DATA,
|
||||
PSAMPLE_ATTR_TUNNEL,
|
||||
PSAMPLE_ATTR_GROUP_REFCOUNT,
|
||||
PSAMPLE_ATTR_TUNNEL,
|
||||
__PSAMPLE_ATTR_MAX
|
||||
};
|
||||
enum psample_command {
|
||||
|
|
|
@ -50,9 +50,16 @@ struct rfkill_event {
|
|||
__u8 op;
|
||||
__u8 soft;
|
||||
__u8 hard;
|
||||
} __attribute__((packed));
|
||||
struct rfkill_event_ext {
|
||||
__u32 idx;
|
||||
__u8 type;
|
||||
__u8 op;
|
||||
__u8 soft;
|
||||
__u8 hard;
|
||||
__u8 hard_block_reasons;
|
||||
} __attribute__((packed));
|
||||
#define RFKILL_EVENT_SIZE_V1 8
|
||||
#define RFKILL_EVENT_SIZE_V1 sizeof(struct rfkill_event)
|
||||
#define RFKILL_IOC_MAGIC 'R'
|
||||
#define RFKILL_IOC_NOINPUT 1
|
||||
#define RFKILL_IOCTL_NOINPUT _IO(RFKILL_IOC_MAGIC, RFKILL_IOC_NOINPUT)
|
||||
|
|
|
@ -76,5 +76,9 @@ struct rtc_pll_info {
|
|||
#define RTC_PF 0x40
|
||||
#define RTC_AF 0x20
|
||||
#define RTC_UF 0x10
|
||||
#define RTC_FEATURE_ALARM 0
|
||||
#define RTC_FEATURE_ALARM_RES_MINUTE 1
|
||||
#define RTC_FEATURE_NEED_WEEK_DAY 2
|
||||
#define RTC_FEATURE_CNT 3
|
||||
#define RTC_MAX_FREQ 8192
|
||||
#endif
|
||||
|
|
|
@ -239,6 +239,7 @@ enum rt_scope_t {
|
|||
#define RTM_F_FIB_MATCH 0x2000
|
||||
#define RTM_F_OFFLOAD 0x4000
|
||||
#define RTM_F_TRAP 0x8000
|
||||
#define RTM_F_OFFLOAD_FAILED 0x20000000
|
||||
enum rt_class_t {
|
||||
RT_TABLE_UNSPEC = 0,
|
||||
RT_TABLE_COMPAT = 252,
|
||||
|
|
|
@ -100,7 +100,6 @@
|
|||
#define PORT_VT8500 97
|
||||
#define PORT_XUARTPS 98
|
||||
#define PORT_AR933X 99
|
||||
#define PORT_EFMUART 100
|
||||
#define PORT_ARC 101
|
||||
#define PORT_RP2 102
|
||||
#define PORT_LPUART 103
|
||||
|
|
44
libc/kernel/uapi/linux/spi/spi.h
Normal file
44
libc/kernel/uapi/linux/spi/spi.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_SPI_H
|
||||
#define _UAPI_SPI_H
|
||||
#include <linux/const.h>
|
||||
#define SPI_CPHA _BITUL(0)
|
||||
#define SPI_CPOL _BITUL(1)
|
||||
#define SPI_MODE_0 (0 | 0)
|
||||
#define SPI_MODE_1 (0 | SPI_CPHA)
|
||||
#define SPI_MODE_2 (SPI_CPOL | 0)
|
||||
#define SPI_MODE_3 (SPI_CPOL | SPI_CPHA)
|
||||
#define SPI_MODE_X_MASK (SPI_CPOL | SPI_CPHA)
|
||||
#define SPI_CS_HIGH _BITUL(2)
|
||||
#define SPI_LSB_FIRST _BITUL(3)
|
||||
#define SPI_3WIRE _BITUL(4)
|
||||
#define SPI_LOOP _BITUL(5)
|
||||
#define SPI_NO_CS _BITUL(6)
|
||||
#define SPI_READY _BITUL(7)
|
||||
#define SPI_TX_DUAL _BITUL(8)
|
||||
#define SPI_TX_QUAD _BITUL(9)
|
||||
#define SPI_RX_DUAL _BITUL(10)
|
||||
#define SPI_RX_QUAD _BITUL(11)
|
||||
#define SPI_CS_WORD _BITUL(12)
|
||||
#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)
|
||||
#endif
|
|
@ -20,26 +20,7 @@
|
|||
#define SPIDEV_H
|
||||
#include <linux/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
#define SPI_CPHA 0x01
|
||||
#define SPI_CPOL 0x02
|
||||
#define SPI_MODE_0 (0 | 0)
|
||||
#define SPI_MODE_1 (0 | SPI_CPHA)
|
||||
#define SPI_MODE_2 (SPI_CPOL | 0)
|
||||
#define SPI_MODE_3 (SPI_CPOL | SPI_CPHA)
|
||||
#define SPI_CS_HIGH 0x04
|
||||
#define SPI_LSB_FIRST 0x08
|
||||
#define SPI_3WIRE 0x10
|
||||
#define SPI_LOOP 0x20
|
||||
#define SPI_NO_CS 0x40
|
||||
#define SPI_READY 0x80
|
||||
#define SPI_TX_DUAL 0x100
|
||||
#define SPI_TX_QUAD 0x200
|
||||
#define SPI_RX_DUAL 0x400
|
||||
#define SPI_RX_QUAD 0x800
|
||||
#define SPI_CS_WORD 0x1000
|
||||
#define SPI_TX_OCTAL 0x2000
|
||||
#define SPI_RX_OCTAL 0x4000
|
||||
#define SPI_3WIRE_HIZ 0x8000
|
||||
#include <linux/spi/spi.h>
|
||||
#define SPI_IOC_MAGIC 'k'
|
||||
struct spi_ioc_transfer {
|
||||
__u64 tx_buf;
|
||||
|
|
46
libc/kernel/uapi/linux/surface_aggregator/cdev.h
Normal file
46
libc/kernel/uapi/linux/surface_aggregator/cdev.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_SURFACE_AGGREGATOR_CDEV_H
|
||||
#define _UAPI_LINUX_SURFACE_AGGREGATOR_CDEV_H
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
enum ssam_cdev_request_flags {
|
||||
SSAM_CDEV_REQUEST_HAS_RESPONSE = 0x01,
|
||||
SSAM_CDEV_REQUEST_UNSEQUENCED = 0x02,
|
||||
};
|
||||
struct ssam_cdev_request {
|
||||
__u8 target_category;
|
||||
__u8 target_id;
|
||||
__u8 command_id;
|
||||
__u8 instance_id;
|
||||
__u16 flags;
|
||||
__s16 status;
|
||||
struct {
|
||||
__u64 data;
|
||||
__u16 length;
|
||||
__u8 __pad[6];
|
||||
} payload;
|
||||
struct {
|
||||
__u64 data;
|
||||
__u16 length;
|
||||
__u8 __pad[6];
|
||||
} response;
|
||||
} __attribute__((__packed__));
|
||||
#define SSAM_CDEV_REQUEST _IOWR(0xA5, 1, struct ssam_cdev_request)
|
||||
#endif
|
|
@ -489,6 +489,7 @@ enum {
|
|||
NET_IPV6_ACCEPT_SOURCE_ROUTE = 25,
|
||||
NET_IPV6_ACCEPT_RA_FROM_LOCAL = 26,
|
||||
NET_IPV6_ACCEPT_RA_RT_INFO_MIN_PLEN = 27,
|
||||
NET_IPV6_RA_DEFRTR_METRIC = 28,
|
||||
__NET_IPV6_MAX
|
||||
};
|
||||
enum {
|
||||
|
|
|
@ -220,6 +220,7 @@ enum {
|
|||
TCP_NLA_TIMEOUT_REHASH,
|
||||
TCP_NLA_BYTES_NOTSENT,
|
||||
TCP_NLA_EDT,
|
||||
TCP_NLA_TTL,
|
||||
};
|
||||
#define TCP_MD5SIG_MAXKEYLEN 80
|
||||
#define TCP_MD5SIG_FLAG_PREFIX 0x1
|
||||
|
@ -249,5 +250,9 @@ struct tcp_zerocopy_receive {
|
|||
__u64 copybuf_address;
|
||||
__s32 copybuf_len;
|
||||
__u32 flags;
|
||||
__u64 msg_control;
|
||||
__u64 msg_controllen;
|
||||
__u32 msg_flags;
|
||||
__u32 reserved;
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -20,15 +20,4 @@
|
|||
#define _LINUX_TERMIOS_H
|
||||
#include <linux/types.h>
|
||||
#include <asm/termios.h>
|
||||
#define NFF 5
|
||||
struct termiox {
|
||||
__u16 x_hflag;
|
||||
__u16 x_cflag;
|
||||
__u16 x_rflag[NFF];
|
||||
__u16 x_sflag;
|
||||
};
|
||||
#define RTSXOFF 0x0001
|
||||
#define CTSXON 0x0002
|
||||
#define DTRXOFF 0x0004
|
||||
#define DSRXON 0x0008
|
||||
#endif
|
||||
|
|
|
@ -434,9 +434,19 @@ struct usb_ssp_cap_descriptor {
|
|||
__le32 bmSublinkSpeedAttr[1];
|
||||
#define USB_SSP_SUBLINK_SPEED_SSID (0xf)
|
||||
#define USB_SSP_SUBLINK_SPEED_LSE (0x3 << 4)
|
||||
#define USB_SSP_SUBLINK_SPEED_LSE_BPS 0
|
||||
#define USB_SSP_SUBLINK_SPEED_LSE_KBPS 1
|
||||
#define USB_SSP_SUBLINK_SPEED_LSE_MBPS 2
|
||||
#define USB_SSP_SUBLINK_SPEED_LSE_GBPS 3
|
||||
#define USB_SSP_SUBLINK_SPEED_ST (0x3 << 6)
|
||||
#define USB_SSP_SUBLINK_SPEED_ST_SYM_RX 0
|
||||
#define USB_SSP_SUBLINK_SPEED_ST_ASYM_RX 1
|
||||
#define USB_SSP_SUBLINK_SPEED_ST_SYM_TX 2
|
||||
#define USB_SSP_SUBLINK_SPEED_ST_ASYM_TX 3
|
||||
#define USB_SSP_SUBLINK_SPEED_RSVD (0x3f << 8)
|
||||
#define USB_SSP_SUBLINK_SPEED_LP (0x3 << 14)
|
||||
#define USB_SSP_SUBLINK_SPEED_LP_SS 0
|
||||
#define USB_SSP_SUBLINK_SPEED_LP_SSP 1
|
||||
#define USB_SSP_SUBLINK_SPEED_LSM (0xff << 16)
|
||||
} __attribute__((packed));
|
||||
#define USB_PD_POWER_DELIVERY_CAPABILITY 0x06
|
||||
|
|
|
@ -86,6 +86,8 @@ struct usbtmc_message {
|
|||
#define USBTMC488_IOCTL_WAIT_SRQ _IOW(USBTMC_IOC_NR, 23, __u32)
|
||||
#define USBTMC_IOCTL_MSG_IN_ATTR _IOR(USBTMC_IOC_NR, 24, __u8)
|
||||
#define USBTMC_IOCTL_AUTO_ABORT _IOW(USBTMC_IOC_NR, 25, __u8)
|
||||
#define USBTMC_IOCTL_GET_STB _IOR(USBTMC_IOC_NR, 26, __u8)
|
||||
#define USBTMC_IOCTL_GET_SRQ_STB _IOR(USBTMC_IOC_NR, 27, __u8)
|
||||
#define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35)
|
||||
#define USBTMC_IOCTL_CLEANUP_IO _IO(USBTMC_IOC_NR, 36)
|
||||
#define USBTMC488_CAPABILITY_TRIGGER 1
|
||||
|
|
|
@ -113,6 +113,7 @@ enum v4l2_colorfx {
|
|||
#define V4L2_CID_USER_IMX_BASE (V4L2_CID_USER_BASE + 0x10b0)
|
||||
#define V4L2_CID_USER_ATMEL_ISC_BASE (V4L2_CID_USER_BASE + 0x10c0)
|
||||
#define V4L2_CID_USER_CODA_BASE (V4L2_CID_USER_BASE + 0x10e0)
|
||||
#define V4L2_CID_USER_CCS_BASE (V4L2_CID_USER_BASE + 0x10f0)
|
||||
#define V4L2_CID_CODEC_BASE (V4L2_CTRL_CLASS_CODEC | 0x900)
|
||||
#define V4L2_CID_CODEC_CLASS (V4L2_CTRL_CLASS_CODEC | 1)
|
||||
#define V4L2_CID_MPEG_STREAM_TYPE (V4L2_CID_CODEC_BASE + 0)
|
||||
|
@ -316,6 +317,7 @@ enum v4l2_mpeg_video_multi_slice_mode {
|
|||
#define V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE (V4L2_CID_CODEC_BASE + 227)
|
||||
#define V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE (V4L2_CID_CODEC_BASE + 228)
|
||||
#define V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME (V4L2_CID_CODEC_BASE + 229)
|
||||
#define V4L2_CID_MPEG_VIDEO_BASELAYER_PRIORITY_ID (V4L2_CID_CODEC_BASE + 230)
|
||||
#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,
|
||||
|
@ -474,6 +476,15 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type {
|
|||
#define V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MAX_QP (V4L2_CID_CODEC_BASE + 386)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MIN_QP (V4L2_CID_CODEC_BASE + 387)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MAX_QP (V4L2_CID_CODEC_BASE + 388)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_B_FRAME_MIN_QP (V4L2_CID_CODEC_BASE + 389)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_B_FRAME_MAX_QP (V4L2_CID_CODEC_BASE + 390)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L0_BR (V4L2_CID_CODEC_BASE + 391)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L1_BR (V4L2_CID_CODEC_BASE + 392)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L2_BR (V4L2_CID_CODEC_BASE + 393)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L3_BR (V4L2_CID_CODEC_BASE + 394)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L4_BR (V4L2_CID_CODEC_BASE + 395)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L5_BR (V4L2_CID_CODEC_BASE + 396)
|
||||
#define V4L2_CID_MPEG_VIDEO_H264_HIER_CODING_L6_BR (V4L2_CID_CODEC_BASE + 397)
|
||||
#define V4L2_CID_MPEG_VIDEO_MPEG4_I_FRAME_QP (V4L2_CID_CODEC_BASE + 400)
|
||||
#define V4L2_CID_MPEG_VIDEO_MPEG4_P_FRAME_QP (V4L2_CID_CODEC_BASE + 401)
|
||||
#define V4L2_CID_MPEG_VIDEO_MPEG4_B_FRAME_QP (V4L2_CID_CODEC_BASE + 402)
|
||||
|
@ -653,6 +664,12 @@ enum v4l2_mpeg_video_frame_skip_mode {
|
|||
V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_LEVEL_LIMIT = 1,
|
||||
V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT = 2,
|
||||
};
|
||||
#define V4L2_CID_MPEG_VIDEO_HEVC_I_FRAME_MIN_QP (V4L2_CID_CODEC_BASE + 647)
|
||||
#define V4L2_CID_MPEG_VIDEO_HEVC_I_FRAME_MAX_QP (V4L2_CID_CODEC_BASE + 648)
|
||||
#define V4L2_CID_MPEG_VIDEO_HEVC_P_FRAME_MIN_QP (V4L2_CID_CODEC_BASE + 649)
|
||||
#define V4L2_CID_MPEG_VIDEO_HEVC_P_FRAME_MAX_QP (V4L2_CID_CODEC_BASE + 650)
|
||||
#define V4L2_CID_MPEG_VIDEO_HEVC_B_FRAME_MIN_QP (V4L2_CID_CODEC_BASE + 651)
|
||||
#define V4L2_CID_MPEG_VIDEO_HEVC_B_FRAME_MAX_QP (V4L2_CID_CODEC_BASE + 652)
|
||||
#define V4L2_CID_CODEC_CX2341X_BASE (V4L2_CTRL_CLASS_CODEC | 0x1000)
|
||||
#define V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE (V4L2_CID_CODEC_CX2341X_BASE + 0)
|
||||
enum v4l2_mpeg_cx2341x_video_spatial_filter_mode {
|
||||
|
|
43
libc/kernel/uapi/linux/vdpa.h
Normal file
43
libc/kernel/uapi/linux/vdpa.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** 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_VDPA_H_
|
||||
#define _UAPI_LINUX_VDPA_H_
|
||||
#define VDPA_GENL_NAME "vdpa"
|
||||
#define VDPA_GENL_VERSION 0x1
|
||||
enum vdpa_command {
|
||||
VDPA_CMD_UNSPEC,
|
||||
VDPA_CMD_MGMTDEV_NEW,
|
||||
VDPA_CMD_MGMTDEV_GET,
|
||||
VDPA_CMD_DEV_NEW,
|
||||
VDPA_CMD_DEV_DEL,
|
||||
VDPA_CMD_DEV_GET,
|
||||
};
|
||||
enum vdpa_attr {
|
||||
VDPA_ATTR_UNSPEC,
|
||||
VDPA_ATTR_MGMTDEV_BUS_NAME,
|
||||
VDPA_ATTR_MGMTDEV_DEV_NAME,
|
||||
VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES,
|
||||
VDPA_ATTR_DEV_NAME,
|
||||
VDPA_ATTR_DEV_ID,
|
||||
VDPA_ATTR_DEV_VENDOR_ID,
|
||||
VDPA_ATTR_DEV_MAX_VQS,
|
||||
VDPA_ATTR_DEV_MAX_VQ_SIZE,
|
||||
VDPA_ATTR_MAX,
|
||||
};
|
||||
#endif
|
|
@ -16,5 +16,8 @@
|
|||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#define LINUX_VERSION_CODE 330496
|
||||
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
||||
#define LINUX_VERSION_CODE 330752
|
||||
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
|
||||
#define LINUX_VERSION_MAJOR 5
|
||||
#define LINUX_VERSION_PATCHLEVEL 12
|
||||
#define LINUX_VERSION_SUBLEVEL 0
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#define VFIO_TYPE1_NESTING_IOMMU 6
|
||||
#define VFIO_SPAPR_TCE_v2_IOMMU 7
|
||||
#define VFIO_NOIOMMU_IOMMU 8
|
||||
#define VFIO_UNMAP_ALL 9
|
||||
#define VFIO_UPDATE_VADDR 10
|
||||
#define VFIO_TYPE (';')
|
||||
#define VFIO_BASE 100
|
||||
struct vfio_info_cap_header {
|
||||
|
@ -320,6 +322,7 @@ struct vfio_iommu_type1_dma_map {
|
|||
__u32 flags;
|
||||
#define VFIO_DMA_MAP_FLAG_READ (1 << 0)
|
||||
#define VFIO_DMA_MAP_FLAG_WRITE (1 << 1)
|
||||
#define VFIO_DMA_MAP_FLAG_VADDR (1 << 2)
|
||||
__u64 vaddr;
|
||||
__u64 iova;
|
||||
__u64 size;
|
||||
|
@ -334,6 +337,8 @@ struct vfio_iommu_type1_dma_unmap {
|
|||
__u32 argsz;
|
||||
__u32 flags;
|
||||
#define VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP (1 << 0)
|
||||
#define VFIO_DMA_UNMAP_FLAG_ALL (1 << 1)
|
||||
#define VFIO_DMA_UNMAP_FLAG_VADDR (1 << 2)
|
||||
__u64 iova;
|
||||
__u64 size;
|
||||
__u8 data[];
|
||||
|
|
|
@ -240,7 +240,9 @@ struct hl_info_hw_ip_info {
|
|||
__u32 num_of_events;
|
||||
__u32 device_id;
|
||||
__u32 module_id;
|
||||
__u32 reserved[2];
|
||||
__u32 reserved;
|
||||
__u16 first_available_interrupt_id;
|
||||
__u16 reserved2;
|
||||
__u32 cpld_version;
|
||||
__u32 psoc_pci_pll_nr;
|
||||
__u32 psoc_pci_pll_nf;
|
||||
|
@ -251,15 +253,18 @@ struct hl_info_hw_ip_info {
|
|||
__u8 pad[2];
|
||||
__u8 cpucp_version[HL_INFO_VERSION_MAX_LEN];
|
||||
__u8 card_name[HL_INFO_CARD_NAME_MAX_LEN];
|
||||
__u64 reserved3;
|
||||
__u64 dram_page_size;
|
||||
};
|
||||
struct hl_info_dram_usage {
|
||||
__u64 dram_free_mem;
|
||||
__u64 ctx_dram_mem;
|
||||
};
|
||||
#define HL_BUSY_ENGINES_MASK_EXT_SIZE 2
|
||||
struct hl_info_hw_idle {
|
||||
__u32 is_idle;
|
||||
__u32 busy_engines_mask;
|
||||
__u64 busy_engines_mask_ext;
|
||||
__u64 busy_engines_mask_ext[HL_BUSY_ENGINES_MASK_EXT_SIZE];
|
||||
};
|
||||
struct hl_info_device_status {
|
||||
__u32 status;
|
||||
|
@ -301,6 +306,8 @@ struct hl_pll_frequency_info {
|
|||
struct hl_info_sync_manager {
|
||||
__u32 first_available_sync_object;
|
||||
__u32 first_available_monitor;
|
||||
__u32 first_available_cq;
|
||||
__u32 reserved;
|
||||
};
|
||||
struct hl_info_cs_counters {
|
||||
__u64 total_out_of_mem_drop_cnt;
|
||||
|
@ -379,12 +386,18 @@ struct hl_cs_chunk {
|
|||
#define HL_CS_FLAGS_WAIT 0x4
|
||||
#define HL_CS_FLAGS_COLLECTIVE_WAIT 0x8
|
||||
#define HL_CS_FLAGS_TIMESTAMP 0x20
|
||||
#define HL_CS_FLAGS_STAGED_SUBMISSION 0x40
|
||||
#define HL_CS_FLAGS_STAGED_SUBMISSION_FIRST 0x80
|
||||
#define HL_CS_FLAGS_STAGED_SUBMISSION_LAST 0x100
|
||||
#define HL_CS_STATUS_SUCCESS 0
|
||||
#define HL_MAX_JOBS_PER_CS 512
|
||||
struct hl_cs_in {
|
||||
__u64 chunks_restore;
|
||||
__u64 chunks_execute;
|
||||
__u64 chunks_store;
|
||||
union {
|
||||
__u64 chunks_store;
|
||||
__u64 seq;
|
||||
};
|
||||
__u32 num_chunks_restore;
|
||||
__u32 num_chunks_execute;
|
||||
__u32 num_chunks_store;
|
||||
|
@ -426,6 +439,7 @@ union hl_wait_cs_args {
|
|||
#define HL_MEM_OP_FREE 1
|
||||
#define HL_MEM_OP_MAP 2
|
||||
#define HL_MEM_OP_UNMAP 3
|
||||
#define HL_MEM_OP_MAP_BLOCK 4
|
||||
#define HL_MEM_CONTIGUOUS 0x1
|
||||
#define HL_MEM_SHARED 0x2
|
||||
#define HL_MEM_USERPTR 0x4
|
||||
|
@ -446,6 +460,9 @@ struct hl_mem_in {
|
|||
__u64 hint_addr;
|
||||
__u64 mem_size;
|
||||
} map_host;
|
||||
struct {
|
||||
__u64 block_addr;
|
||||
} map_block;
|
||||
struct {
|
||||
__u64 device_virt_addr;
|
||||
} unmap;
|
||||
|
@ -459,6 +476,11 @@ struct hl_mem_out {
|
|||
union {
|
||||
__u64 device_virt_addr;
|
||||
__u64 handle;
|
||||
struct {
|
||||
__u64 block_handle;
|
||||
__u32 block_size;
|
||||
__u32 pad;
|
||||
};
|
||||
};
|
||||
};
|
||||
union hl_mem_args {
|
||||
|
|
|
@ -206,6 +206,7 @@ enum uverbs_methods_mr {
|
|||
UVERBS_METHOD_MR_DESTROY,
|
||||
UVERBS_METHOD_ADVISE_MR,
|
||||
UVERBS_METHOD_QUERY_MR,
|
||||
UVERBS_METHOD_REG_DMABUF_MR,
|
||||
};
|
||||
enum uverbs_attrs_mr_destroy_ids {
|
||||
UVERBS_ATTR_DESTROY_MR_HANDLE,
|
||||
|
@ -223,6 +224,17 @@ enum uverbs_attrs_query_mr_cmd_attr_ids {
|
|||
UVERBS_ATTR_QUERY_MR_RESP_LENGTH,
|
||||
UVERBS_ATTR_QUERY_MR_RESP_IOVA,
|
||||
};
|
||||
enum uverbs_attrs_reg_dmabuf_mr_cmd_attr_ids {
|
||||
UVERBS_ATTR_REG_DMABUF_MR_HANDLE,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_PD_HANDLE,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_OFFSET,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_LENGTH,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_IOVA,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_FD,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_ACCESS_FLAGS,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_RESP_LKEY,
|
||||
UVERBS_ATTR_REG_DMABUF_MR_RESP_RKEY,
|
||||
};
|
||||
enum uverbs_attrs_create_counters_cmd_attr_ids {
|
||||
UVERBS_ATTR_CREATE_COUNTERS_HANDLE,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue