diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-10-22 06:19:57 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-10-22 06:19:57 -0400 |
commit | 930352862e9533fecc42c7ed20798a7c9e3aa874 (patch) | |
tree | f234d6eb69c077f898e375aef30c9550dcf069d7 /include/uapi | |
parent | b46882b6eb713245916100ac5b58664cd242a08d (diff) | |
parent | 7bbd03e0143b562ff7d96f7e71c016104020b550 (diff) |
Merge branch 'topic/enum-info-cleanup' into for-next
this is a series of patches to just convert the plain info callback
for enum ctl elements to snd_ctl_elem_info(). Also, it includes the
extension of snd_ctl_elem_info(), for catching the unexpected string
cut-off and handling the zero items.
Diffstat (limited to 'include/uapi')
48 files changed, 1010 insertions, 175 deletions
diff --git a/include/uapi/Kbuild b/include/uapi/Kbuild index 81d2106287fe..245aa6e05e6a 100644 --- a/include/uapi/Kbuild +++ b/include/uapi/Kbuild | |||
@@ -12,3 +12,4 @@ header-y += video/ | |||
12 | header-y += drm/ | 12 | header-y += drm/ |
13 | header-y += xen/ | 13 | header-y += xen/ |
14 | header-y += scsi/ | 14 | header-y += scsi/ |
15 | header-y += misc/ | ||
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 11d11bc5c78f..22749c134117 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h | |||
@@ -705,9 +705,11 @@ __SYSCALL(__NR_seccomp, sys_seccomp) | |||
705 | __SYSCALL(__NR_getrandom, sys_getrandom) | 705 | __SYSCALL(__NR_getrandom, sys_getrandom) |
706 | #define __NR_memfd_create 279 | 706 | #define __NR_memfd_create 279 |
707 | __SYSCALL(__NR_memfd_create, sys_memfd_create) | 707 | __SYSCALL(__NR_memfd_create, sys_memfd_create) |
708 | #define __NR_bpf 280 | ||
709 | __SYSCALL(__NR_bpf, sys_bpf) | ||
708 | 710 | ||
709 | #undef __NR_syscalls | 711 | #undef __NR_syscalls |
710 | #define __NR_syscalls 280 | 712 | #define __NR_syscalls 281 |
711 | 713 | ||
712 | /* | 714 | /* |
713 | * All syscalls below here should go away really, | 715 | * All syscalls below here should go away really, |
diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm/exynos_drm.h index d5844122ff32..5575ed1598bd 100644 --- a/include/uapi/drm/exynos_drm.h +++ b/include/uapi/drm/exynos_drm.h | |||
@@ -33,38 +33,6 @@ struct drm_exynos_gem_create { | |||
33 | }; | 33 | }; |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * A structure for getting buffer offset. | ||
37 | * | ||
38 | * @handle: a pointer to gem object created. | ||
39 | * @pad: just padding to be 64-bit aligned. | ||
40 | * @offset: relatived offset value of the memory region allocated. | ||
41 | * - this value should be set by user. | ||
42 | */ | ||
43 | struct drm_exynos_gem_map_off { | ||
44 | unsigned int handle; | ||
45 | unsigned int pad; | ||
46 | uint64_t offset; | ||
47 | }; | ||
48 | |||
49 | /** | ||
50 | * A structure for mapping buffer. | ||
51 | * | ||
52 | * @handle: a handle to gem object created. | ||
53 | * @pad: just padding to be 64-bit aligned. | ||
54 | * @size: memory size to be mapped. | ||
55 | * @mapped: having user virtual address mmaped. | ||
56 | * - this variable would be filled by exynos gem module | ||
57 | * of kernel side with user virtual address which is allocated | ||
58 | * by do_mmap(). | ||
59 | */ | ||
60 | struct drm_exynos_gem_mmap { | ||
61 | unsigned int handle; | ||
62 | unsigned int pad; | ||
63 | uint64_t size; | ||
64 | uint64_t mapped; | ||
65 | }; | ||
66 | |||
67 | /** | ||
68 | * A structure to gem information. | 36 | * A structure to gem information. |
69 | * | 37 | * |
70 | * @handle: a handle to gem object created. | 38 | * @handle: a handle to gem object created. |
@@ -316,8 +284,6 @@ struct drm_exynos_ipp_cmd_ctrl { | |||
316 | }; | 284 | }; |
317 | 285 | ||
318 | #define DRM_EXYNOS_GEM_CREATE 0x00 | 286 | #define DRM_EXYNOS_GEM_CREATE 0x00 |
319 | #define DRM_EXYNOS_GEM_MAP_OFFSET 0x01 | ||
320 | #define DRM_EXYNOS_GEM_MMAP 0x02 | ||
321 | /* Reserved 0x03 ~ 0x05 for exynos specific gem ioctl */ | 287 | /* Reserved 0x03 ~ 0x05 for exynos specific gem ioctl */ |
322 | #define DRM_EXYNOS_GEM_GET 0x04 | 288 | #define DRM_EXYNOS_GEM_GET 0x04 |
323 | #define DRM_EXYNOS_VIDI_CONNECTION 0x07 | 289 | #define DRM_EXYNOS_VIDI_CONNECTION 0x07 |
@@ -336,12 +302,6 @@ struct drm_exynos_ipp_cmd_ctrl { | |||
336 | #define DRM_IOCTL_EXYNOS_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + \ | 302 | #define DRM_IOCTL_EXYNOS_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + \ |
337 | DRM_EXYNOS_GEM_CREATE, struct drm_exynos_gem_create) | 303 | DRM_EXYNOS_GEM_CREATE, struct drm_exynos_gem_create) |
338 | 304 | ||
339 | #define DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET DRM_IOWR(DRM_COMMAND_BASE + \ | ||
340 | DRM_EXYNOS_GEM_MAP_OFFSET, struct drm_exynos_gem_map_off) | ||
341 | |||
342 | #define DRM_IOCTL_EXYNOS_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + \ | ||
343 | DRM_EXYNOS_GEM_MMAP, struct drm_exynos_gem_mmap) | ||
344 | |||
345 | #define DRM_IOCTL_EXYNOS_GEM_GET DRM_IOWR(DRM_COMMAND_BASE + \ | 305 | #define DRM_IOCTL_EXYNOS_GEM_GET DRM_IOWR(DRM_COMMAND_BASE + \ |
346 | DRM_EXYNOS_GEM_GET, struct drm_exynos_gem_info) | 306 | DRM_EXYNOS_GEM_GET, struct drm_exynos_gem_info) |
347 | 307 | ||
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index fea6099608ef..50d0fb41a3bf 100644 --- a/include/uapi/drm/radeon_drm.h +++ b/include/uapi/drm/radeon_drm.h | |||
@@ -511,6 +511,7 @@ typedef struct { | |||
511 | #define DRM_RADEON_GEM_BUSY 0x2a | 511 | #define DRM_RADEON_GEM_BUSY 0x2a |
512 | #define DRM_RADEON_GEM_VA 0x2b | 512 | #define DRM_RADEON_GEM_VA 0x2b |
513 | #define DRM_RADEON_GEM_OP 0x2c | 513 | #define DRM_RADEON_GEM_OP 0x2c |
514 | #define DRM_RADEON_GEM_USERPTR 0x2d | ||
514 | 515 | ||
515 | #define DRM_IOCTL_RADEON_CP_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CP_INIT, drm_radeon_init_t) | 516 | #define DRM_IOCTL_RADEON_CP_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CP_INIT, drm_radeon_init_t) |
516 | #define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) | 517 | #define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) |
@@ -554,6 +555,7 @@ typedef struct { | |||
554 | #define DRM_IOCTL_RADEON_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_BUSY, struct drm_radeon_gem_busy) | 555 | #define DRM_IOCTL_RADEON_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_BUSY, struct drm_radeon_gem_busy) |
555 | #define DRM_IOCTL_RADEON_GEM_VA DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_VA, struct drm_radeon_gem_va) | 556 | #define DRM_IOCTL_RADEON_GEM_VA DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_VA, struct drm_radeon_gem_va) |
556 | #define DRM_IOCTL_RADEON_GEM_OP DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_OP, struct drm_radeon_gem_op) | 557 | #define DRM_IOCTL_RADEON_GEM_OP DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_OP, struct drm_radeon_gem_op) |
558 | #define DRM_IOCTL_RADEON_GEM_USERPTR DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_USERPTR, struct drm_radeon_gem_userptr) | ||
557 | 559 | ||
558 | typedef struct drm_radeon_init { | 560 | typedef struct drm_radeon_init { |
559 | enum { | 561 | enum { |
@@ -799,6 +801,10 @@ struct drm_radeon_gem_info { | |||
799 | #define RADEON_GEM_NO_BACKING_STORE (1 << 0) | 801 | #define RADEON_GEM_NO_BACKING_STORE (1 << 0) |
800 | #define RADEON_GEM_GTT_UC (1 << 1) | 802 | #define RADEON_GEM_GTT_UC (1 << 1) |
801 | #define RADEON_GEM_GTT_WC (1 << 2) | 803 | #define RADEON_GEM_GTT_WC (1 << 2) |
804 | /* BO is expected to be accessed by the CPU */ | ||
805 | #define RADEON_GEM_CPU_ACCESS (1 << 3) | ||
806 | /* CPU access is not expected to work for this BO */ | ||
807 | #define RADEON_GEM_NO_CPU_ACCESS (1 << 4) | ||
802 | 808 | ||
803 | struct drm_radeon_gem_create { | 809 | struct drm_radeon_gem_create { |
804 | uint64_t size; | 810 | uint64_t size; |
@@ -808,6 +814,23 @@ struct drm_radeon_gem_create { | |||
808 | uint32_t flags; | 814 | uint32_t flags; |
809 | }; | 815 | }; |
810 | 816 | ||
817 | /* | ||
818 | * This is not a reliable API and you should expect it to fail for any | ||
819 | * number of reasons and have fallback path that do not use userptr to | ||
820 | * perform any operation. | ||
821 | */ | ||
822 | #define RADEON_GEM_USERPTR_READONLY (1 << 0) | ||
823 | #define RADEON_GEM_USERPTR_ANONONLY (1 << 1) | ||
824 | #define RADEON_GEM_USERPTR_VALIDATE (1 << 2) | ||
825 | #define RADEON_GEM_USERPTR_REGISTER (1 << 3) | ||
826 | |||
827 | struct drm_radeon_gem_userptr { | ||
828 | uint64_t addr; | ||
829 | uint64_t size; | ||
830 | uint32_t flags; | ||
831 | uint32_t handle; | ||
832 | }; | ||
833 | |||
811 | #define RADEON_TILING_MACRO 0x1 | 834 | #define RADEON_TILING_MACRO 0x1 |
812 | #define RADEON_TILING_MICRO 0x2 | 835 | #define RADEON_TILING_MICRO 0x2 |
813 | #define RADEON_TILING_SWAP_16BIT 0x4 | 836 | #define RADEON_TILING_SWAP_16BIT 0x4 |
diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h index 4fc66f6b12ce..c472bedbe38e 100644 --- a/include/uapi/drm/vmwgfx_drm.h +++ b/include/uapi/drm/vmwgfx_drm.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #define __VMWGFX_DRM_H__ | 29 | #define __VMWGFX_DRM_H__ |
30 | 30 | ||
31 | #ifndef __KERNEL__ | 31 | #ifndef __KERNEL__ |
32 | #include <drm.h> | 32 | #include <drm/drm.h> |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #define DRM_VMW_MAX_SURFACE_FACES 6 | 35 | #define DRM_VMW_MAX_SURFACE_FACES 6 |
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index be88166349a1..6cad97485bad 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild | |||
@@ -67,6 +67,8 @@ header-y += bfs_fs.h | |||
67 | header-y += binfmts.h | 67 | header-y += binfmts.h |
68 | header-y += blkpg.h | 68 | header-y += blkpg.h |
69 | header-y += blktrace_api.h | 69 | header-y += blktrace_api.h |
70 | header-y += bpf.h | ||
71 | header-y += bpf_common.h | ||
70 | header-y += bpqether.h | 72 | header-y += bpqether.h |
71 | header-y += bsg.h | 73 | header-y += bsg.h |
72 | header-y += btrfs.h | 74 | header-y += btrfs.h |
@@ -354,6 +356,7 @@ header-y += serio.h | |||
354 | header-y += shm.h | 356 | header-y += shm.h |
355 | header-y += signal.h | 357 | header-y += signal.h |
356 | header-y += signalfd.h | 358 | header-y += signalfd.h |
359 | header-y += smiapp.h | ||
357 | header-y += snmp.h | 360 | header-y += snmp.h |
358 | header-y += sock_diag.h | 361 | header-y += sock_diag.h |
359 | header-y += socket.h | 362 | header-y += socket.h |
diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index 3b9ff33e1768..d4dbef14d4df 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h | |||
@@ -352,6 +352,7 @@ enum { | |||
352 | #define AUDIT_ARCH_IA64 (EM_IA_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) | 352 | #define AUDIT_ARCH_IA64 (EM_IA_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) |
353 | #define AUDIT_ARCH_M32R (EM_M32R) | 353 | #define AUDIT_ARCH_M32R (EM_M32R) |
354 | #define AUDIT_ARCH_M68K (EM_68K) | 354 | #define AUDIT_ARCH_M68K (EM_68K) |
355 | #define AUDIT_ARCH_MICROBLAZE (EM_MICROBLAZE) | ||
355 | #define AUDIT_ARCH_MIPS (EM_MIPS) | 356 | #define AUDIT_ARCH_MIPS (EM_MIPS) |
356 | #define AUDIT_ARCH_MIPSEL (EM_MIPS|__AUDIT_ARCH_LE) | 357 | #define AUDIT_ARCH_MIPSEL (EM_MIPS|__AUDIT_ARCH_LE) |
357 | #define AUDIT_ARCH_MIPS64 (EM_MIPS|__AUDIT_ARCH_64BIT) | 358 | #define AUDIT_ARCH_MIPS64 (EM_MIPS|__AUDIT_ARCH_64BIT) |
@@ -445,17 +446,4 @@ struct audit_rule_data { | |||
445 | char buf[0]; /* string fields buffer */ | 446 | char buf[0]; /* string fields buffer */ |
446 | }; | 447 | }; |
447 | 448 | ||
448 | /* audit_rule is supported to maintain backward compatibility with | ||
449 | * userspace. It supports integer fields only and corresponds to | ||
450 | * AUDIT_ADD, AUDIT_DEL and AUDIT_LIST requests. | ||
451 | */ | ||
452 | struct audit_rule { /* for AUDIT_LIST, AUDIT_ADD, and AUDIT_DEL */ | ||
453 | __u32 flags; /* AUDIT_PER_{TASK,CALL}, AUDIT_PREPEND */ | ||
454 | __u32 action; /* AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS */ | ||
455 | __u32 field_count; | ||
456 | __u32 mask[AUDIT_BITMASK_SIZE]; | ||
457 | __u32 fields[AUDIT_MAX_FIELDS]; | ||
458 | __u32 values[AUDIT_MAX_FIELDS]; | ||
459 | }; | ||
460 | |||
461 | #endif /* _UAPI_LINUX_AUDIT_H_ */ | 449 | #endif /* _UAPI_LINUX_AUDIT_H_ */ |
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h new file mode 100644 index 000000000000..d18316f9e9c4 --- /dev/null +++ b/include/uapi/linux/bpf.h | |||
@@ -0,0 +1,156 @@ | |||
1 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com | ||
2 | * | ||
3 | * This program is free software; you can redistribute it and/or | ||
4 | * modify it under the terms of version 2 of the GNU General Public | ||
5 | * License as published by the Free Software Foundation. | ||
6 | */ | ||
7 | #ifndef _UAPI__LINUX_BPF_H__ | ||
8 | #define _UAPI__LINUX_BPF_H__ | ||
9 | |||
10 | #include <linux/types.h> | ||
11 | #include <linux/bpf_common.h> | ||
12 | |||
13 | /* Extended instruction set based on top of classic BPF */ | ||
14 | |||
15 | /* instruction classes */ | ||
16 | #define BPF_ALU64 0x07 /* alu mode in double word width */ | ||
17 | |||
18 | /* ld/ldx fields */ | ||
19 | #define BPF_DW 0x18 /* double word */ | ||
20 | #define BPF_XADD 0xc0 /* exclusive add */ | ||
21 | |||
22 | /* alu/jmp fields */ | ||
23 | #define BPF_MOV 0xb0 /* mov reg to reg */ | ||
24 | #define BPF_ARSH 0xc0 /* sign extending arithmetic shift right */ | ||
25 | |||
26 | /* change endianness of a register */ | ||
27 | #define BPF_END 0xd0 /* flags for endianness conversion: */ | ||
28 | #define BPF_TO_LE 0x00 /* convert to little-endian */ | ||
29 | #define BPF_TO_BE 0x08 /* convert to big-endian */ | ||
30 | #define BPF_FROM_LE BPF_TO_LE | ||
31 | #define BPF_FROM_BE BPF_TO_BE | ||
32 | |||
33 | #define BPF_JNE 0x50 /* jump != */ | ||
34 | #define BPF_JSGT 0x60 /* SGT is signed '>', GT in x86 */ | ||
35 | #define BPF_JSGE 0x70 /* SGE is signed '>=', GE in x86 */ | ||
36 | #define BPF_CALL 0x80 /* function call */ | ||
37 | #define BPF_EXIT 0x90 /* function return */ | ||
38 | |||
39 | /* Register numbers */ | ||
40 | enum { | ||
41 | BPF_REG_0 = 0, | ||
42 | BPF_REG_1, | ||
43 | BPF_REG_2, | ||
44 | BPF_REG_3, | ||
45 | BPF_REG_4, | ||
46 | BPF_REG_5, | ||
47 | BPF_REG_6, | ||
48 | BPF_REG_7, | ||
49 | BPF_REG_8, | ||
50 | BPF_REG_9, | ||
51 | BPF_REG_10, | ||
52 | __MAX_BPF_REG, | ||
53 | }; | ||
54 | |||
55 | /* BPF has 10 general purpose 64-bit registers and stack frame. */ | ||
56 | #define MAX_BPF_REG __MAX_BPF_REG | ||
57 | |||
58 | struct bpf_insn { | ||
59 | __u8 code; /* opcode */ | ||
60 | __u8 dst_reg:4; /* dest register */ | ||
61 | __u8 src_reg:4; /* source register */ | ||
62 | __s16 off; /* signed offset */ | ||
63 | __s32 imm; /* signed immediate constant */ | ||
64 | }; | ||
65 | |||
66 | /* BPF syscall commands */ | ||
67 | enum bpf_cmd { | ||
68 | /* create a map with given type and attributes | ||
69 | * fd = bpf(BPF_MAP_CREATE, union bpf_attr *, u32 size) | ||
70 | * returns fd or negative error | ||
71 | * map is deleted when fd is closed | ||
72 | */ | ||
73 | BPF_MAP_CREATE, | ||
74 | |||
75 | /* lookup key in a given map | ||
76 | * err = bpf(BPF_MAP_LOOKUP_ELEM, union bpf_attr *attr, u32 size) | ||
77 | * Using attr->map_fd, attr->key, attr->value | ||
78 | * returns zero and stores found elem into value | ||
79 | * or negative error | ||
80 | */ | ||
81 | BPF_MAP_LOOKUP_ELEM, | ||
82 | |||
83 | /* create or update key/value pair in a given map | ||
84 | * err = bpf(BPF_MAP_UPDATE_ELEM, union bpf_attr *attr, u32 size) | ||
85 | * Using attr->map_fd, attr->key, attr->value | ||
86 | * returns zero or negative error | ||
87 | */ | ||
88 | BPF_MAP_UPDATE_ELEM, | ||
89 | |||
90 | /* find and delete elem by key in a given map | ||
91 | * err = bpf(BPF_MAP_DELETE_ELEM, union bpf_attr *attr, u32 size) | ||
92 | * Using attr->map_fd, attr->key | ||
93 | * returns zero or negative error | ||
94 | */ | ||
95 | BPF_MAP_DELETE_ELEM, | ||
96 | |||
97 | /* lookup key in a given map and return next key | ||
98 | * err = bpf(BPF_MAP_GET_NEXT_KEY, union bpf_attr *attr, u32 size) | ||
99 | * Using attr->map_fd, attr->key, attr->next_key | ||
100 | * returns zero and stores next key or negative error | ||
101 | */ | ||
102 | BPF_MAP_GET_NEXT_KEY, | ||
103 | |||
104 | /* verify and load eBPF program | ||
105 | * prog_fd = bpf(BPF_PROG_LOAD, union bpf_attr *attr, u32 size) | ||
106 | * Using attr->prog_type, attr->insns, attr->license | ||
107 | * returns fd or negative error | ||
108 | */ | ||
109 | BPF_PROG_LOAD, | ||
110 | }; | ||
111 | |||
112 | enum bpf_map_type { | ||
113 | BPF_MAP_TYPE_UNSPEC, | ||
114 | }; | ||
115 | |||
116 | enum bpf_prog_type { | ||
117 | BPF_PROG_TYPE_UNSPEC, | ||
118 | }; | ||
119 | |||
120 | union bpf_attr { | ||
121 | struct { /* anonymous struct used by BPF_MAP_CREATE command */ | ||
122 | __u32 map_type; /* one of enum bpf_map_type */ | ||
123 | __u32 key_size; /* size of key in bytes */ | ||
124 | __u32 value_size; /* size of value in bytes */ | ||
125 | __u32 max_entries; /* max number of entries in a map */ | ||
126 | }; | ||
127 | |||
128 | struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */ | ||
129 | __u32 map_fd; | ||
130 | __aligned_u64 key; | ||
131 | union { | ||
132 | __aligned_u64 value; | ||
133 | __aligned_u64 next_key; | ||
134 | }; | ||
135 | }; | ||
136 | |||
137 | struct { /* anonymous struct used by BPF_PROG_LOAD command */ | ||
138 | __u32 prog_type; /* one of enum bpf_prog_type */ | ||
139 | __u32 insn_cnt; | ||
140 | __aligned_u64 insns; | ||
141 | __aligned_u64 license; | ||
142 | __u32 log_level; /* verbosity level of verifier */ | ||
143 | __u32 log_size; /* size of user buffer */ | ||
144 | __aligned_u64 log_buf; /* user supplied buffer */ | ||
145 | }; | ||
146 | } __attribute__((aligned(8))); | ||
147 | |||
148 | /* integer value in 'imm' field of BPF_CALL instruction selects which helper | ||
149 | * function eBPF program intends to call | ||
150 | */ | ||
151 | enum bpf_func_id { | ||
152 | BPF_FUNC_unspec, | ||
153 | __BPF_FUNC_MAX_ID, | ||
154 | }; | ||
155 | |||
156 | #endif /* _UAPI__LINUX_BPF_H__ */ | ||
diff --git a/include/uapi/linux/bpf_common.h b/include/uapi/linux/bpf_common.h new file mode 100644 index 000000000000..a5c220e0828f --- /dev/null +++ b/include/uapi/linux/bpf_common.h | |||
@@ -0,0 +1,55 @@ | |||
1 | #ifndef _UAPI__LINUX_BPF_COMMON_H__ | ||
2 | #define _UAPI__LINUX_BPF_COMMON_H__ | ||
3 | |||
4 | /* Instruction classes */ | ||
5 | #define BPF_CLASS(code) ((code) & 0x07) | ||
6 | #define BPF_LD 0x00 | ||
7 | #define BPF_LDX 0x01 | ||
8 | #define BPF_ST 0x02 | ||
9 | #define BPF_STX 0x03 | ||
10 | #define BPF_ALU 0x04 | ||
11 | #define BPF_JMP 0x05 | ||
12 | #define BPF_RET 0x06 | ||
13 | #define BPF_MISC 0x07 | ||
14 | |||
15 | /* ld/ldx fields */ | ||
16 | #define BPF_SIZE(code) ((code) & 0x18) | ||
17 | #define BPF_W 0x00 | ||
18 | #define BPF_H 0x08 | ||
19 | #define BPF_B 0x10 | ||
20 | #define BPF_MODE(code) ((code) & 0xe0) | ||
21 | #define BPF_IMM 0x00 | ||
22 | #define BPF_ABS 0x20 | ||
23 | #define BPF_IND 0x40 | ||
24 | #define BPF_MEM 0x60 | ||
25 | #define BPF_LEN 0x80 | ||
26 | #define BPF_MSH 0xa0 | ||
27 | |||
28 | /* alu/jmp fields */ | ||
29 | #define BPF_OP(code) ((code) & 0xf0) | ||
30 | #define BPF_ADD 0x00 | ||
31 | #define BPF_SUB 0x10 | ||
32 | #define BPF_MUL 0x20 | ||
33 | #define BPF_DIV 0x30 | ||
34 | #define BPF_OR 0x40 | ||
35 | #define BPF_AND 0x50 | ||
36 | #define BPF_LSH 0x60 | ||
37 | #define BPF_RSH 0x70 | ||
38 | #define BPF_NEG 0x80 | ||
39 | #define BPF_MOD 0x90 | ||
40 | #define BPF_XOR 0xa0 | ||
41 | |||
42 | #define BPF_JA 0x00 | ||
43 | #define BPF_JEQ 0x10 | ||
44 | #define BPF_JGT 0x20 | ||
45 | #define BPF_JGE 0x30 | ||
46 | #define BPF_JSET 0x40 | ||
47 | #define BPF_SRC(code) ((code) & 0x08) | ||
48 | #define BPF_K 0x00 | ||
49 | #define BPF_X 0x08 | ||
50 | |||
51 | #ifndef BPF_MAXINSNS | ||
52 | #define BPF_MAXINSNS 4096 | ||
53 | #endif | ||
54 | |||
55 | #endif /* _UAPI__LINUX_BPF_COMMON_H__ */ | ||
diff --git a/include/uapi/linux/dm-ioctl.h b/include/uapi/linux/dm-ioctl.h index c8a4302093a3..3315ab21f728 100644 --- a/include/uapi/linux/dm-ioctl.h +++ b/include/uapi/linux/dm-ioctl.h | |||
@@ -267,9 +267,9 @@ enum { | |||
267 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) | 267 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) |
268 | 268 | ||
269 | #define DM_VERSION_MAJOR 4 | 269 | #define DM_VERSION_MAJOR 4 |
270 | #define DM_VERSION_MINOR 27 | 270 | #define DM_VERSION_MINOR 28 |
271 | #define DM_VERSION_PATCHLEVEL 0 | 271 | #define DM_VERSION_PATCHLEVEL 0 |
272 | #define DM_VERSION_EXTRA "-ioctl (2013-10-30)" | 272 | #define DM_VERSION_EXTRA "-ioctl (2014-09-17)" |
273 | 273 | ||
274 | /* Status bits */ | 274 | /* Status bits */ |
275 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ | 275 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ |
diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 01529bd96438..aa90bc98b6e2 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #define EM_V850 87 /* NEC v850 */ | 32 | #define EM_V850 87 /* NEC v850 */ |
33 | #define EM_M32R 88 /* Renesas M32R */ | 33 | #define EM_M32R 88 /* Renesas M32R */ |
34 | #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ | 34 | #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ |
35 | #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ | ||
35 | #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ | 36 | #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ |
36 | #define EM_TI_C6000 140 /* TI C6X DSPs */ | 37 | #define EM_TI_C6000 140 /* TI C6X DSPs */ |
37 | #define EM_AARCH64 183 /* ARM 64 bit */ | 38 | #define EM_AARCH64 183 /* ARM 64 bit */ |
diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index ef6103bf1f9b..ea9bf2561b9e 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h | |||
@@ -391,6 +391,8 @@ typedef struct elf64_shdr { | |||
391 | #define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */ | 391 | #define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */ |
392 | #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ | 392 | #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ |
393 | #define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ | 393 | #define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ |
394 | #define NT_S390_VXRS_LOW 0x309 /* s390 vector registers 0-15 upper half */ | ||
395 | #define NT_S390_VXRS_HIGH 0x30a /* s390 vector registers 16-31 */ | ||
394 | #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ | 396 | #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ |
395 | #define NT_ARM_TLS 0x401 /* ARM TLS register */ | 397 | #define NT_ARM_TLS 0x401 /* ARM TLS register */ |
396 | #define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */ | 398 | #define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */ |
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index e3c7a719c76b..99b43056a6fe 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
@@ -209,6 +209,33 @@ struct ethtool_value { | |||
209 | __u32 data; | 209 | __u32 data; |
210 | }; | 210 | }; |
211 | 211 | ||
212 | enum tunable_id { | ||
213 | ETHTOOL_ID_UNSPEC, | ||
214 | ETHTOOL_RX_COPYBREAK, | ||
215 | ETHTOOL_TX_COPYBREAK, | ||
216 | }; | ||
217 | |||
218 | enum tunable_type_id { | ||
219 | ETHTOOL_TUNABLE_UNSPEC, | ||
220 | ETHTOOL_TUNABLE_U8, | ||
221 | ETHTOOL_TUNABLE_U16, | ||
222 | ETHTOOL_TUNABLE_U32, | ||
223 | ETHTOOL_TUNABLE_U64, | ||
224 | ETHTOOL_TUNABLE_STRING, | ||
225 | ETHTOOL_TUNABLE_S8, | ||
226 | ETHTOOL_TUNABLE_S16, | ||
227 | ETHTOOL_TUNABLE_S32, | ||
228 | ETHTOOL_TUNABLE_S64, | ||
229 | }; | ||
230 | |||
231 | struct ethtool_tunable { | ||
232 | __u32 cmd; | ||
233 | __u32 id; | ||
234 | __u32 type_id; | ||
235 | __u32 len; | ||
236 | void *data[0]; | ||
237 | }; | ||
238 | |||
212 | /** | 239 | /** |
213 | * struct ethtool_regs - hardware register dump | 240 | * struct ethtool_regs - hardware register dump |
214 | * @cmd: Command number = %ETHTOOL_GREGS | 241 | * @cmd: Command number = %ETHTOOL_GREGS |
@@ -1152,6 +1179,8 @@ enum ethtool_sfeatures_retval_bits { | |||
1152 | 1179 | ||
1153 | #define ETHTOOL_GRSSH 0x00000046 /* Get RX flow hash configuration */ | 1180 | #define ETHTOOL_GRSSH 0x00000046 /* Get RX flow hash configuration */ |
1154 | #define ETHTOOL_SRSSH 0x00000047 /* Set RX flow hash configuration */ | 1181 | #define ETHTOOL_SRSSH 0x00000047 /* Set RX flow hash configuration */ |
1182 | #define ETHTOOL_GTUNABLE 0x00000048 /* Get tunable configuration */ | ||
1183 | #define ETHTOOL_STUNABLE 0x00000049 /* Set tunable configuration */ | ||
1155 | 1184 | ||
1156 | /* compatibility with older code */ | 1185 | /* compatibility with older code */ |
1157 | #define SPARC_ETH_GSET ETHTOOL_GSET | 1186 | #define SPARC_ETH_GSET ETHTOOL_GSET |
diff --git a/include/uapi/linux/filter.h b/include/uapi/linux/filter.h index 253b4d42cf2b..47785d5ecf17 100644 --- a/include/uapi/linux/filter.h +++ b/include/uapi/linux/filter.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | #include <linux/compiler.h> | 8 | #include <linux/compiler.h> |
9 | #include <linux/types.h> | 9 | #include <linux/types.h> |
10 | 10 | #include <linux/bpf_common.h> | |
11 | 11 | ||
12 | /* | 12 | /* |
13 | * Current version of the filter code architecture. | 13 | * Current version of the filter code architecture. |
@@ -32,56 +32,6 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ | |||
32 | struct sock_filter __user *filter; | 32 | struct sock_filter __user *filter; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | /* | ||
36 | * Instruction classes | ||
37 | */ | ||
38 | |||
39 | #define BPF_CLASS(code) ((code) & 0x07) | ||
40 | #define BPF_LD 0x00 | ||
41 | #define BPF_LDX 0x01 | ||
42 | #define BPF_ST 0x02 | ||
43 | #define BPF_STX 0x03 | ||
44 | #define BPF_ALU 0x04 | ||
45 | #define BPF_JMP 0x05 | ||
46 | #define BPF_RET 0x06 | ||
47 | #define BPF_MISC 0x07 | ||
48 | |||
49 | /* ld/ldx fields */ | ||
50 | #define BPF_SIZE(code) ((code) & 0x18) | ||
51 | #define BPF_W 0x00 | ||
52 | #define BPF_H 0x08 | ||
53 | #define BPF_B 0x10 | ||
54 | #define BPF_MODE(code) ((code) & 0xe0) | ||
55 | #define BPF_IMM 0x00 | ||
56 | #define BPF_ABS 0x20 | ||
57 | #define BPF_IND 0x40 | ||
58 | #define BPF_MEM 0x60 | ||
59 | #define BPF_LEN 0x80 | ||
60 | #define BPF_MSH 0xa0 | ||
61 | |||
62 | /* alu/jmp fields */ | ||
63 | #define BPF_OP(code) ((code) & 0xf0) | ||
64 | #define BPF_ADD 0x00 | ||
65 | #define BPF_SUB 0x10 | ||
66 | #define BPF_MUL 0x20 | ||
67 | #define BPF_DIV 0x30 | ||
68 | #define BPF_OR 0x40 | ||
69 | #define BPF_AND 0x50 | ||
70 | #define BPF_LSH 0x60 | ||
71 | #define BPF_RSH 0x70 | ||
72 | #define BPF_NEG 0x80 | ||
73 | #define BPF_MOD 0x90 | ||
74 | #define BPF_XOR 0xa0 | ||
75 | |||
76 | #define BPF_JA 0x00 | ||
77 | #define BPF_JEQ 0x10 | ||
78 | #define BPF_JGT 0x20 | ||
79 | #define BPF_JGE 0x30 | ||
80 | #define BPF_JSET 0x40 | ||
81 | #define BPF_SRC(code) ((code) & 0x08) | ||
82 | #define BPF_K 0x00 | ||
83 | #define BPF_X 0x08 | ||
84 | |||
85 | /* ret - BPF_K and BPF_X also apply */ | 35 | /* ret - BPF_K and BPF_X also apply */ |
86 | #define BPF_RVAL(code) ((code) & 0x18) | 36 | #define BPF_RVAL(code) ((code) & 0x18) |
87 | #define BPF_A 0x10 | 37 | #define BPF_A 0x10 |
@@ -91,10 +41,6 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ | |||
91 | #define BPF_TAX 0x00 | 41 | #define BPF_TAX 0x00 |
92 | #define BPF_TXA 0x80 | 42 | #define BPF_TXA 0x80 |
93 | 43 | ||
94 | #ifndef BPF_MAXINSNS | ||
95 | #define BPF_MAXINSNS 4096 | ||
96 | #endif | ||
97 | |||
98 | /* | 44 | /* |
99 | * Macros for filter block array initializers. | 45 | * Macros for filter block array initializers. |
100 | */ | 46 | */ |
diff --git a/include/uapi/linux/fou.h b/include/uapi/linux/fou.h new file mode 100644 index 000000000000..8df06894da23 --- /dev/null +++ b/include/uapi/linux/fou.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* fou.h - FOU Interface */ | ||
2 | |||
3 | #ifndef _UAPI_LINUX_FOU_H | ||
4 | #define _UAPI_LINUX_FOU_H | ||
5 | |||
6 | /* NETLINK_GENERIC related info | ||
7 | */ | ||
8 | #define FOU_GENL_NAME "fou" | ||
9 | #define FOU_GENL_VERSION 0x1 | ||
10 | |||
11 | enum { | ||
12 | FOU_ATTR_UNSPEC, | ||
13 | FOU_ATTR_PORT, /* u16 */ | ||
14 | FOU_ATTR_AF, /* u8 */ | ||
15 | FOU_ATTR_IPPROTO, /* u8 */ | ||
16 | FOU_ATTR_TYPE, /* u8 */ | ||
17 | |||
18 | __FOU_ATTR_MAX, | ||
19 | }; | ||
20 | |||
21 | #define FOU_ATTR_MAX (__FOU_ATTR_MAX - 1) | ||
22 | |||
23 | enum { | ||
24 | FOU_CMD_UNSPEC, | ||
25 | FOU_CMD_ADD, | ||
26 | FOU_CMD_DEL, | ||
27 | |||
28 | __FOU_CMD_MAX, | ||
29 | }; | ||
30 | |||
31 | enum { | ||
32 | FOU_ENCAP_UNSPEC, | ||
33 | FOU_ENCAP_DIRECT, | ||
34 | FOU_ENCAP_GUE, | ||
35 | }; | ||
36 | |||
37 | #define FOU_CMD_MAX (__FOU_CMD_MAX - 1) | ||
38 | |||
39 | #endif /* _UAPI_LINUX_FOU_H */ | ||
diff --git a/include/uapi/linux/genwqe/genwqe_card.h b/include/uapi/linux/genwqe/genwqe_card.h index 4fc065f29255..baa93fb4cd4f 100644 --- a/include/uapi/linux/genwqe/genwqe_card.h +++ b/include/uapi/linux/genwqe/genwqe_card.h | |||
@@ -8,7 +8,7 @@ | |||
8 | * | 8 | * |
9 | * Author: Frank Haverkamp <haver@linux.vnet.ibm.com> | 9 | * Author: Frank Haverkamp <haver@linux.vnet.ibm.com> |
10 | * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> | 10 | * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> |
11 | * Author: Michael Jung <mijung@de.ibm.com> | 11 | * Author: Michael Jung <mijung@gmx.net> |
12 | * Author: Michael Ruettger <michael@ibmra.de> | 12 | * Author: Michael Ruettger <michael@ibmra.de> |
13 | * | 13 | * |
14 | * This program is free software; you can redistribute it and/or modify | 14 | * This program is free software; you can redistribute it and/or modify |
diff --git a/include/uapi/linux/hyperv.h b/include/uapi/linux/hyperv.h index 78e4a86030dd..0a8e6badb29b 100644 --- a/include/uapi/linux/hyperv.h +++ b/include/uapi/linux/hyperv.h | |||
@@ -137,7 +137,7 @@ struct hv_do_fcopy { | |||
137 | __u64 offset; | 137 | __u64 offset; |
138 | __u32 size; | 138 | __u32 size; |
139 | __u8 data[DATA_FRAGMENT]; | 139 | __u8 data[DATA_FRAGMENT]; |
140 | }; | 140 | } __attribute__((packed)); |
141 | 141 | ||
142 | /* | 142 | /* |
143 | * An implementation of HyperV key value pair (KVP) functionality for Linux. | 143 | * An implementation of HyperV key value pair (KVP) functionality for Linux. |
diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index 0f8210b8e0bc..aa63ed023c2b 100644 --- a/include/uapi/linux/if_ether.h +++ b/include/uapi/linux/if_ether.h | |||
@@ -128,6 +128,7 @@ | |||
128 | #define ETH_P_PHONET 0x00F5 /* Nokia Phonet frames */ | 128 | #define ETH_P_PHONET 0x00F5 /* Nokia Phonet frames */ |
129 | #define ETH_P_IEEE802154 0x00F6 /* IEEE802.15.4 frame */ | 129 | #define ETH_P_IEEE802154 0x00F6 /* IEEE802.15.4 frame */ |
130 | #define ETH_P_CAIF 0x00F7 /* ST-Ericsson CAIF protocol */ | 130 | #define ETH_P_CAIF 0x00F7 /* ST-Ericsson CAIF protocol */ |
131 | #define ETH_P_XDSA 0x00F8 /* Multiplexed DSA protocol */ | ||
131 | 132 | ||
132 | /* | 133 | /* |
133 | * This is an Ethernet frame header. | 134 | * This is an Ethernet frame header. |
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index ff957604a721..0bdb77e16875 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
@@ -215,6 +215,18 @@ enum in6_addr_gen_mode { | |||
215 | IN6_ADDR_GEN_MODE_NONE, | 215 | IN6_ADDR_GEN_MODE_NONE, |
216 | }; | 216 | }; |
217 | 217 | ||
218 | /* Bridge section */ | ||
219 | |||
220 | enum { | ||
221 | IFLA_BR_UNSPEC, | ||
222 | IFLA_BR_FORWARD_DELAY, | ||
223 | IFLA_BR_HELLO_TIME, | ||
224 | IFLA_BR_MAX_AGE, | ||
225 | __IFLA_BR_MAX, | ||
226 | }; | ||
227 | |||
228 | #define IFLA_BR_MAX (__IFLA_BR_MAX - 1) | ||
229 | |||
218 | enum { | 230 | enum { |
219 | BRIDGE_MODE_UNSPEC, | 231 | BRIDGE_MODE_UNSPEC, |
220 | BRIDGE_MODE_HAIRPIN, | 232 | BRIDGE_MODE_HAIRPIN, |
@@ -291,6 +303,10 @@ enum { | |||
291 | IFLA_MACVLAN_UNSPEC, | 303 | IFLA_MACVLAN_UNSPEC, |
292 | IFLA_MACVLAN_MODE, | 304 | IFLA_MACVLAN_MODE, |
293 | IFLA_MACVLAN_FLAGS, | 305 | IFLA_MACVLAN_FLAGS, |
306 | IFLA_MACVLAN_MACADDR_MODE, | ||
307 | IFLA_MACVLAN_MACADDR, | ||
308 | IFLA_MACVLAN_MACADDR_DATA, | ||
309 | IFLA_MACVLAN_MACADDR_COUNT, | ||
294 | __IFLA_MACVLAN_MAX, | 310 | __IFLA_MACVLAN_MAX, |
295 | }; | 311 | }; |
296 | 312 | ||
@@ -301,6 +317,14 @@ enum macvlan_mode { | |||
301 | MACVLAN_MODE_VEPA = 2, /* talk to other ports through ext bridge */ | 317 | MACVLAN_MODE_VEPA = 2, /* talk to other ports through ext bridge */ |
302 | MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */ | 318 | MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */ |
303 | MACVLAN_MODE_PASSTHRU = 8,/* take over the underlying device */ | 319 | MACVLAN_MODE_PASSTHRU = 8,/* take over the underlying device */ |
320 | MACVLAN_MODE_SOURCE = 16,/* use source MAC address list to assign */ | ||
321 | }; | ||
322 | |||
323 | enum macvlan_macaddr_mode { | ||
324 | MACVLAN_MACADDR_ADD, | ||
325 | MACVLAN_MACADDR_DEL, | ||
326 | MACVLAN_MACADDR_FLUSH, | ||
327 | MACVLAN_MACADDR_SET, | ||
304 | }; | 328 | }; |
305 | 329 | ||
306 | #define MACVLAN_FLAG_NOPROMISC 1 | 330 | #define MACVLAN_FLAG_NOPROMISC 1 |
diff --git a/include/uapi/linux/if_tunnel.h b/include/uapi/linux/if_tunnel.h index 3bce9e9d9f7c..280d9e092283 100644 --- a/include/uapi/linux/if_tunnel.h +++ b/include/uapi/linux/if_tunnel.h | |||
@@ -53,10 +53,23 @@ enum { | |||
53 | IFLA_IPTUN_6RD_RELAY_PREFIX, | 53 | IFLA_IPTUN_6RD_RELAY_PREFIX, |
54 | IFLA_IPTUN_6RD_PREFIXLEN, | 54 | IFLA_IPTUN_6RD_PREFIXLEN, |
55 | IFLA_IPTUN_6RD_RELAY_PREFIXLEN, | 55 | IFLA_IPTUN_6RD_RELAY_PREFIXLEN, |
56 | IFLA_IPTUN_ENCAP_TYPE, | ||
57 | IFLA_IPTUN_ENCAP_FLAGS, | ||
58 | IFLA_IPTUN_ENCAP_SPORT, | ||
59 | IFLA_IPTUN_ENCAP_DPORT, | ||
56 | __IFLA_IPTUN_MAX, | 60 | __IFLA_IPTUN_MAX, |
57 | }; | 61 | }; |
58 | #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1) | 62 | #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1) |
59 | 63 | ||
64 | enum tunnel_encap_types { | ||
65 | TUNNEL_ENCAP_NONE, | ||
66 | TUNNEL_ENCAP_FOU, | ||
67 | TUNNEL_ENCAP_GUE, | ||
68 | }; | ||
69 | |||
70 | #define TUNNEL_ENCAP_FLAG_CSUM (1<<0) | ||
71 | #define TUNNEL_ENCAP_FLAG_CSUM6 (1<<1) | ||
72 | |||
60 | /* SIT-mode i_flags */ | 73 | /* SIT-mode i_flags */ |
61 | #define SIT_ISATAP 0x0001 | 74 | #define SIT_ISATAP 0x0001 |
62 | 75 | ||
@@ -94,6 +107,10 @@ enum { | |||
94 | IFLA_GRE_ENCAP_LIMIT, | 107 | IFLA_GRE_ENCAP_LIMIT, |
95 | IFLA_GRE_FLOWINFO, | 108 | IFLA_GRE_FLOWINFO, |
96 | IFLA_GRE_FLAGS, | 109 | IFLA_GRE_FLAGS, |
110 | IFLA_GRE_ENCAP_TYPE, | ||
111 | IFLA_GRE_ENCAP_FLAGS, | ||
112 | IFLA_GRE_ENCAP_SPORT, | ||
113 | IFLA_GRE_ENCAP_DPORT, | ||
97 | __IFLA_GRE_MAX, | 114 | __IFLA_GRE_MAX, |
98 | }; | 115 | }; |
99 | 116 | ||
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h index bbde90fa5838..d65c0a09efd3 100644 --- a/include/uapi/linux/inet_diag.h +++ b/include/uapi/linux/inet_diag.h | |||
@@ -110,10 +110,10 @@ enum { | |||
110 | INET_DIAG_TCLASS, | 110 | INET_DIAG_TCLASS, |
111 | INET_DIAG_SKMEMINFO, | 111 | INET_DIAG_SKMEMINFO, |
112 | INET_DIAG_SHUTDOWN, | 112 | INET_DIAG_SHUTDOWN, |
113 | INET_DIAG_DCTCPINFO, | ||
113 | }; | 114 | }; |
114 | 115 | ||
115 | #define INET_DIAG_MAX INET_DIAG_SHUTDOWN | 116 | #define INET_DIAG_MAX INET_DIAG_DCTCPINFO |
116 | |||
117 | 117 | ||
118 | /* INET_DIAG_MEM */ | 118 | /* INET_DIAG_MEM */ |
119 | 119 | ||
@@ -133,5 +133,14 @@ struct tcpvegas_info { | |||
133 | __u32 tcpv_minrtt; | 133 | __u32 tcpv_minrtt; |
134 | }; | 134 | }; |
135 | 135 | ||
136 | /* INET_DIAG_DCTCPINFO */ | ||
137 | |||
138 | struct tcp_dctcp_info { | ||
139 | __u16 dctcp_enabled; | ||
140 | __u16 dctcp_ce_state; | ||
141 | __u32 dctcp_alpha; | ||
142 | __u32 dctcp_ab_ecn; | ||
143 | __u32 dctcp_ab_tot; | ||
144 | }; | ||
136 | 145 | ||
137 | #endif /* _UAPI_INET_DIAG_H_ */ | 146 | #endif /* _UAPI_INET_DIAG_H_ */ |
diff --git a/include/uapi/linux/ip_vs.h b/include/uapi/linux/ip_vs.h index fbcffe8041f7..cabe95d5b461 100644 --- a/include/uapi/linux/ip_vs.h +++ b/include/uapi/linux/ip_vs.h | |||
@@ -384,6 +384,9 @@ enum { | |||
384 | IPVS_DEST_ATTR_PERSIST_CONNS, /* persistent connections */ | 384 | IPVS_DEST_ATTR_PERSIST_CONNS, /* persistent connections */ |
385 | 385 | ||
386 | IPVS_DEST_ATTR_STATS, /* nested attribute for dest stats */ | 386 | IPVS_DEST_ATTR_STATS, /* nested attribute for dest stats */ |
387 | |||
388 | IPVS_DEST_ATTR_ADDR_FAMILY, /* Address family of address */ | ||
389 | |||
387 | __IPVS_DEST_ATTR_MAX, | 390 | __IPVS_DEST_ATTR_MAX, |
388 | }; | 391 | }; |
389 | 392 | ||
diff --git a/include/uapi/linux/kernel-page-flags.h b/include/uapi/linux/kernel-page-flags.h index 5116a0e48172..2f96d233c980 100644 --- a/include/uapi/linux/kernel-page-flags.h +++ b/include/uapi/linux/kernel-page-flags.h | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #define KPF_KSM 21 | 32 | #define KPF_KSM 21 |
33 | #define KPF_THP 22 | 33 | #define KPF_THP 22 |
34 | #define KPF_BALLOON 23 | ||
34 | 35 | ||
35 | 36 | ||
36 | #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */ | 37 | #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */ |
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index cf3a2ff440e4..60768822b140 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
@@ -654,9 +654,7 @@ struct kvm_ppc_smmu_info { | |||
654 | #endif | 654 | #endif |
655 | /* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ | 655 | /* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ |
656 | #define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 | 656 | #define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 |
657 | #ifdef __KVM_HAVE_USER_NMI | ||
658 | #define KVM_CAP_USER_NMI 22 | 657 | #define KVM_CAP_USER_NMI 22 |
659 | #endif | ||
660 | #ifdef __KVM_HAVE_GUEST_DEBUG | 658 | #ifdef __KVM_HAVE_GUEST_DEBUG |
661 | #define KVM_CAP_SET_GUEST_DEBUG 23 | 659 | #define KVM_CAP_SET_GUEST_DEBUG 23 |
662 | #endif | 660 | #endif |
@@ -738,9 +736,7 @@ struct kvm_ppc_smmu_info { | |||
738 | #define KVM_CAP_PPC_GET_SMMU_INFO 78 | 736 | #define KVM_CAP_PPC_GET_SMMU_INFO 78 |
739 | #define KVM_CAP_S390_COW 79 | 737 | #define KVM_CAP_S390_COW 79 |
740 | #define KVM_CAP_PPC_ALLOC_HTAB 80 | 738 | #define KVM_CAP_PPC_ALLOC_HTAB 80 |
741 | #ifdef __KVM_HAVE_READONLY_MEM | ||
742 | #define KVM_CAP_READONLY_MEM 81 | 739 | #define KVM_CAP_READONLY_MEM 81 |
743 | #endif | ||
744 | #define KVM_CAP_IRQFD_RESAMPLE 82 | 740 | #define KVM_CAP_IRQFD_RESAMPLE 82 |
745 | #define KVM_CAP_PPC_BOOKE_WATCHDOG 83 | 741 | #define KVM_CAP_PPC_BOOKE_WATCHDOG 83 |
746 | #define KVM_CAP_PPC_HTAB_FD 84 | 742 | #define KVM_CAP_PPC_HTAB_FD 84 |
@@ -947,15 +943,25 @@ struct kvm_device_attr { | |||
947 | __u64 addr; /* userspace address of attr data */ | 943 | __u64 addr; /* userspace address of attr data */ |
948 | }; | 944 | }; |
949 | 945 | ||
950 | #define KVM_DEV_TYPE_FSL_MPIC_20 1 | ||
951 | #define KVM_DEV_TYPE_FSL_MPIC_42 2 | ||
952 | #define KVM_DEV_TYPE_XICS 3 | ||
953 | #define KVM_DEV_TYPE_VFIO 4 | ||
954 | #define KVM_DEV_VFIO_GROUP 1 | 946 | #define KVM_DEV_VFIO_GROUP 1 |
955 | #define KVM_DEV_VFIO_GROUP_ADD 1 | 947 | #define KVM_DEV_VFIO_GROUP_ADD 1 |
956 | #define KVM_DEV_VFIO_GROUP_DEL 2 | 948 | #define KVM_DEV_VFIO_GROUP_DEL 2 |
957 | #define KVM_DEV_TYPE_ARM_VGIC_V2 5 | 949 | |
958 | #define KVM_DEV_TYPE_FLIC 6 | 950 | enum kvm_device_type { |
951 | KVM_DEV_TYPE_FSL_MPIC_20 = 1, | ||
952 | #define KVM_DEV_TYPE_FSL_MPIC_20 KVM_DEV_TYPE_FSL_MPIC_20 | ||
953 | KVM_DEV_TYPE_FSL_MPIC_42, | ||
954 | #define KVM_DEV_TYPE_FSL_MPIC_42 KVM_DEV_TYPE_FSL_MPIC_42 | ||
955 | KVM_DEV_TYPE_XICS, | ||
956 | #define KVM_DEV_TYPE_XICS KVM_DEV_TYPE_XICS | ||
957 | KVM_DEV_TYPE_VFIO, | ||
958 | #define KVM_DEV_TYPE_VFIO KVM_DEV_TYPE_VFIO | ||
959 | KVM_DEV_TYPE_ARM_VGIC_V2, | ||
960 | #define KVM_DEV_TYPE_ARM_VGIC_V2 KVM_DEV_TYPE_ARM_VGIC_V2 | ||
961 | KVM_DEV_TYPE_FLIC, | ||
962 | #define KVM_DEV_TYPE_FLIC KVM_DEV_TYPE_FLIC | ||
963 | KVM_DEV_TYPE_MAX, | ||
964 | }; | ||
959 | 965 | ||
960 | /* | 966 | /* |
961 | * ioctls for VM fds | 967 | * ioctls for VM fds |
@@ -1093,7 +1099,7 @@ struct kvm_s390_ucas_mapping { | |||
1093 | #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) | 1099 | #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) |
1094 | #define KVM_GET_MP_STATE _IOR(KVMIO, 0x98, struct kvm_mp_state) | 1100 | #define KVM_GET_MP_STATE _IOR(KVMIO, 0x98, struct kvm_mp_state) |
1095 | #define KVM_SET_MP_STATE _IOW(KVMIO, 0x99, struct kvm_mp_state) | 1101 | #define KVM_SET_MP_STATE _IOW(KVMIO, 0x99, struct kvm_mp_state) |
1096 | /* Available with KVM_CAP_NMI */ | 1102 | /* Available with KVM_CAP_USER_NMI */ |
1097 | #define KVM_NMI _IO(KVMIO, 0x9a) | 1103 | #define KVM_NMI _IO(KVMIO, 0x9a) |
1098 | /* Available with KVM_CAP_SET_GUEST_DEBUG */ | 1104 | /* Available with KVM_CAP_SET_GUEST_DEBUG */ |
1099 | #define KVM_SET_GUEST_DEBUG _IOW(KVMIO, 0x9b, struct kvm_guest_debug) | 1105 | #define KVM_SET_GUEST_DEBUG _IOW(KVMIO, 0x9b, struct kvm_guest_debug) |
diff --git a/include/uapi/linux/netfilter/ipset/ip_set.h b/include/uapi/linux/netfilter/ipset/ip_set.h index 78c2f2e79920..ca03119111a2 100644 --- a/include/uapi/linux/netfilter/ipset/ip_set.h +++ b/include/uapi/linux/netfilter/ipset/ip_set.h | |||
@@ -115,6 +115,9 @@ enum { | |||
115 | IPSET_ATTR_BYTES, | 115 | IPSET_ATTR_BYTES, |
116 | IPSET_ATTR_PACKETS, | 116 | IPSET_ATTR_PACKETS, |
117 | IPSET_ATTR_COMMENT, | 117 | IPSET_ATTR_COMMENT, |
118 | IPSET_ATTR_SKBMARK, | ||
119 | IPSET_ATTR_SKBPRIO, | ||
120 | IPSET_ATTR_SKBQUEUE, | ||
118 | __IPSET_ATTR_ADT_MAX, | 121 | __IPSET_ATTR_ADT_MAX, |
119 | }; | 122 | }; |
120 | #define IPSET_ATTR_ADT_MAX (__IPSET_ATTR_ADT_MAX - 1) | 123 | #define IPSET_ATTR_ADT_MAX (__IPSET_ATTR_ADT_MAX - 1) |
@@ -147,6 +150,7 @@ enum ipset_errno { | |||
147 | IPSET_ERR_COUNTER, | 150 | IPSET_ERR_COUNTER, |
148 | IPSET_ERR_COMMENT, | 151 | IPSET_ERR_COMMENT, |
149 | IPSET_ERR_INVALID_MARKMASK, | 152 | IPSET_ERR_INVALID_MARKMASK, |
153 | IPSET_ERR_SKBINFO, | ||
150 | 154 | ||
151 | /* Type specific error codes */ | 155 | /* Type specific error codes */ |
152 | IPSET_ERR_TYPE_SPECIFIC = 4352, | 156 | IPSET_ERR_TYPE_SPECIFIC = 4352, |
@@ -170,6 +174,12 @@ enum ipset_cmd_flags { | |||
170 | IPSET_FLAG_MATCH_COUNTERS = (1 << IPSET_FLAG_BIT_MATCH_COUNTERS), | 174 | IPSET_FLAG_MATCH_COUNTERS = (1 << IPSET_FLAG_BIT_MATCH_COUNTERS), |
171 | IPSET_FLAG_BIT_RETURN_NOMATCH = 7, | 175 | IPSET_FLAG_BIT_RETURN_NOMATCH = 7, |
172 | IPSET_FLAG_RETURN_NOMATCH = (1 << IPSET_FLAG_BIT_RETURN_NOMATCH), | 176 | IPSET_FLAG_RETURN_NOMATCH = (1 << IPSET_FLAG_BIT_RETURN_NOMATCH), |
177 | IPSET_FLAG_BIT_MAP_SKBMARK = 8, | ||
178 | IPSET_FLAG_MAP_SKBMARK = (1 << IPSET_FLAG_BIT_MAP_SKBMARK), | ||
179 | IPSET_FLAG_BIT_MAP_SKBPRIO = 9, | ||
180 | IPSET_FLAG_MAP_SKBPRIO = (1 << IPSET_FLAG_BIT_MAP_SKBPRIO), | ||
181 | IPSET_FLAG_BIT_MAP_SKBQUEUE = 10, | ||
182 | IPSET_FLAG_MAP_SKBQUEUE = (1 << IPSET_FLAG_BIT_MAP_SKBQUEUE), | ||
173 | IPSET_FLAG_CMD_MAX = 15, | 183 | IPSET_FLAG_CMD_MAX = 15, |
174 | }; | 184 | }; |
175 | 185 | ||
@@ -187,6 +197,8 @@ enum ipset_cadt_flags { | |||
187 | IPSET_FLAG_WITH_COMMENT = (1 << IPSET_FLAG_BIT_WITH_COMMENT), | 197 | IPSET_FLAG_WITH_COMMENT = (1 << IPSET_FLAG_BIT_WITH_COMMENT), |
188 | IPSET_FLAG_BIT_WITH_FORCEADD = 5, | 198 | IPSET_FLAG_BIT_WITH_FORCEADD = 5, |
189 | IPSET_FLAG_WITH_FORCEADD = (1 << IPSET_FLAG_BIT_WITH_FORCEADD), | 199 | IPSET_FLAG_WITH_FORCEADD = (1 << IPSET_FLAG_BIT_WITH_FORCEADD), |
200 | IPSET_FLAG_BIT_WITH_SKBINFO = 6, | ||
201 | IPSET_FLAG_WITH_SKBINFO = (1 << IPSET_FLAG_BIT_WITH_SKBINFO), | ||
190 | IPSET_FLAG_CADT_MAX = 15, | 202 | IPSET_FLAG_CADT_MAX = 15, |
191 | }; | 203 | }; |
192 | 204 | ||
diff --git a/include/uapi/linux/netfilter/nf_nat.h b/include/uapi/linux/netfilter/nf_nat.h index 1ad3659102b6..0880781ad7b6 100644 --- a/include/uapi/linux/netfilter/nf_nat.h +++ b/include/uapi/linux/netfilter/nf_nat.h | |||
@@ -13,6 +13,11 @@ | |||
13 | #define NF_NAT_RANGE_PROTO_RANDOM_ALL \ | 13 | #define NF_NAT_RANGE_PROTO_RANDOM_ALL \ |
14 | (NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PROTO_RANDOM_FULLY) | 14 | (NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PROTO_RANDOM_FULLY) |
15 | 15 | ||
16 | #define NF_NAT_RANGE_MASK \ | ||
17 | (NF_NAT_RANGE_MAP_IPS | NF_NAT_RANGE_PROTO_SPECIFIED | \ | ||
18 | NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PERSISTENT | \ | ||
19 | NF_NAT_RANGE_PROTO_RANDOM_FULLY) | ||
20 | |||
16 | struct nf_nat_ipv4_range { | 21 | struct nf_nat_ipv4_range { |
17 | unsigned int flags; | 22 | unsigned int flags; |
18 | __be32 min_ip; | 23 | __be32 min_ip; |
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h index 801bdd1e56e3..f31fe7b660a5 100644 --- a/include/uapi/linux/netfilter/nf_tables.h +++ b/include/uapi/linux/netfilter/nf_tables.h | |||
@@ -51,6 +51,8 @@ enum nft_verdicts { | |||
51 | * @NFT_MSG_NEWSETELEM: create a new set element (enum nft_set_elem_attributes) | 51 | * @NFT_MSG_NEWSETELEM: create a new set element (enum nft_set_elem_attributes) |
52 | * @NFT_MSG_GETSETELEM: get a set element (enum nft_set_elem_attributes) | 52 | * @NFT_MSG_GETSETELEM: get a set element (enum nft_set_elem_attributes) |
53 | * @NFT_MSG_DELSETELEM: delete a set element (enum nft_set_elem_attributes) | 53 | * @NFT_MSG_DELSETELEM: delete a set element (enum nft_set_elem_attributes) |
54 | * @NFT_MSG_NEWGEN: announce a new generation, only for events (enum nft_gen_attributes) | ||
55 | * @NFT_MSG_GETGEN: get the rule-set generation (enum nft_gen_attributes) | ||
54 | */ | 56 | */ |
55 | enum nf_tables_msg_types { | 57 | enum nf_tables_msg_types { |
56 | NFT_MSG_NEWTABLE, | 58 | NFT_MSG_NEWTABLE, |
@@ -68,6 +70,8 @@ enum nf_tables_msg_types { | |||
68 | NFT_MSG_NEWSETELEM, | 70 | NFT_MSG_NEWSETELEM, |
69 | NFT_MSG_GETSETELEM, | 71 | NFT_MSG_GETSETELEM, |
70 | NFT_MSG_DELSETELEM, | 72 | NFT_MSG_DELSETELEM, |
73 | NFT_MSG_NEWGEN, | ||
74 | NFT_MSG_GETGEN, | ||
71 | NFT_MSG_MAX, | 75 | NFT_MSG_MAX, |
72 | }; | 76 | }; |
73 | 77 | ||
@@ -571,6 +575,10 @@ enum nft_exthdr_attributes { | |||
571 | * @NFT_META_L4PROTO: layer 4 protocol number | 575 | * @NFT_META_L4PROTO: layer 4 protocol number |
572 | * @NFT_META_BRI_IIFNAME: packet input bridge interface name | 576 | * @NFT_META_BRI_IIFNAME: packet input bridge interface name |
573 | * @NFT_META_BRI_OIFNAME: packet output bridge interface name | 577 | * @NFT_META_BRI_OIFNAME: packet output bridge interface name |
578 | * @NFT_META_PKTTYPE: packet type (skb->pkt_type), special handling for loopback | ||
579 | * @NFT_META_CPU: cpu id through smp_processor_id() | ||
580 | * @NFT_META_IIFGROUP: packet input interface group | ||
581 | * @NFT_META_OIFGROUP: packet output interface group | ||
574 | */ | 582 | */ |
575 | enum nft_meta_keys { | 583 | enum nft_meta_keys { |
576 | NFT_META_LEN, | 584 | NFT_META_LEN, |
@@ -592,6 +600,10 @@ enum nft_meta_keys { | |||
592 | NFT_META_L4PROTO, | 600 | NFT_META_L4PROTO, |
593 | NFT_META_BRI_IIFNAME, | 601 | NFT_META_BRI_IIFNAME, |
594 | NFT_META_BRI_OIFNAME, | 602 | NFT_META_BRI_OIFNAME, |
603 | NFT_META_PKTTYPE, | ||
604 | NFT_META_CPU, | ||
605 | NFT_META_IIFGROUP, | ||
606 | NFT_META_OIFGROUP, | ||
595 | }; | 607 | }; |
596 | 608 | ||
597 | /** | 609 | /** |
@@ -737,13 +749,34 @@ enum nft_queue_attributes { | |||
737 | * | 749 | * |
738 | * @NFT_REJECT_ICMP_UNREACH: reject using ICMP unreachable | 750 | * @NFT_REJECT_ICMP_UNREACH: reject using ICMP unreachable |
739 | * @NFT_REJECT_TCP_RST: reject using TCP RST | 751 | * @NFT_REJECT_TCP_RST: reject using TCP RST |
752 | * @NFT_REJECT_ICMPX_UNREACH: abstracted ICMP unreachable for bridge and inet | ||
740 | */ | 753 | */ |
741 | enum nft_reject_types { | 754 | enum nft_reject_types { |
742 | NFT_REJECT_ICMP_UNREACH, | 755 | NFT_REJECT_ICMP_UNREACH, |
743 | NFT_REJECT_TCP_RST, | 756 | NFT_REJECT_TCP_RST, |
757 | NFT_REJECT_ICMPX_UNREACH, | ||
744 | }; | 758 | }; |
745 | 759 | ||
746 | /** | 760 | /** |
761 | * enum nft_reject_code - Generic reject codes for IPv4/IPv6 | ||
762 | * | ||
763 | * @NFT_REJECT_ICMPX_NO_ROUTE: no route to host / network unreachable | ||
764 | * @NFT_REJECT_ICMPX_PORT_UNREACH: port unreachable | ||
765 | * @NFT_REJECT_ICMPX_HOST_UNREACH: host unreachable | ||
766 | * @NFT_REJECT_ICMPX_ADMIN_PROHIBITED: administratively prohibited | ||
767 | * | ||
768 | * These codes are mapped to real ICMP and ICMPv6 codes. | ||
769 | */ | ||
770 | enum nft_reject_inet_code { | ||
771 | NFT_REJECT_ICMPX_NO_ROUTE = 0, | ||
772 | NFT_REJECT_ICMPX_PORT_UNREACH, | ||
773 | NFT_REJECT_ICMPX_HOST_UNREACH, | ||
774 | NFT_REJECT_ICMPX_ADMIN_PROHIBITED, | ||
775 | __NFT_REJECT_ICMPX_MAX | ||
776 | }; | ||
777 | #define NFT_REJECT_ICMPX_MAX (__NFT_REJECT_ICMPX_MAX - 1) | ||
778 | |||
779 | /** | ||
747 | * enum nft_reject_attributes - nf_tables reject expression netlink attributes | 780 | * enum nft_reject_attributes - nf_tables reject expression netlink attributes |
748 | * | 781 | * |
749 | * @NFTA_REJECT_TYPE: packet type to use (NLA_U32: nft_reject_types) | 782 | * @NFTA_REJECT_TYPE: packet type to use (NLA_U32: nft_reject_types) |
@@ -777,6 +810,7 @@ enum nft_nat_types { | |||
777 | * @NFTA_NAT_REG_ADDR_MAX: source register of address range end (NLA_U32: nft_registers) | 810 | * @NFTA_NAT_REG_ADDR_MAX: source register of address range end (NLA_U32: nft_registers) |
778 | * @NFTA_NAT_REG_PROTO_MIN: source register of proto range start (NLA_U32: nft_registers) | 811 | * @NFTA_NAT_REG_PROTO_MIN: source register of proto range start (NLA_U32: nft_registers) |
779 | * @NFTA_NAT_REG_PROTO_MAX: source register of proto range end (NLA_U32: nft_registers) | 812 | * @NFTA_NAT_REG_PROTO_MAX: source register of proto range end (NLA_U32: nft_registers) |
813 | * @NFTA_NAT_FLAGS: NAT flags (see NF_NAT_RANGE_* in linux/netfilter/nf_nat.h) (NLA_U32) | ||
780 | */ | 814 | */ |
781 | enum nft_nat_attributes { | 815 | enum nft_nat_attributes { |
782 | NFTA_NAT_UNSPEC, | 816 | NFTA_NAT_UNSPEC, |
@@ -786,8 +820,33 @@ enum nft_nat_attributes { | |||
786 | NFTA_NAT_REG_ADDR_MAX, | 820 | NFTA_NAT_REG_ADDR_MAX, |
787 | NFTA_NAT_REG_PROTO_MIN, | 821 | NFTA_NAT_REG_PROTO_MIN, |
788 | NFTA_NAT_REG_PROTO_MAX, | 822 | NFTA_NAT_REG_PROTO_MAX, |
823 | NFTA_NAT_FLAGS, | ||
789 | __NFTA_NAT_MAX | 824 | __NFTA_NAT_MAX |
790 | }; | 825 | }; |
791 | #define NFTA_NAT_MAX (__NFTA_NAT_MAX - 1) | 826 | #define NFTA_NAT_MAX (__NFTA_NAT_MAX - 1) |
792 | 827 | ||
828 | /** | ||
829 | * enum nft_masq_attributes - nf_tables masquerade expression attributes | ||
830 | * | ||
831 | * @NFTA_MASQ_FLAGS: NAT flags (see NF_NAT_RANGE_* in linux/netfilter/nf_nat.h) (NLA_U32) | ||
832 | */ | ||
833 | enum nft_masq_attributes { | ||
834 | NFTA_MASQ_UNSPEC, | ||
835 | NFTA_MASQ_FLAGS, | ||
836 | __NFTA_MASQ_MAX | ||
837 | }; | ||
838 | #define NFTA_MASQ_MAX (__NFTA_MASQ_MAX - 1) | ||
839 | |||
840 | /** | ||
841 | * enum nft_gen_attributes - nf_tables ruleset generation attributes | ||
842 | * | ||
843 | * @NFTA_GEN_ID: Ruleset generation ID (NLA_U32) | ||
844 | */ | ||
845 | enum nft_gen_attributes { | ||
846 | NFTA_GEN_UNSPEC, | ||
847 | NFTA_GEN_ID, | ||
848 | __NFTA_GEN_MAX | ||
849 | }; | ||
850 | #define NFTA_GEN_MAX (__NFTA_GEN_MAX - 1) | ||
851 | |||
793 | #endif /* _LINUX_NF_TABLES_H */ | 852 | #endif /* _LINUX_NF_TABLES_H */ |
diff --git a/include/uapi/linux/netfilter/nfnetlink_acct.h b/include/uapi/linux/netfilter/nfnetlink_acct.h index 51404ec19022..f3e34dbbf966 100644 --- a/include/uapi/linux/netfilter/nfnetlink_acct.h +++ b/include/uapi/linux/netfilter/nfnetlink_acct.h | |||
@@ -28,9 +28,17 @@ enum nfnl_acct_type { | |||
28 | NFACCT_USE, | 28 | NFACCT_USE, |
29 | NFACCT_FLAGS, | 29 | NFACCT_FLAGS, |
30 | NFACCT_QUOTA, | 30 | NFACCT_QUOTA, |
31 | NFACCT_FILTER, | ||
31 | __NFACCT_MAX | 32 | __NFACCT_MAX |
32 | }; | 33 | }; |
33 | #define NFACCT_MAX (__NFACCT_MAX - 1) | 34 | #define NFACCT_MAX (__NFACCT_MAX - 1) |
34 | 35 | ||
36 | enum nfnl_attr_filter_type { | ||
37 | NFACCT_FILTER_UNSPEC, | ||
38 | NFACCT_FILTER_MASK, | ||
39 | NFACCT_FILTER_VALUE, | ||
40 | __NFACCT_FILTER_MAX | ||
41 | }; | ||
42 | #define NFACCT_FILTER_MAX (__NFACCT_FILTER_MAX - 1) | ||
35 | 43 | ||
36 | #endif /* _UAPI_NFNL_ACCT_H_ */ | 44 | #endif /* _UAPI_NFNL_ACCT_H_ */ |
diff --git a/include/uapi/linux/netfilter/xt_set.h b/include/uapi/linux/netfilter/xt_set.h index 964d3d42f874..d6a1df1f2947 100644 --- a/include/uapi/linux/netfilter/xt_set.h +++ b/include/uapi/linux/netfilter/xt_set.h | |||
@@ -71,4 +71,14 @@ struct xt_set_info_match_v3 { | |||
71 | __u32 flags; | 71 | __u32 flags; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | /* Revision 3 target */ | ||
75 | |||
76 | struct xt_set_info_target_v3 { | ||
77 | struct xt_set_info add_set; | ||
78 | struct xt_set_info del_set; | ||
79 | struct xt_set_info map_set; | ||
80 | __u32 flags; | ||
81 | __u32 timeout; | ||
82 | }; | ||
83 | |||
74 | #endif /*_XT_SET_H*/ | 84 | #endif /*_XT_SET_H*/ |
diff --git a/include/uapi/linux/netfilter_arp/arpt_mangle.h b/include/uapi/linux/netfilter_arp/arpt_mangle.h index 250f502902bb..8c2b16a1f5a0 100644 --- a/include/uapi/linux/netfilter_arp/arpt_mangle.h +++ b/include/uapi/linux/netfilter_arp/arpt_mangle.h | |||
@@ -13,7 +13,7 @@ struct arpt_mangle | |||
13 | union { | 13 | union { |
14 | struct in_addr tgt_ip; | 14 | struct in_addr tgt_ip; |
15 | } u_t; | 15 | } u_t; |
16 | u_int8_t flags; | 16 | __u8 flags; |
17 | int target; | 17 | int target; |
18 | }; | 18 | }; |
19 | 19 | ||
diff --git a/include/uapi/linux/nfsd/export.h b/include/uapi/linux/nfsd/export.h index cf47c313794e..584b6ef3a5e8 100644 --- a/include/uapi/linux/nfsd/export.h +++ b/include/uapi/linux/nfsd/export.h | |||
@@ -28,7 +28,8 @@ | |||
28 | #define NFSEXP_ALLSQUASH 0x0008 | 28 | #define NFSEXP_ALLSQUASH 0x0008 |
29 | #define NFSEXP_ASYNC 0x0010 | 29 | #define NFSEXP_ASYNC 0x0010 |
30 | #define NFSEXP_GATHERED_WRITES 0x0020 | 30 | #define NFSEXP_GATHERED_WRITES 0x0020 |
31 | /* 40 80 100 currently unused */ | 31 | #define NFSEXP_NOREADDIRPLUS 0x0040 |
32 | /* 80 100 currently unused */ | ||
32 | #define NFSEXP_NOHIDE 0x0200 | 33 | #define NFSEXP_NOHIDE 0x0200 |
33 | #define NFSEXP_NOSUBTREECHECK 0x0400 | 34 | #define NFSEXP_NOSUBTREECHECK 0x0400 |
34 | #define NFSEXP_NOAUTHNLM 0x0800 /* Don't authenticate NLM requests - just trust */ | 35 | #define NFSEXP_NOAUTHNLM 0x0800 /* Don't authenticate NLM requests - just trust */ |
@@ -47,7 +48,7 @@ | |||
47 | */ | 48 | */ |
48 | #define NFSEXP_V4ROOT 0x10000 | 49 | #define NFSEXP_V4ROOT 0x10000 |
49 | /* All flags that we claim to support. (Note we don't support NOACL.) */ | 50 | /* All flags that we claim to support. (Note we don't support NOACL.) */ |
50 | #define NFSEXP_ALLFLAGS 0x17E3F | 51 | #define NFSEXP_ALLFLAGS 0x1FE7F |
51 | 52 | ||
52 | /* The flags that may vary depending on security flavor: */ | 53 | /* The flags that may vary depending on security flavor: */ |
53 | #define NFSEXP_SECINFO_FLAGS (NFSEXP_READONLY | NFSEXP_ROOTSQUASH \ | 54 | #define NFSEXP_SECINFO_FLAGS (NFSEXP_READONLY | NFSEXP_ROOTSQUASH \ |
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index f1db15b9c041..4b28dc07bcb1 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
@@ -722,6 +722,22 @@ | |||
722 | * QoS mapping is relevant for IP packets, it is only valid during an | 722 | * QoS mapping is relevant for IP packets, it is only valid during an |
723 | * association. This is cleared on disassociation and AP restart. | 723 | * association. This is cleared on disassociation and AP restart. |
724 | * | 724 | * |
725 | * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given | ||
726 | * %NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO | ||
727 | * and %NL80211_ATTR_ADMITTED_TIME parameters. | ||
728 | * Note that the action frame handshake with the AP shall be handled by | ||
729 | * userspace via the normal management RX/TX framework, this only sets | ||
730 | * up the TX TS in the driver/device. | ||
731 | * If the admitted time attribute is not added then the request just checks | ||
732 | * if a subsequent setup could be successful, the intent is to use this to | ||
733 | * avoid setting up a session with the AP when local restrictions would | ||
734 | * make that impossible. However, the subsequent "real" setup may still | ||
735 | * fail even if the check was successful. | ||
736 | * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID | ||
737 | * and %NL80211_ATTR_MAC parameters. It isn't necessary to call this | ||
738 | * before removing a station entry entirely, or before disassociating | ||
739 | * or similar, cleanup will happen in the driver/device in this case. | ||
740 | * | ||
725 | * @NL80211_CMD_MAX: highest used command number | 741 | * @NL80211_CMD_MAX: highest used command number |
726 | * @__NL80211_CMD_AFTER_LAST: internal use | 742 | * @__NL80211_CMD_AFTER_LAST: internal use |
727 | */ | 743 | */ |
@@ -893,6 +909,9 @@ enum nl80211_commands { | |||
893 | 909 | ||
894 | NL80211_CMD_SET_QOS_MAP, | 910 | NL80211_CMD_SET_QOS_MAP, |
895 | 911 | ||
912 | NL80211_CMD_ADD_TX_TS, | ||
913 | NL80211_CMD_DEL_TX_TS, | ||
914 | |||
896 | /* add new commands above here */ | 915 | /* add new commands above here */ |
897 | 916 | ||
898 | /* used to define NL80211_CMD_MAX below */ | 917 | /* used to define NL80211_CMD_MAX below */ |
@@ -1594,6 +1613,31 @@ enum nl80211_commands { | |||
1594 | * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is | 1613 | * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is |
1595 | * the TDLS link initiator. | 1614 | * the TDLS link initiator. |
1596 | * | 1615 | * |
1616 | * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection | ||
1617 | * shall support Radio Resource Measurements (11k). This attribute can be | ||
1618 | * used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests. | ||
1619 | * User space applications are expected to use this flag only if the | ||
1620 | * underlying device supports these minimal RRM features: | ||
1621 | * %NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES, | ||
1622 | * %NL80211_FEATURE_QUIET, | ||
1623 | * If this flag is used, driver must add the Power Capabilities IE to the | ||
1624 | * association request. In addition, it must also set the RRM capability | ||
1625 | * flag in the association request's Capability Info field. | ||
1626 | * | ||
1627 | * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout | ||
1628 | * estimation algorithm (dynack). In order to activate dynack | ||
1629 | * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower | ||
1630 | * drivers to indicate dynack capability. Dynack is automatically disabled | ||
1631 | * setting valid value for coverage class. | ||
1632 | * | ||
1633 | * @NL80211_ATTR_TSID: a TSID value (u8 attribute) | ||
1634 | * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute) | ||
1635 | * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds | ||
1636 | * (per second) (u16 attribute) | ||
1637 | * | ||
1638 | * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see | ||
1639 | * &enum nl80211_smps_mode. | ||
1640 | * | ||
1597 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1641 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
1598 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1642 | * @__NL80211_ATTR_AFTER_LAST: internal use |
1599 | */ | 1643 | */ |
@@ -1936,6 +1980,16 @@ enum nl80211_attrs { | |||
1936 | 1980 | ||
1937 | NL80211_ATTR_TDLS_INITIATOR, | 1981 | NL80211_ATTR_TDLS_INITIATOR, |
1938 | 1982 | ||
1983 | NL80211_ATTR_USE_RRM, | ||
1984 | |||
1985 | NL80211_ATTR_WIPHY_DYN_ACK, | ||
1986 | |||
1987 | NL80211_ATTR_TSID, | ||
1988 | NL80211_ATTR_USER_PRIO, | ||
1989 | NL80211_ATTR_ADMITTED_TIME, | ||
1990 | |||
1991 | NL80211_ATTR_SMPS_MODE, | ||
1992 | |||
1939 | /* add attributes here, update the policy in nl80211.c */ | 1993 | /* add attributes here, update the policy in nl80211.c */ |
1940 | 1994 | ||
1941 | __NL80211_ATTR_AFTER_LAST, | 1995 | __NL80211_ATTR_AFTER_LAST, |
@@ -3055,14 +3109,20 @@ enum nl80211_bss_scan_width { | |||
3055 | * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets) | 3109 | * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets) |
3056 | * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) | 3110 | * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) |
3057 | * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) | 3111 | * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) |
3112 | * (if @NL80211_BSS_PRESP_DATA is present then this is known to be | ||
3113 | * from a probe response, otherwise it may be from the same beacon | ||
3114 | * that the NL80211_BSS_BEACON_TSF will be from) | ||
3058 | * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) | 3115 | * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) |
3059 | * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16) | 3116 | * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16) |
3060 | * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the | 3117 | * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the |
3061 | * raw information elements from the probe response/beacon (bin); | 3118 | * raw information elements from the probe response/beacon (bin); |
3062 | * if the %NL80211_BSS_BEACON_IES attribute is present, the IEs here are | 3119 | * if the %NL80211_BSS_BEACON_IES attribute is present and the data is |
3063 | * from a Probe Response frame; otherwise they are from a Beacon frame. | 3120 | * different then the IEs here are from a Probe Response frame; otherwise |
3121 | * they are from a Beacon frame. | ||
3064 | * However, if the driver does not indicate the source of the IEs, these | 3122 | * However, if the driver does not indicate the source of the IEs, these |
3065 | * IEs may be from either frame subtype. | 3123 | * IEs may be from either frame subtype. |
3124 | * If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the | ||
3125 | * data here is known to be from a probe response, without any heuristics. | ||
3066 | * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon | 3126 | * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon |
3067 | * in mBm (100 * dBm) (s32) | 3127 | * in mBm (100 * dBm) (s32) |
3068 | * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon | 3128 | * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon |
@@ -3074,6 +3134,10 @@ enum nl80211_bss_scan_width { | |||
3074 | * yet been received | 3134 | * yet been received |
3075 | * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel | 3135 | * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel |
3076 | * (u32, enum nl80211_bss_scan_width) | 3136 | * (u32, enum nl80211_bss_scan_width) |
3137 | * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64) | ||
3138 | * (not present if no beacon frame has been received yet) | ||
3139 | * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and | ||
3140 | * @NL80211_BSS_TSF is known to be from a probe response (flag attribute) | ||
3077 | * @__NL80211_BSS_AFTER_LAST: internal | 3141 | * @__NL80211_BSS_AFTER_LAST: internal |
3078 | * @NL80211_BSS_MAX: highest BSS attribute | 3142 | * @NL80211_BSS_MAX: highest BSS attribute |
3079 | */ | 3143 | */ |
@@ -3091,6 +3155,8 @@ enum nl80211_bss { | |||
3091 | NL80211_BSS_SEEN_MS_AGO, | 3155 | NL80211_BSS_SEEN_MS_AGO, |
3092 | NL80211_BSS_BEACON_IES, | 3156 | NL80211_BSS_BEACON_IES, |
3093 | NL80211_BSS_CHAN_WIDTH, | 3157 | NL80211_BSS_CHAN_WIDTH, |
3158 | NL80211_BSS_BEACON_TSF, | ||
3159 | NL80211_BSS_PRESP_DATA, | ||
3094 | 3160 | ||
3095 | /* keep last */ | 3161 | /* keep last */ |
3096 | __NL80211_BSS_AFTER_LAST, | 3162 | __NL80211_BSS_AFTER_LAST, |
@@ -3956,6 +4022,26 @@ enum nl80211_ap_sme_features { | |||
3956 | * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic | 4022 | * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic |
3957 | * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the | 4023 | * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the |
3958 | * lifetime of a BSS. | 4024 | * lifetime of a BSS. |
4025 | * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter | ||
4026 | * Set IE to probe requests. | ||
4027 | * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE | ||
4028 | * to probe requests. | ||
4029 | * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period | ||
4030 | * requests sent to it by an AP. | ||
4031 | * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the | ||
4032 | * current tx power value into the TPC Report IE in the spectrum | ||
4033 | * management TPC Report action frame, and in the Radio Measurement Link | ||
4034 | * Measurement Report action frame. | ||
4035 | * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout | ||
4036 | * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used | ||
4037 | * to enable dynack. | ||
4038 | * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial | ||
4039 | * multiplexing powersave, ie. can turn off all but one chain | ||
4040 | * even on HT connections that should be using more chains. | ||
4041 | * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial | ||
4042 | * multiplexing powersave, ie. can turn off all but one chain | ||
4043 | * and then wake the rest up as required after, for example, | ||
4044 | * rts/cts handshake. | ||
3959 | */ | 4045 | */ |
3960 | enum nl80211_feature_flags { | 4046 | enum nl80211_feature_flags { |
3961 | NL80211_FEATURE_SK_TX_STATUS = 1 << 0, | 4047 | NL80211_FEATURE_SK_TX_STATUS = 1 << 0, |
@@ -3977,6 +4063,13 @@ enum nl80211_feature_flags { | |||
3977 | NL80211_FEATURE_USERSPACE_MPM = 1 << 16, | 4063 | NL80211_FEATURE_USERSPACE_MPM = 1 << 16, |
3978 | NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, | 4064 | NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, |
3979 | NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18, | 4065 | NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18, |
4066 | NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19, | ||
4067 | NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20, | ||
4068 | NL80211_FEATURE_QUIET = 1 << 21, | ||
4069 | NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22, | ||
4070 | NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23, | ||
4071 | NL80211_FEATURE_STATIC_SMPS = 1 << 24, | ||
4072 | NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25, | ||
3980 | }; | 4073 | }; |
3981 | 4074 | ||
3982 | /** | 4075 | /** |
@@ -4051,6 +4144,25 @@ enum nl80211_acl_policy { | |||
4051 | }; | 4144 | }; |
4052 | 4145 | ||
4053 | /** | 4146 | /** |
4147 | * enum nl80211_smps_mode - SMPS mode | ||
4148 | * | ||
4149 | * Requested SMPS mode (for AP mode) | ||
4150 | * | ||
4151 | * @NL80211_SMPS_OFF: SMPS off (use all antennas). | ||
4152 | * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) | ||
4153 | * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and | ||
4154 | * turn on other antennas after CTS/RTS). | ||
4155 | */ | ||
4156 | enum nl80211_smps_mode { | ||
4157 | NL80211_SMPS_OFF, | ||
4158 | NL80211_SMPS_STATIC, | ||
4159 | NL80211_SMPS_DYNAMIC, | ||
4160 | |||
4161 | __NL80211_SMPS_AFTER_LAST, | ||
4162 | NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1 | ||
4163 | }; | ||
4164 | |||
4165 | /** | ||
4054 | * enum nl80211_radar_event - type of radar event for DFS operation | 4166 | * enum nl80211_radar_event - type of radar event for DFS operation |
4055 | * | 4167 | * |
4056 | * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace | 4168 | * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace |
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index a794d1dd7b40..435eabc5ffaa 100644 --- a/include/uapi/linux/openvswitch.h +++ b/include/uapi/linux/openvswitch.h | |||
@@ -192,6 +192,7 @@ enum ovs_vport_type { | |||
192 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ | 192 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ |
193 | OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ | 193 | OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ |
194 | OVS_VPORT_TYPE_VXLAN, /* VXLAN tunnel. */ | 194 | OVS_VPORT_TYPE_VXLAN, /* VXLAN tunnel. */ |
195 | OVS_VPORT_TYPE_GENEVE, /* Geneve tunnel. */ | ||
195 | __OVS_VPORT_TYPE_MAX | 196 | __OVS_VPORT_TYPE_MAX |
196 | }; | 197 | }; |
197 | 198 | ||
@@ -289,9 +290,12 @@ enum ovs_key_attr { | |||
289 | OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ | 290 | OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ |
290 | OVS_KEY_ATTR_SCTP, /* struct ovs_key_sctp */ | 291 | OVS_KEY_ATTR_SCTP, /* struct ovs_key_sctp */ |
291 | OVS_KEY_ATTR_TCP_FLAGS, /* be16 TCP flags. */ | 292 | OVS_KEY_ATTR_TCP_FLAGS, /* be16 TCP flags. */ |
293 | OVS_KEY_ATTR_DP_HASH, /* u32 hash value. Value 0 indicates the hash | ||
294 | is not computed by the datapath. */ | ||
295 | OVS_KEY_ATTR_RECIRC_ID, /* u32 recirc id */ | ||
292 | 296 | ||
293 | #ifdef __KERNEL__ | 297 | #ifdef __KERNEL__ |
294 | OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */ | 298 | OVS_KEY_ATTR_TUNNEL_INFO, /* struct ovs_tunnel_info */ |
295 | #endif | 299 | #endif |
296 | __OVS_KEY_ATTR_MAX | 300 | __OVS_KEY_ATTR_MAX |
297 | }; | 301 | }; |
@@ -306,6 +310,8 @@ enum ovs_tunnel_key_attr { | |||
306 | OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */ | 310 | OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */ |
307 | OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ | 311 | OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ |
308 | OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ | 312 | OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ |
313 | OVS_TUNNEL_KEY_ATTR_OAM, /* No argument. OAM frame. */ | ||
314 | OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS, /* Array of Geneve options. */ | ||
309 | __OVS_TUNNEL_KEY_ATTR_MAX | 315 | __OVS_TUNNEL_KEY_ATTR_MAX |
310 | }; | 316 | }; |
311 | 317 | ||
@@ -493,6 +499,27 @@ struct ovs_action_push_vlan { | |||
493 | __be16 vlan_tci; /* 802.1Q TCI (VLAN ID and priority). */ | 499 | __be16 vlan_tci; /* 802.1Q TCI (VLAN ID and priority). */ |
494 | }; | 500 | }; |
495 | 501 | ||
502 | /* Data path hash algorithm for computing Datapath hash. | ||
503 | * | ||
504 | * The algorithm type only specifies the fields in a flow | ||
505 | * will be used as part of the hash. Each datapath is free | ||
506 | * to use its own hash algorithm. The hash value will be | ||
507 | * opaque to the user space daemon. | ||
508 | */ | ||
509 | enum ovs_hash_alg { | ||
510 | OVS_HASH_ALG_L4, | ||
511 | }; | ||
512 | |||
513 | /* | ||
514 | * struct ovs_action_hash - %OVS_ACTION_ATTR_HASH action argument. | ||
515 | * @hash_alg: Algorithm used to compute hash prior to recirculation. | ||
516 | * @hash_basis: basis used for computing hash. | ||
517 | */ | ||
518 | struct ovs_action_hash { | ||
519 | uint32_t hash_alg; /* One of ovs_hash_alg. */ | ||
520 | uint32_t hash_basis; | ||
521 | }; | ||
522 | |||
496 | /** | 523 | /** |
497 | * enum ovs_action_attr - Action types. | 524 | * enum ovs_action_attr - Action types. |
498 | * | 525 | * |
@@ -521,6 +548,8 @@ enum ovs_action_attr { | |||
521 | OVS_ACTION_ATTR_PUSH_VLAN, /* struct ovs_action_push_vlan. */ | 548 | OVS_ACTION_ATTR_PUSH_VLAN, /* struct ovs_action_push_vlan. */ |
522 | OVS_ACTION_ATTR_POP_VLAN, /* No argument. */ | 549 | OVS_ACTION_ATTR_POP_VLAN, /* No argument. */ |
523 | OVS_ACTION_ATTR_SAMPLE, /* Nested OVS_SAMPLE_ATTR_*. */ | 550 | OVS_ACTION_ATTR_SAMPLE, /* Nested OVS_SAMPLE_ATTR_*. */ |
551 | OVS_ACTION_ATTR_RECIRC, /* u32 recirc_id. */ | ||
552 | OVS_ACTION_ATTR_HASH, /* struct ovs_action_hash. */ | ||
524 | __OVS_ACTION_ATTR_MAX | 553 | __OVS_ACTION_ATTR_MAX |
525 | }; | 554 | }; |
526 | 555 | ||
diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 30db069bce62..4a1d0cc38ff2 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h | |||
@@ -552,6 +552,7 @@ | |||
552 | #define PCI_EXP_RTCTL_PMEIE 0x0008 /* PME Interrupt Enable */ | 552 | #define PCI_EXP_RTCTL_PMEIE 0x0008 /* PME Interrupt Enable */ |
553 | #define PCI_EXP_RTCTL_CRSSVE 0x0010 /* CRS Software Visibility Enable */ | 553 | #define PCI_EXP_RTCTL_CRSSVE 0x0010 /* CRS Software Visibility Enable */ |
554 | #define PCI_EXP_RTCAP 30 /* Root Capabilities */ | 554 | #define PCI_EXP_RTCAP 30 /* Root Capabilities */ |
555 | #define PCI_EXP_RTCAP_CRSVIS 0x0001 /* CRS Software Visibility capability */ | ||
555 | #define PCI_EXP_RTSTA 32 /* Root Status */ | 556 | #define PCI_EXP_RTSTA 32 /* Root Status */ |
556 | #define PCI_EXP_RTSTA_PME 0x00010000 /* PME status */ | 557 | #define PCI_EXP_RTSTA_PME 0x00010000 /* PME status */ |
557 | #define PCI_EXP_RTSTA_PENDING 0x00020000 /* PME pending */ | 558 | #define PCI_EXP_RTSTA_PENDING 0x00020000 /* PME pending */ |
@@ -630,7 +631,7 @@ | |||
630 | 631 | ||
631 | /* Advanced Error Reporting */ | 632 | /* Advanced Error Reporting */ |
632 | #define PCI_ERR_UNCOR_STATUS 4 /* Uncorrectable Error Status */ | 633 | #define PCI_ERR_UNCOR_STATUS 4 /* Uncorrectable Error Status */ |
633 | #define PCI_ERR_UNC_TRAIN 0x00000001 /* Training */ | 634 | #define PCI_ERR_UNC_UND 0x00000001 /* Undefined */ |
634 | #define PCI_ERR_UNC_DLP 0x00000010 /* Data Link Protocol */ | 635 | #define PCI_ERR_UNC_DLP 0x00000010 /* Data Link Protocol */ |
635 | #define PCI_ERR_UNC_SURPDN 0x00000020 /* Surprise Down */ | 636 | #define PCI_ERR_UNC_SURPDN 0x00000020 /* Surprise Down */ |
636 | #define PCI_ERR_UNC_POISON_TLP 0x00001000 /* Poisoned TLP */ | 637 | #define PCI_ERR_UNC_POISON_TLP 0x00001000 /* Poisoned TLP */ |
diff --git a/include/uapi/linux/prctl.h b/include/uapi/linux/prctl.h index 58afc04c107e..513df75d0fc9 100644 --- a/include/uapi/linux/prctl.h +++ b/include/uapi/linux/prctl.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _LINUX_PRCTL_H | 1 | #ifndef _LINUX_PRCTL_H |
2 | #define _LINUX_PRCTL_H | 2 | #define _LINUX_PRCTL_H |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | |||
4 | /* Values to pass as first argument to prctl() */ | 6 | /* Values to pass as first argument to prctl() */ |
5 | 7 | ||
6 | #define PR_SET_PDEATHSIG 1 /* Second arg is a signal */ | 8 | #define PR_SET_PDEATHSIG 1 /* Second arg is a signal */ |
@@ -119,6 +121,31 @@ | |||
119 | # define PR_SET_MM_ENV_END 11 | 121 | # define PR_SET_MM_ENV_END 11 |
120 | # define PR_SET_MM_AUXV 12 | 122 | # define PR_SET_MM_AUXV 12 |
121 | # define PR_SET_MM_EXE_FILE 13 | 123 | # define PR_SET_MM_EXE_FILE 13 |
124 | # define PR_SET_MM_MAP 14 | ||
125 | # define PR_SET_MM_MAP_SIZE 15 | ||
126 | |||
127 | /* | ||
128 | * This structure provides new memory descriptor | ||
129 | * map which mostly modifies /proc/pid/stat[m] | ||
130 | * output for a task. This mostly done in a | ||
131 | * sake of checkpoint/restore functionality. | ||
132 | */ | ||
133 | struct prctl_mm_map { | ||
134 | __u64 start_code; /* code section bounds */ | ||
135 | __u64 end_code; | ||
136 | __u64 start_data; /* data section bounds */ | ||
137 | __u64 end_data; | ||
138 | __u64 start_brk; /* heap for brk() syscall */ | ||
139 | __u64 brk; | ||
140 | __u64 start_stack; /* stack starts at */ | ||
141 | __u64 arg_start; /* command line arguments bounds */ | ||
142 | __u64 arg_end; | ||
143 | __u64 env_start; /* environment variables bounds */ | ||
144 | __u64 env_end; | ||
145 | __u64 *auxv; /* auxiliary vector */ | ||
146 | __u32 auxv_size; /* vector size */ | ||
147 | __u32 exe_fd; /* /proc/$pid/exe link file */ | ||
148 | }; | ||
122 | 149 | ||
123 | /* | 150 | /* |
124 | * Set specific pid that is allowed to ptrace the current task. | 151 | * Set specific pid that is allowed to ptrace the current task. |
diff --git a/include/uapi/linux/raid/md_u.h b/include/uapi/linux/raid/md_u.h index 4133e744e4e6..74e7c60c4716 100644 --- a/include/uapi/linux/raid/md_u.h +++ b/include/uapi/linux/raid/md_u.h | |||
@@ -39,7 +39,6 @@ | |||
39 | #define RAID_VERSION _IOR (MD_MAJOR, 0x10, mdu_version_t) | 39 | #define RAID_VERSION _IOR (MD_MAJOR, 0x10, mdu_version_t) |
40 | #define GET_ARRAY_INFO _IOR (MD_MAJOR, 0x11, mdu_array_info_t) | 40 | #define GET_ARRAY_INFO _IOR (MD_MAJOR, 0x11, mdu_array_info_t) |
41 | #define GET_DISK_INFO _IOR (MD_MAJOR, 0x12, mdu_disk_info_t) | 41 | #define GET_DISK_INFO _IOR (MD_MAJOR, 0x12, mdu_disk_info_t) |
42 | #define PRINT_RAID_DEBUG _IO (MD_MAJOR, 0x13) | ||
43 | #define RAID_AUTORUN _IO (MD_MAJOR, 0x14) | 42 | #define RAID_AUTORUN _IO (MD_MAJOR, 0x14) |
44 | #define GET_BITMAP_FILE _IOR (MD_MAJOR, 0x15, mdu_bitmap_file_t) | 43 | #define GET_BITMAP_FILE _IOR (MD_MAJOR, 0x15, mdu_bitmap_file_t) |
45 | 44 | ||
diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h index 5820269aa132..16ad8521af6a 100644 --- a/include/uapi/linux/serial_core.h +++ b/include/uapi/linux/serial_core.h | |||
@@ -244,4 +244,7 @@ | |||
244 | /* SC16IS74xx */ | 244 | /* SC16IS74xx */ |
245 | #define PORT_SC16IS7XX 108 | 245 | #define PORT_SC16IS7XX 108 |
246 | 246 | ||
247 | /* MESON */ | ||
248 | #define PORT_MESON 109 | ||
249 | |||
247 | #endif /* _UAPILINUX_SERIAL_CORE_H */ | 250 | #endif /* _UAPILINUX_SERIAL_CORE_H */ |
diff --git a/include/uapi/linux/smiapp.h b/include/uapi/linux/smiapp.h new file mode 100644 index 000000000000..53938f4412ee --- /dev/null +++ b/include/uapi/linux/smiapp.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * include/uapi/linux/smiapp.h | ||
3 | * | ||
4 | * Generic driver for SMIA/SMIA++ compliant camera modules | ||
5 | * | ||
6 | * Copyright (C) 2014 Intel Corporation | ||
7 | * Contact: Sakari Ailus <sakari.ailus@iki.fi> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public License | ||
11 | * version 2 as published by the Free Software Foundation. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but | ||
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #ifndef __UAPI_LINUX_SMIAPP_H_ | ||
21 | #define __UAPI_LINUX_SMIAPP_H_ | ||
22 | |||
23 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_DISABLED 0 | ||
24 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_SOLID_COLOUR 1 | ||
25 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_COLOUR_BARS 2 | ||
26 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_COLOUR_BARS_GREY 3 | ||
27 | #define V4L2_SMIAPP_TEST_PATTERN_MODE_PN9 4 | ||
28 | |||
29 | #endif /* __UAPI_LINUX_SMIAPP_H_ */ | ||
diff --git a/include/uapi/linux/uhid.h b/include/uapi/linux/uhid.h index 1e3b09c191cd..aaa86d6bd1dd 100644 --- a/include/uapi/linux/uhid.h +++ b/include/uapi/linux/uhid.h | |||
@@ -24,35 +24,23 @@ | |||
24 | #include <linux/hid.h> | 24 | #include <linux/hid.h> |
25 | 25 | ||
26 | enum uhid_event_type { | 26 | enum uhid_event_type { |
27 | UHID_CREATE, | 27 | __UHID_LEGACY_CREATE, |
28 | UHID_DESTROY, | 28 | UHID_DESTROY, |
29 | UHID_START, | 29 | UHID_START, |
30 | UHID_STOP, | 30 | UHID_STOP, |
31 | UHID_OPEN, | 31 | UHID_OPEN, |
32 | UHID_CLOSE, | 32 | UHID_CLOSE, |
33 | UHID_OUTPUT, | 33 | UHID_OUTPUT, |
34 | UHID_OUTPUT_EV, /* obsolete! */ | 34 | __UHID_LEGACY_OUTPUT_EV, |
35 | UHID_INPUT, | 35 | __UHID_LEGACY_INPUT, |
36 | UHID_FEATURE, | 36 | UHID_GET_REPORT, |
37 | UHID_FEATURE_ANSWER, | 37 | UHID_GET_REPORT_REPLY, |
38 | UHID_CREATE2, | 38 | UHID_CREATE2, |
39 | UHID_INPUT2, | 39 | UHID_INPUT2, |
40 | UHID_SET_REPORT, | ||
41 | UHID_SET_REPORT_REPLY, | ||
40 | }; | 42 | }; |
41 | 43 | ||
42 | struct uhid_create_req { | ||
43 | __u8 name[128]; | ||
44 | __u8 phys[64]; | ||
45 | __u8 uniq[64]; | ||
46 | __u8 __user *rd_data; | ||
47 | __u16 rd_size; | ||
48 | |||
49 | __u16 bus; | ||
50 | __u32 vendor; | ||
51 | __u32 product; | ||
52 | __u32 version; | ||
53 | __u32 country; | ||
54 | } __attribute__((__packed__)); | ||
55 | |||
56 | struct uhid_create2_req { | 44 | struct uhid_create2_req { |
57 | __u8 name[128]; | 45 | __u8 name[128]; |
58 | __u8 phys[64]; | 46 | __u8 phys[64]; |
@@ -66,6 +54,16 @@ struct uhid_create2_req { | |||
66 | __u8 rd_data[HID_MAX_DESCRIPTOR_SIZE]; | 54 | __u8 rd_data[HID_MAX_DESCRIPTOR_SIZE]; |
67 | } __attribute__((__packed__)); | 55 | } __attribute__((__packed__)); |
68 | 56 | ||
57 | enum uhid_dev_flag { | ||
58 | UHID_DEV_NUMBERED_FEATURE_REPORTS = (1ULL << 0), | ||
59 | UHID_DEV_NUMBERED_OUTPUT_REPORTS = (1ULL << 1), | ||
60 | UHID_DEV_NUMBERED_INPUT_REPORTS = (1ULL << 2), | ||
61 | }; | ||
62 | |||
63 | struct uhid_start_req { | ||
64 | __u64 dev_flags; | ||
65 | }; | ||
66 | |||
69 | #define UHID_DATA_MAX 4096 | 67 | #define UHID_DATA_MAX 4096 |
70 | 68 | ||
71 | enum uhid_report_type { | 69 | enum uhid_report_type { |
@@ -74,36 +72,94 @@ enum uhid_report_type { | |||
74 | UHID_INPUT_REPORT, | 72 | UHID_INPUT_REPORT, |
75 | }; | 73 | }; |
76 | 74 | ||
77 | struct uhid_input_req { | 75 | struct uhid_input2_req { |
76 | __u16 size; | ||
77 | __u8 data[UHID_DATA_MAX]; | ||
78 | } __attribute__((__packed__)); | ||
79 | |||
80 | struct uhid_output_req { | ||
78 | __u8 data[UHID_DATA_MAX]; | 81 | __u8 data[UHID_DATA_MAX]; |
79 | __u16 size; | 82 | __u16 size; |
83 | __u8 rtype; | ||
80 | } __attribute__((__packed__)); | 84 | } __attribute__((__packed__)); |
81 | 85 | ||
82 | struct uhid_input2_req { | 86 | struct uhid_get_report_req { |
87 | __u32 id; | ||
88 | __u8 rnum; | ||
89 | __u8 rtype; | ||
90 | } __attribute__((__packed__)); | ||
91 | |||
92 | struct uhid_get_report_reply_req { | ||
93 | __u32 id; | ||
94 | __u16 err; | ||
83 | __u16 size; | 95 | __u16 size; |
84 | __u8 data[UHID_DATA_MAX]; | 96 | __u8 data[UHID_DATA_MAX]; |
85 | } __attribute__((__packed__)); | 97 | } __attribute__((__packed__)); |
86 | 98 | ||
87 | struct uhid_output_req { | 99 | struct uhid_set_report_req { |
100 | __u32 id; | ||
101 | __u8 rnum; | ||
102 | __u8 rtype; | ||
103 | __u16 size; | ||
104 | __u8 data[UHID_DATA_MAX]; | ||
105 | } __attribute__((__packed__)); | ||
106 | |||
107 | struct uhid_set_report_reply_req { | ||
108 | __u32 id; | ||
109 | __u16 err; | ||
110 | } __attribute__((__packed__)); | ||
111 | |||
112 | /* | ||
113 | * Compat Layer | ||
114 | * All these commands and requests are obsolete. You should avoid using them in | ||
115 | * new code. We support them for backwards-compatibility, but you might not get | ||
116 | * access to new feature in case you use them. | ||
117 | */ | ||
118 | |||
119 | enum uhid_legacy_event_type { | ||
120 | UHID_CREATE = __UHID_LEGACY_CREATE, | ||
121 | UHID_OUTPUT_EV = __UHID_LEGACY_OUTPUT_EV, | ||
122 | UHID_INPUT = __UHID_LEGACY_INPUT, | ||
123 | UHID_FEATURE = UHID_GET_REPORT, | ||
124 | UHID_FEATURE_ANSWER = UHID_GET_REPORT_REPLY, | ||
125 | }; | ||
126 | |||
127 | /* Obsolete! Use UHID_CREATE2. */ | ||
128 | struct uhid_create_req { | ||
129 | __u8 name[128]; | ||
130 | __u8 phys[64]; | ||
131 | __u8 uniq[64]; | ||
132 | __u8 __user *rd_data; | ||
133 | __u16 rd_size; | ||
134 | |||
135 | __u16 bus; | ||
136 | __u32 vendor; | ||
137 | __u32 product; | ||
138 | __u32 version; | ||
139 | __u32 country; | ||
140 | } __attribute__((__packed__)); | ||
141 | |||
142 | /* Obsolete! Use UHID_INPUT2. */ | ||
143 | struct uhid_input_req { | ||
88 | __u8 data[UHID_DATA_MAX]; | 144 | __u8 data[UHID_DATA_MAX]; |
89 | __u16 size; | 145 | __u16 size; |
90 | __u8 rtype; | ||
91 | } __attribute__((__packed__)); | 146 | } __attribute__((__packed__)); |
92 | 147 | ||
93 | /* Obsolete! Newer kernels will no longer send these events but instead convert | 148 | /* Obsolete! Kernel uses UHID_OUTPUT exclusively now. */ |
94 | * it into raw output reports via UHID_OUTPUT. */ | ||
95 | struct uhid_output_ev_req { | 149 | struct uhid_output_ev_req { |
96 | __u16 type; | 150 | __u16 type; |
97 | __u16 code; | 151 | __u16 code; |
98 | __s32 value; | 152 | __s32 value; |
99 | } __attribute__((__packed__)); | 153 | } __attribute__((__packed__)); |
100 | 154 | ||
155 | /* Obsolete! Kernel uses ABI compatible UHID_GET_REPORT. */ | ||
101 | struct uhid_feature_req { | 156 | struct uhid_feature_req { |
102 | __u32 id; | 157 | __u32 id; |
103 | __u8 rnum; | 158 | __u8 rnum; |
104 | __u8 rtype; | 159 | __u8 rtype; |
105 | } __attribute__((__packed__)); | 160 | } __attribute__((__packed__)); |
106 | 161 | ||
162 | /* Obsolete! Use ABI compatible UHID_GET_REPORT_REPLY. */ | ||
107 | struct uhid_feature_answer_req { | 163 | struct uhid_feature_answer_req { |
108 | __u32 id; | 164 | __u32 id; |
109 | __u16 err; | 165 | __u16 err; |
@@ -111,6 +167,15 @@ struct uhid_feature_answer_req { | |||
111 | __u8 data[UHID_DATA_MAX]; | 167 | __u8 data[UHID_DATA_MAX]; |
112 | } __attribute__((__packed__)); | 168 | } __attribute__((__packed__)); |
113 | 169 | ||
170 | /* | ||
171 | * UHID Events | ||
172 | * All UHID events from and to the kernel are encoded as "struct uhid_event". | ||
173 | * The "type" field contains a UHID_* type identifier. All payload depends on | ||
174 | * that type and can be accessed via ev->u.XYZ accordingly. | ||
175 | * If user-space writes short events, they're extended with 0s by the kernel. If | ||
176 | * the kernel writes short events, user-space shall extend them with 0s. | ||
177 | */ | ||
178 | |||
114 | struct uhid_event { | 179 | struct uhid_event { |
115 | __u32 type; | 180 | __u32 type; |
116 | 181 | ||
@@ -120,9 +185,14 @@ struct uhid_event { | |||
120 | struct uhid_output_req output; | 185 | struct uhid_output_req output; |
121 | struct uhid_output_ev_req output_ev; | 186 | struct uhid_output_ev_req output_ev; |
122 | struct uhid_feature_req feature; | 187 | struct uhid_feature_req feature; |
188 | struct uhid_get_report_req get_report; | ||
123 | struct uhid_feature_answer_req feature_answer; | 189 | struct uhid_feature_answer_req feature_answer; |
190 | struct uhid_get_report_reply_req get_report_reply; | ||
124 | struct uhid_create2_req create2; | 191 | struct uhid_create2_req create2; |
125 | struct uhid_input2_req input2; | 192 | struct uhid_input2_req input2; |
193 | struct uhid_set_report_req set_report; | ||
194 | struct uhid_set_report_reply_req set_report_reply; | ||
195 | struct uhid_start_req start; | ||
126 | } u; | 196 | } u; |
127 | } __attribute__((__packed__)); | 197 | } __attribute__((__packed__)); |
128 | 198 | ||
diff --git a/include/uapi/linux/usb/functionfs.h b/include/uapi/linux/usb/functionfs.h index 0154b2859fd7..295ba299e7bd 100644 --- a/include/uapi/linux/usb/functionfs.h +++ b/include/uapi/linux/usb/functionfs.h | |||
@@ -19,6 +19,7 @@ enum functionfs_flags { | |||
19 | FUNCTIONFS_HAS_HS_DESC = 2, | 19 | FUNCTIONFS_HAS_HS_DESC = 2, |
20 | FUNCTIONFS_HAS_SS_DESC = 4, | 20 | FUNCTIONFS_HAS_SS_DESC = 4, |
21 | FUNCTIONFS_HAS_MS_OS_DESC = 8, | 21 | FUNCTIONFS_HAS_MS_OS_DESC = 8, |
22 | FUNCTIONFS_VIRTUAL_ADDR = 16, | ||
22 | }; | 23 | }; |
23 | 24 | ||
24 | /* Descriptor of an non-audio endpoint */ | 25 | /* Descriptor of an non-audio endpoint */ |
@@ -32,6 +33,16 @@ struct usb_endpoint_descriptor_no_audio { | |||
32 | __u8 bInterval; | 33 | __u8 bInterval; |
33 | } __attribute__((packed)); | 34 | } __attribute__((packed)); |
34 | 35 | ||
36 | struct usb_functionfs_descs_head_v2 { | ||
37 | __le32 magic; | ||
38 | __le32 length; | ||
39 | __le32 flags; | ||
40 | /* | ||
41 | * __le32 fs_count, hs_count, fs_count; must be included manually in | ||
42 | * the structure taking flags into consideration. | ||
43 | */ | ||
44 | } __attribute__((packed)); | ||
45 | |||
35 | /* Legacy format, deprecated as of 3.14. */ | 46 | /* Legacy format, deprecated as of 3.14. */ |
36 | struct usb_functionfs_descs_head { | 47 | struct usb_functionfs_descs_head { |
37 | __le32 magic; | 48 | __le32 magic; |
@@ -92,7 +103,7 @@ struct usb_ext_prop_desc { | |||
92 | * structure. Any flags that are not recognised cause the whole block to be | 103 | * structure. Any flags that are not recognised cause the whole block to be |
93 | * rejected with -ENOSYS. | 104 | * rejected with -ENOSYS. |
94 | * | 105 | * |
95 | * Legacy descriptors format: | 106 | * Legacy descriptors format (deprecated as of 3.14): |
96 | * | 107 | * |
97 | * | off | name | type | description | | 108 | * | off | name | type | description | |
98 | * |-----+-----------+--------------+--------------------------------------| | 109 | * |-----+-----------+--------------+--------------------------------------| |
@@ -265,6 +276,12 @@ struct usb_functionfs_event { | |||
265 | */ | 276 | */ |
266 | #define FUNCTIONFS_ENDPOINT_REVMAP _IO('g', 129) | 277 | #define FUNCTIONFS_ENDPOINT_REVMAP _IO('g', 129) |
267 | 278 | ||
279 | /* | ||
280 | * Returns endpoint descriptor. If function is not active returns -ENODEV. | ||
281 | */ | ||
282 | #define FUNCTIONFS_ENDPOINT_DESC _IOR('g', 130, \ | ||
283 | struct usb_endpoint_descriptor) | ||
284 | |||
268 | 285 | ||
269 | 286 | ||
270 | #endif /* _UAPI__LINUX_FUNCTIONFS_H__ */ | 287 | #endif /* _UAPI__LINUX_FUNCTIONFS_H__ */ |
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index e946e43fb8d5..661f119a51b8 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h | |||
@@ -746,6 +746,8 @@ enum v4l2_auto_focus_range { | |||
746 | V4L2_AUTO_FOCUS_RANGE_INFINITY = 3, | 746 | V4L2_AUTO_FOCUS_RANGE_INFINITY = 3, |
747 | }; | 747 | }; |
748 | 748 | ||
749 | #define V4L2_CID_PAN_SPEED (V4L2_CID_CAMERA_CLASS_BASE+32) | ||
750 | #define V4L2_CID_TILT_SPEED (V4L2_CID_CAMERA_CLASS_BASE+33) | ||
749 | 751 | ||
750 | /* FM Modulator class control IDs */ | 752 | /* FM Modulator class control IDs */ |
751 | 753 | ||
@@ -865,6 +867,10 @@ enum v4l2_jpeg_chroma_subsampling { | |||
865 | #define V4L2_CID_VBLANK (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 1) | 867 | #define V4L2_CID_VBLANK (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 1) |
866 | #define V4L2_CID_HBLANK (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 2) | 868 | #define V4L2_CID_HBLANK (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 2) |
867 | #define V4L2_CID_ANALOGUE_GAIN (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 3) | 869 | #define V4L2_CID_ANALOGUE_GAIN (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 3) |
870 | #define V4L2_CID_TEST_PATTERN_RED (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 4) | ||
871 | #define V4L2_CID_TEST_PATTERN_GREENR (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 5) | ||
872 | #define V4L2_CID_TEST_PATTERN_BLUE (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 6) | ||
873 | #define V4L2_CID_TEST_PATTERN_GREENB (V4L2_CID_IMAGE_SOURCE_CLASS_BASE + 7) | ||
868 | 874 | ||
869 | 875 | ||
870 | /* Image processing controls */ | 876 | /* Image processing controls */ |
diff --git a/include/uapi/linux/v4l2-dv-timings.h b/include/uapi/linux/v4l2-dv-timings.h index 6c8f159e416e..6a0764c89fcb 100644 --- a/include/uapi/linux/v4l2-dv-timings.h +++ b/include/uapi/linux/v4l2-dv-timings.h | |||
@@ -21,17 +21,8 @@ | |||
21 | #ifndef _V4L2_DV_TIMINGS_H | 21 | #ifndef _V4L2_DV_TIMINGS_H |
22 | #define _V4L2_DV_TIMINGS_H | 22 | #define _V4L2_DV_TIMINGS_H |
23 | 23 | ||
24 | #if __GNUC__ < 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ < 6)) | ||
25 | /* Sadly gcc versions older than 4.6 have a bug in how they initialize | ||
26 | anonymous unions where they require additional curly brackets. | ||
27 | This violates the C1x standard. This workaround adds the curly brackets | ||
28 | if needed. */ | ||
29 | #define V4L2_INIT_BT_TIMINGS(_width, args...) \ | 24 | #define V4L2_INIT_BT_TIMINGS(_width, args...) \ |
30 | { .bt = { _width , ## args } } | 25 | { .bt = { _width , ## args } } |
31 | #else | ||
32 | #define V4L2_INIT_BT_TIMINGS(_width, args...) \ | ||
33 | .bt = { _width , ## args } | ||
34 | #endif | ||
35 | 26 | ||
36 | /* CEA-861-E timings (i.e. standard HDTV timings) */ | 27 | /* CEA-861-E timings (i.e. standard HDTV timings) */ |
37 | 28 | ||
diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 6612974c64bf..29715d27548f 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h | |||
@@ -33,6 +33,9 @@ | |||
33 | /* Check if EEH is supported */ | 33 | /* Check if EEH is supported */ |
34 | #define VFIO_EEH 5 | 34 | #define VFIO_EEH 5 |
35 | 35 | ||
36 | /* Two-stage IOMMU */ | ||
37 | #define VFIO_TYPE1_NESTING_IOMMU 6 /* Implies v2 */ | ||
38 | |||
36 | /* | 39 | /* |
37 | * The IOCTL interface is designed for extensibility by embedding the | 40 | * The IOCTL interface is designed for extensibility by embedding the |
38 | * structure length (argsz) and flags into structures passed between | 41 | * structure length (argsz) and flags into structures passed between |
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 778a3298fb34..1c2f84fd4d99 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
@@ -79,6 +79,7 @@ | |||
79 | /* Four-character-code (FOURCC) */ | 79 | /* Four-character-code (FOURCC) */ |
80 | #define v4l2_fourcc(a, b, c, d)\ | 80 | #define v4l2_fourcc(a, b, c, d)\ |
81 | ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24)) | 81 | ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24)) |
82 | #define v4l2_fourcc_be(a, b, c, d) (v4l2_fourcc(a, b, c, d) | (1 << 31)) | ||
82 | 83 | ||
83 | /* | 84 | /* |
84 | * E N U M S | 85 | * E N U M S |
@@ -307,6 +308,8 @@ struct v4l2_pix_format { | |||
307 | #define V4L2_PIX_FMT_XRGB555 v4l2_fourcc('X', 'R', '1', '5') /* 16 XRGB-1-5-5-5 */ | 308 | #define V4L2_PIX_FMT_XRGB555 v4l2_fourcc('X', 'R', '1', '5') /* 16 XRGB-1-5-5-5 */ |
308 | #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R', 'G', 'B', 'P') /* 16 RGB-5-6-5 */ | 309 | #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R', 'G', 'B', 'P') /* 16 RGB-5-6-5 */ |
309 | #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R', 'G', 'B', 'Q') /* 16 RGB-5-5-5 BE */ | 310 | #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R', 'G', 'B', 'Q') /* 16 RGB-5-5-5 BE */ |
311 | #define V4L2_PIX_FMT_ARGB555X v4l2_fourcc_be('A', 'R', '1', '5') /* 16 ARGB-5-5-5 BE */ | ||
312 | #define V4L2_PIX_FMT_XRGB555X v4l2_fourcc_be('X', 'R', '1', '5') /* 16 XRGB-5-5-5 BE */ | ||
310 | #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R', 'G', 'B', 'R') /* 16 RGB-5-6-5 BE */ | 313 | #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R', 'G', 'B', 'R') /* 16 RGB-5-6-5 BE */ |
311 | #define V4L2_PIX_FMT_BGR666 v4l2_fourcc('B', 'G', 'R', 'H') /* 18 BGR-6-6-6 */ | 314 | #define V4L2_PIX_FMT_BGR666 v4l2_fourcc('B', 'G', 'R', 'H') /* 18 BGR-6-6-6 */ |
312 | #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B', 'G', 'R', '3') /* 24 BGR-8-8-8 */ | 315 | #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B', 'G', 'R', '3') /* 24 BGR-8-8-8 */ |
@@ -1285,11 +1288,11 @@ struct v4l2_ext_control { | |||
1285 | union { | 1288 | union { |
1286 | __s32 value; | 1289 | __s32 value; |
1287 | __s64 value64; | 1290 | __s64 value64; |
1288 | char *string; | 1291 | char __user *string; |
1289 | __u8 *p_u8; | 1292 | __u8 __user *p_u8; |
1290 | __u16 *p_u16; | 1293 | __u16 __user *p_u16; |
1291 | __u32 *p_u32; | 1294 | __u32 __user *p_u32; |
1292 | void *ptr; | 1295 | void __user *ptr; |
1293 | }; | 1296 | }; |
1294 | } __attribute__ ((packed)); | 1297 | } __attribute__ ((packed)); |
1295 | 1298 | ||
diff --git a/include/uapi/linux/wil6210_uapi.h b/include/uapi/linux/wil6210_uapi.h new file mode 100644 index 000000000000..6a3cddd156c4 --- /dev/null +++ b/include/uapi/linux/wil6210_uapi.h | |||
@@ -0,0 +1,87 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2014 Qualcomm Atheros, Inc. | ||
3 | * | ||
4 | * Permission to use, copy, modify, and/or distribute this software for any | ||
5 | * purpose with or without fee is hereby granted, provided that the above | ||
6 | * copyright notice and this permission notice appear in all copies. | ||
7 | * | ||
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
15 | */ | ||
16 | |||
17 | #ifndef __WIL6210_UAPI_H__ | ||
18 | #define __WIL6210_UAPI_H__ | ||
19 | |||
20 | #if !defined(__KERNEL__) | ||
21 | #define __user | ||
22 | #endif | ||
23 | |||
24 | #include <linux/sockios.h> | ||
25 | |||
26 | /* Numbers SIOCDEVPRIVATE and SIOCDEVPRIVATE + 1 | ||
27 | * are used by Android devices to implement PNO (preferred network offload). | ||
28 | * Albeit it is temporary solution, use different numbers to avoid conflicts | ||
29 | */ | ||
30 | |||
31 | /** | ||
32 | * Perform 32-bit I/O operation to the card memory | ||
33 | * | ||
34 | * User code should arrange data in memory like this: | ||
35 | * | ||
36 | * struct wil_memio io; | ||
37 | * struct ifreq ifr = { | ||
38 | * .ifr_data = &io, | ||
39 | * }; | ||
40 | */ | ||
41 | #define WIL_IOCTL_MEMIO (SIOCDEVPRIVATE + 2) | ||
42 | |||
43 | /** | ||
44 | * Perform block I/O operation to the card memory | ||
45 | * | ||
46 | * User code should arrange data in memory like this: | ||
47 | * | ||
48 | * void *buf; | ||
49 | * struct wil_memio_block io = { | ||
50 | * .block = buf, | ||
51 | * }; | ||
52 | * struct ifreq ifr = { | ||
53 | * .ifr_data = &io, | ||
54 | * }; | ||
55 | */ | ||
56 | #define WIL_IOCTL_MEMIO_BLOCK (SIOCDEVPRIVATE + 3) | ||
57 | |||
58 | /** | ||
59 | * operation to perform | ||
60 | * | ||
61 | * @wil_mmio_op_mask - bits defining operation, | ||
62 | * @wil_mmio_addr_mask - bits defining addressing mode | ||
63 | */ | ||
64 | enum wil_memio_op { | ||
65 | wil_mmio_read = 0, | ||
66 | wil_mmio_write = 1, | ||
67 | wil_mmio_op_mask = 0xff, | ||
68 | wil_mmio_addr_linker = 0 << 8, | ||
69 | wil_mmio_addr_ahb = 1 << 8, | ||
70 | wil_mmio_addr_bar = 2 << 8, | ||
71 | wil_mmio_addr_mask = 0xff00, | ||
72 | }; | ||
73 | |||
74 | struct wil_memio { | ||
75 | uint32_t op; /* enum wil_memio_op */ | ||
76 | uint32_t addr; /* should be 32-bit aligned */ | ||
77 | uint32_t val; | ||
78 | }; | ||
79 | |||
80 | struct wil_memio_block { | ||
81 | uint32_t op; /* enum wil_memio_op */ | ||
82 | uint32_t addr; /* should be 32-bit aligned */ | ||
83 | uint32_t size; /* should be multiple of 4 */ | ||
84 | void __user *block; /* block address */ | ||
85 | }; | ||
86 | |||
87 | #endif /* __WIL6210_UAPI_H__ */ | ||
diff --git a/include/uapi/linux/xfrm.h b/include/uapi/linux/xfrm.h index 25e5dd916ba4..02d5125a5ee8 100644 --- a/include/uapi/linux/xfrm.h +++ b/include/uapi/linux/xfrm.h | |||
@@ -328,6 +328,8 @@ enum xfrm_spdattr_type_t { | |||
328 | XFRMA_SPD_UNSPEC, | 328 | XFRMA_SPD_UNSPEC, |
329 | XFRMA_SPD_INFO, | 329 | XFRMA_SPD_INFO, |
330 | XFRMA_SPD_HINFO, | 330 | XFRMA_SPD_HINFO, |
331 | XFRMA_SPD_IPV4_HTHRESH, | ||
332 | XFRMA_SPD_IPV6_HTHRESH, | ||
331 | __XFRMA_SPD_MAX | 333 | __XFRMA_SPD_MAX |
332 | 334 | ||
333 | #define XFRMA_SPD_MAX (__XFRMA_SPD_MAX - 1) | 335 | #define XFRMA_SPD_MAX (__XFRMA_SPD_MAX - 1) |
@@ -347,6 +349,11 @@ struct xfrmu_spdhinfo { | |||
347 | __u32 spdhmcnt; | 349 | __u32 spdhmcnt; |
348 | }; | 350 | }; |
349 | 351 | ||
352 | struct xfrmu_spdhthresh { | ||
353 | __u8 lbits; | ||
354 | __u8 rbits; | ||
355 | }; | ||
356 | |||
350 | struct xfrm_usersa_info { | 357 | struct xfrm_usersa_info { |
351 | struct xfrm_selector sel; | 358 | struct xfrm_selector sel; |
352 | struct xfrm_id id; | 359 | struct xfrm_id id; |
diff --git a/include/uapi/misc/Kbuild b/include/uapi/misc/Kbuild new file mode 100644 index 000000000000..e96cae7d58c9 --- /dev/null +++ b/include/uapi/misc/Kbuild | |||
@@ -0,0 +1,2 @@ | |||
1 | # misc Header export list | ||
2 | header-y += cxl.h | ||
diff --git a/include/uapi/misc/cxl.h b/include/uapi/misc/cxl.h new file mode 100644 index 000000000000..cd6d789b73ec --- /dev/null +++ b/include/uapi/misc/cxl.h | |||
@@ -0,0 +1,88 @@ | |||
1 | /* | ||
2 | * Copyright 2014 IBM Corp. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef _UAPI_MISC_CXL_H | ||
11 | #define _UAPI_MISC_CXL_H | ||
12 | |||
13 | #include <linux/types.h> | ||
14 | #include <linux/ioctl.h> | ||
15 | |||
16 | |||
17 | struct cxl_ioctl_start_work { | ||
18 | __u64 flags; | ||
19 | __u64 work_element_descriptor; | ||
20 | __u64 amr; | ||
21 | __s16 num_interrupts; | ||
22 | __s16 reserved1; | ||
23 | __s32 reserved2; | ||
24 | __u64 reserved3; | ||
25 | __u64 reserved4; | ||
26 | __u64 reserved5; | ||
27 | __u64 reserved6; | ||
28 | }; | ||
29 | |||
30 | #define CXL_START_WORK_AMR 0x0000000000000001ULL | ||
31 | #define CXL_START_WORK_NUM_IRQS 0x0000000000000002ULL | ||
32 | #define CXL_START_WORK_ALL (CXL_START_WORK_AMR |\ | ||
33 | CXL_START_WORK_NUM_IRQS) | ||
34 | |||
35 | /* ioctl numbers */ | ||
36 | #define CXL_MAGIC 0xCA | ||
37 | #define CXL_IOCTL_START_WORK _IOW(CXL_MAGIC, 0x00, struct cxl_ioctl_start_work) | ||
38 | #define CXL_IOCTL_GET_PROCESS_ELEMENT _IOR(CXL_MAGIC, 0x01, __u32) | ||
39 | |||
40 | #define CXL_READ_MIN_SIZE 0x1000 /* 4K */ | ||
41 | |||
42 | /* Events from read() */ | ||
43 | enum cxl_event_type { | ||
44 | CXL_EVENT_RESERVED = 0, | ||
45 | CXL_EVENT_AFU_INTERRUPT = 1, | ||
46 | CXL_EVENT_DATA_STORAGE = 2, | ||
47 | CXL_EVENT_AFU_ERROR = 3, | ||
48 | }; | ||
49 | |||
50 | struct cxl_event_header { | ||
51 | __u16 type; | ||
52 | __u16 size; | ||
53 | __u16 process_element; | ||
54 | __u16 reserved1; | ||
55 | }; | ||
56 | |||
57 | struct cxl_event_afu_interrupt { | ||
58 | __u16 flags; | ||
59 | __u16 irq; /* Raised AFU interrupt number */ | ||
60 | __u32 reserved1; | ||
61 | }; | ||
62 | |||
63 | struct cxl_event_data_storage { | ||
64 | __u16 flags; | ||
65 | __u16 reserved1; | ||
66 | __u32 reserved2; | ||
67 | __u64 addr; | ||
68 | __u64 dsisr; | ||
69 | __u64 reserved3; | ||
70 | }; | ||
71 | |||
72 | struct cxl_event_afu_error { | ||
73 | __u16 flags; | ||
74 | __u16 reserved1; | ||
75 | __u32 reserved2; | ||
76 | __u64 error; | ||
77 | }; | ||
78 | |||
79 | struct cxl_event { | ||
80 | struct cxl_event_header header; | ||
81 | union { | ||
82 | struct cxl_event_afu_interrupt irq; | ||
83 | struct cxl_event_data_storage fault; | ||
84 | struct cxl_event_afu_error afu_error; | ||
85 | }; | ||
86 | }; | ||
87 | |||
88 | #endif /* _UAPI_MISC_CXL_H */ | ||