diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
| commit | a02001086bbfb4da35d1228bebc2f1b442db455f (patch) | |
| tree | 62ab47936cef06fd08657ca5b6cd1df98c19be57 /include/uapi/linux | |
| parent | eff264efeeb0898408e8c9df72d8a32621035bed (diff) | |
| parent | fc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff) | |
Merge Linus' tree to be be to apply submitted patches to newer code than
current trivial.git base
Diffstat (limited to 'include/uapi/linux')
56 files changed, 1180 insertions, 141 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index 24e9033f8b3f..4c94f31a8c99 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 |
| @@ -123,6 +125,7 @@ header-y += filter.h | |||
| 123 | header-y += firewire-cdev.h | 125 | header-y += firewire-cdev.h |
| 124 | header-y += firewire-constants.h | 126 | header-y += firewire-constants.h |
| 125 | header-y += flat.h | 127 | header-y += flat.h |
| 128 | header-y += fou.h | ||
| 126 | header-y += fs.h | 129 | header-y += fs.h |
| 127 | header-y += fsl_hypervisor.h | 130 | header-y += fsl_hypervisor.h |
| 128 | header-y += fuse.h | 131 | header-y += fuse.h |
| @@ -139,6 +142,7 @@ header-y += hid.h | |||
| 139 | header-y += hiddev.h | 142 | header-y += hiddev.h |
| 140 | header-y += hidraw.h | 143 | header-y += hidraw.h |
| 141 | header-y += hpet.h | 144 | header-y += hpet.h |
| 145 | header-y += hsr_netlink.h | ||
| 142 | header-y += hyperv.h | 146 | header-y += hyperv.h |
| 143 | header-y += hysdn_if.h | 147 | header-y += hysdn_if.h |
| 144 | header-y += i2c-dev.h | 148 | header-y += i2c-dev.h |
| @@ -240,6 +244,7 @@ header-y += matroxfb.h | |||
| 240 | header-y += mdio.h | 244 | header-y += mdio.h |
| 241 | header-y += media.h | 245 | header-y += media.h |
| 242 | header-y += mei.h | 246 | header-y += mei.h |
| 247 | header-y += memfd.h | ||
| 243 | header-y += mempolicy.h | 248 | header-y += mempolicy.h |
| 244 | header-y += meye.h | 249 | header-y += meye.h |
| 245 | header-y += mic_common.h | 250 | header-y += mic_common.h |
| @@ -248,6 +253,7 @@ header-y += mii.h | |||
| 248 | header-y += minix_fs.h | 253 | header-y += minix_fs.h |
| 249 | header-y += mman.h | 254 | header-y += mman.h |
| 250 | header-y += mmtimer.h | 255 | header-y += mmtimer.h |
| 256 | header-y += mpls.h | ||
| 251 | header-y += mqueue.h | 257 | header-y += mqueue.h |
| 252 | header-y += mroute.h | 258 | header-y += mroute.h |
| 253 | header-y += mroute6.h | 259 | header-y += mroute6.h |
| @@ -353,6 +359,7 @@ header-y += serio.h | |||
| 353 | header-y += shm.h | 359 | header-y += shm.h |
| 354 | header-y += signal.h | 360 | header-y += signal.h |
| 355 | header-y += signalfd.h | 361 | header-y += signalfd.h |
| 362 | header-y += smiapp.h | ||
| 356 | header-y += snmp.h | 363 | header-y += snmp.h |
| 357 | header-y += sock_diag.h | 364 | header-y += sock_diag.h |
| 358 | header-y += socket.h | 365 | header-y += socket.h |
| @@ -370,6 +377,7 @@ header-y += swab.h | |||
| 370 | header-y += synclink.h | 377 | header-y += synclink.h |
| 371 | header-y += sysctl.h | 378 | header-y += sysctl.h |
| 372 | header-y += sysinfo.h | 379 | header-y += sysinfo.h |
| 380 | header-y += target_core_user.h | ||
| 373 | header-y += taskstats.h | 381 | header-y += taskstats.h |
| 374 | header-y += tcp.h | 382 | header-y += tcp.h |
| 375 | header-y += tcp_metrics.h | 383 | header-y += tcp_metrics.h |
| @@ -395,6 +403,7 @@ header-y += un.h | |||
| 395 | header-y += unistd.h | 403 | header-y += unistd.h |
| 396 | header-y += unix_diag.h | 404 | header-y += unix_diag.h |
| 397 | header-y += usbdevice_fs.h | 405 | header-y += usbdevice_fs.h |
| 406 | header-y += usbip.h | ||
| 398 | header-y += utime.h | 407 | header-y += utime.h |
| 399 | header-y += utsname.h | 408 | header-y += utsname.h |
| 400 | header-y += uuid.h | 409 | header-y += uuid.h |
| @@ -418,6 +427,7 @@ header-y += virtio_net.h | |||
| 418 | header-y += virtio_pci.h | 427 | header-y += virtio_pci.h |
| 419 | header-y += virtio_ring.h | 428 | header-y += virtio_ring.h |
| 420 | header-y += virtio_rng.h | 429 | header-y += virtio_rng.h |
| 430 | header=y += vm_sockets.h | ||
| 421 | header-y += vt.h | 431 | header-y += vt.h |
| 422 | header-y += wait.h | 432 | header-y += wait.h |
| 423 | header-y += wanrouter.h | 433 | header-y += wanrouter.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/bsg.h b/include/uapi/linux/bsg.h index 7a12e1c0f371..02986cf8b6f1 100644 --- a/include/uapi/linux/bsg.h +++ b/include/uapi/linux/bsg.h | |||
| @@ -10,12 +10,13 @@ | |||
| 10 | #define BSG_SUB_PROTOCOL_SCSI_TRANSPORT 2 | 10 | #define BSG_SUB_PROTOCOL_SCSI_TRANSPORT 2 |
| 11 | 11 | ||
| 12 | /* | 12 | /* |
| 13 | * For flags member below | 13 | * For flag constants below: |
| 14 | * sg.h sg_io_hdr also has bits defined for it's flags member. However | 14 | * sg.h sg_io_hdr also has bits defined for it's flags member. These |
| 15 | * none of these bits are implemented/used by bsg. The bits below are | 15 | * two flag values (0x10 and 0x20) have the same meaning in sg.h . For |
| 16 | * allocated to not conflict with sg.h ones anyway. | 16 | * bsg the BSG_FLAG_Q_AT_HEAD flag is ignored since it is the deafult. |
| 17 | */ | 17 | */ |
| 18 | #define BSG_FLAG_Q_AT_TAIL 0x10 /* default, == 0 at this bit, is Q_AT_HEAD */ | 18 | #define BSG_FLAG_Q_AT_TAIL 0x10 /* default is Q_AT_HEAD */ |
| 19 | #define BSG_FLAG_Q_AT_HEAD 0x20 | ||
| 19 | 20 | ||
| 20 | struct sg_io_v4 { | 21 | struct sg_io_v4 { |
| 21 | __s32 guard; /* [i] 'Q' to differentiate from v3 */ | 22 | __s32 guard; /* [i] 'Q' to differentiate from v3 */ |
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/fcntl.h b/include/uapi/linux/fcntl.h index 074b886c6be0..beed138bd359 100644 --- a/include/uapi/linux/fcntl.h +++ b/include/uapi/linux/fcntl.h | |||
| @@ -28,6 +28,21 @@ | |||
| 28 | #define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8) | 28 | #define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8) |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * Set/Get seals | ||
| 32 | */ | ||
| 33 | #define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) | ||
| 34 | #define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10) | ||
| 35 | |||
| 36 | /* | ||
| 37 | * Types of seals | ||
| 38 | */ | ||
| 39 | #define F_SEAL_SEAL 0x0001 /* prevent further seals from being set */ | ||
| 40 | #define F_SEAL_SHRINK 0x0002 /* prevent file from shrinking */ | ||
| 41 | #define F_SEAL_GROW 0x0004 /* prevent file from growing */ | ||
| 42 | #define F_SEAL_WRITE 0x0008 /* prevent writes */ | ||
| 43 | /* (1U << 31) is reserved for signed error codes */ | ||
| 44 | |||
| 45 | /* | ||
| 31 | * Types of directory notifications that may be requested. | 46 | * Types of directory notifications that may be requested. |
| 32 | */ | 47 | */ |
| 33 | #define DN_ACCESS 0x00000001 /* File accessed */ | 48 | #define DN_ACCESS 0x00000001 /* File accessed */ |
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/fs.h b/include/uapi/linux/fs.h index ca1a11bb4443..3735fa0a6784 100644 --- a/include/uapi/linux/fs.h +++ b/include/uapi/linux/fs.h | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */ | 38 | #define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */ |
| 39 | #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ | 39 | #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ |
| 40 | #define RENAME_WHITEOUT (1 << 2) /* Whiteout source */ | ||
| 40 | 41 | ||
| 41 | struct fstrim_range { | 42 | struct fstrim_range { |
| 42 | __u64 start; | 43 | __u64 start; |
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_bridge.h b/include/uapi/linux/if_bridge.h index 39f621a9fe82..da17e456908d 100644 --- a/include/uapi/linux/if_bridge.h +++ b/include/uapi/linux/if_bridge.h | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
| 17 | #include <linux/if_ether.h> | 17 | #include <linux/if_ether.h> |
| 18 | #include <linux/in6.h> | ||
| 18 | 19 | ||
| 19 | #define SYSFS_BRIDGE_ATTR "bridge" | 20 | #define SYSFS_BRIDGE_ATTR "bridge" |
| 20 | #define SYSFS_BRIDGE_FDB "brforward" | 21 | #define SYSFS_BRIDGE_FDB "brforward" |
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/in6.h b/include/uapi/linux/in6.h index 22b7a69619d8..74a2a1773494 100644 --- a/include/uapi/linux/in6.h +++ b/include/uapi/linux/in6.h | |||
| @@ -233,7 +233,6 @@ struct in6_flowlabel_req { | |||
| 233 | #if 0 /* not yet */ | 233 | #if 0 /* not yet */ |
| 234 | #define IPV6_USE_MIN_MTU 63 | 234 | #define IPV6_USE_MIN_MTU 63 |
| 235 | #endif | 235 | #endif |
| 236 | #define IPV6_AUTOFLOWLABEL 64 | ||
| 237 | 236 | ||
| 238 | /* | 237 | /* |
| 239 | * Netfilter (1) | 238 | * Netfilter (1) |
| @@ -262,6 +261,7 @@ struct in6_flowlabel_req { | |||
| 262 | * IP6T_SO_ORIGINAL_DST 80 | 261 | * IP6T_SO_ORIGINAL_DST 80 |
| 263 | */ | 262 | */ |
| 264 | 263 | ||
| 264 | #define IPV6_AUTOFLOWLABEL 70 | ||
| 265 | /* RFC5014: Source address selection */ | 265 | /* RFC5014: Source address selection */ |
| 266 | #define IPV6_ADDR_PREFERENCES 72 | 266 | #define IPV6_ADDR_PREFERENCES 72 |
| 267 | 267 | ||
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/input.h b/include/uapi/linux/input.h index 19df18c9b8be..a1d7e931ab72 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h | |||
| @@ -165,6 +165,7 @@ struct input_keymap_entry { | |||
| 165 | #define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */ | 165 | #define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */ |
| 166 | #define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */ | 166 | #define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */ |
| 167 | #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */ | 167 | #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */ |
| 168 | #define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */ | ||
| 168 | 169 | ||
| 169 | #define INPUT_PROP_MAX 0x1f | 170 | #define INPUT_PROP_MAX 0x1f |
| 170 | #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) | 171 | #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) |
| @@ -738,6 +739,13 @@ struct input_keymap_entry { | |||
| 738 | #define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */ | 739 | #define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */ |
| 739 | #define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */ | 740 | #define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */ |
| 740 | 741 | ||
| 742 | #define KEY_KBDINPUTASSIST_PREV 0x260 | ||
| 743 | #define KEY_KBDINPUTASSIST_NEXT 0x261 | ||
| 744 | #define KEY_KBDINPUTASSIST_PREVGROUP 0x262 | ||
| 745 | #define KEY_KBDINPUTASSIST_NEXTGROUP 0x263 | ||
| 746 | #define KEY_KBDINPUTASSIST_ACCEPT 0x264 | ||
| 747 | #define KEY_KBDINPUTASSIST_CANCEL 0x265 | ||
| 748 | |||
| 741 | #define BTN_TRIGGER_HAPPY 0x2c0 | 749 | #define BTN_TRIGGER_HAPPY 0x2c0 |
| 742 | #define BTN_TRIGGER_HAPPY1 0x2c0 | 750 | #define BTN_TRIGGER_HAPPY1 0x2c0 |
| 743 | #define BTN_TRIGGER_HAPPY2 0x2c1 | 751 | #define BTN_TRIGGER_HAPPY2 0x2c1 |
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/kexec.h b/include/uapi/linux/kexec.h index d6629d49a243..6925f5b42f89 100644 --- a/include/uapi/linux/kexec.h +++ b/include/uapi/linux/kexec.h | |||
| @@ -13,6 +13,17 @@ | |||
| 13 | #define KEXEC_PRESERVE_CONTEXT 0x00000002 | 13 | #define KEXEC_PRESERVE_CONTEXT 0x00000002 |
| 14 | #define KEXEC_ARCH_MASK 0xffff0000 | 14 | #define KEXEC_ARCH_MASK 0xffff0000 |
| 15 | 15 | ||
| 16 | /* | ||
| 17 | * Kexec file load interface flags. | ||
| 18 | * KEXEC_FILE_UNLOAD : Unload already loaded kexec/kdump image. | ||
| 19 | * KEXEC_FILE_ON_CRASH : Load/unload operation belongs to kdump image. | ||
| 20 | * KEXEC_FILE_NO_INITRAMFS : No initramfs is being loaded. Ignore the initrd | ||
| 21 | * fd field. | ||
| 22 | */ | ||
| 23 | #define KEXEC_FILE_UNLOAD 0x00000001 | ||
| 24 | #define KEXEC_FILE_ON_CRASH 0x00000002 | ||
| 25 | #define KEXEC_FILE_NO_INITRAMFS 0x00000004 | ||
| 26 | |||
| 16 | /* These values match the ELF architecture values. | 27 | /* These values match the ELF architecture values. |
| 17 | * Unless there is a good reason that should continue to be the case. | 28 | * Unless there is a good reason that should continue to be the case. |
| 18 | */ | 29 | */ |
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 9b744af871d7..60768822b140 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
| @@ -162,7 +162,7 @@ struct kvm_pit_config { | |||
| 162 | #define KVM_EXIT_TPR_ACCESS 12 | 162 | #define KVM_EXIT_TPR_ACCESS 12 |
| 163 | #define KVM_EXIT_S390_SIEIC 13 | 163 | #define KVM_EXIT_S390_SIEIC 13 |
| 164 | #define KVM_EXIT_S390_RESET 14 | 164 | #define KVM_EXIT_S390_RESET 14 |
| 165 | #define KVM_EXIT_DCR 15 | 165 | #define KVM_EXIT_DCR 15 /* deprecated */ |
| 166 | #define KVM_EXIT_NMI 16 | 166 | #define KVM_EXIT_NMI 16 |
| 167 | #define KVM_EXIT_INTERNAL_ERROR 17 | 167 | #define KVM_EXIT_INTERNAL_ERROR 17 |
| 168 | #define KVM_EXIT_OSI 18 | 168 | #define KVM_EXIT_OSI 18 |
| @@ -268,7 +268,7 @@ struct kvm_run { | |||
| 268 | __u64 trans_exc_code; | 268 | __u64 trans_exc_code; |
| 269 | __u32 pgm_code; | 269 | __u32 pgm_code; |
| 270 | } s390_ucontrol; | 270 | } s390_ucontrol; |
| 271 | /* KVM_EXIT_DCR */ | 271 | /* KVM_EXIT_DCR (deprecated) */ |
| 272 | struct { | 272 | struct { |
| 273 | __u32 dcrn; | 273 | __u32 dcrn; |
| 274 | __u32 data; | 274 | __u32 data; |
| @@ -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 |
| @@ -763,6 +759,8 @@ struct kvm_ppc_smmu_info { | |||
| 763 | #define KVM_CAP_VM_ATTRIBUTES 101 | 759 | #define KVM_CAP_VM_ATTRIBUTES 101 |
| 764 | #define KVM_CAP_ARM_PSCI_0_2 102 | 760 | #define KVM_CAP_ARM_PSCI_0_2 102 |
| 765 | #define KVM_CAP_PPC_FIXUP_HCALL 103 | 761 | #define KVM_CAP_PPC_FIXUP_HCALL 103 |
| 762 | #define KVM_CAP_PPC_ENABLE_HCALL 104 | ||
| 763 | #define KVM_CAP_CHECK_EXTENSION_VM 105 | ||
| 766 | 764 | ||
| 767 | #ifdef KVM_CAP_IRQ_ROUTING | 765 | #ifdef KVM_CAP_IRQ_ROUTING |
| 768 | 766 | ||
| @@ -945,15 +943,25 @@ struct kvm_device_attr { | |||
| 945 | __u64 addr; /* userspace address of attr data */ | 943 | __u64 addr; /* userspace address of attr data */ |
| 946 | }; | 944 | }; |
| 947 | 945 | ||
| 948 | #define KVM_DEV_TYPE_FSL_MPIC_20 1 | ||
| 949 | #define KVM_DEV_TYPE_FSL_MPIC_42 2 | ||
| 950 | #define KVM_DEV_TYPE_XICS 3 | ||
| 951 | #define KVM_DEV_TYPE_VFIO 4 | ||
| 952 | #define KVM_DEV_VFIO_GROUP 1 | 946 | #define KVM_DEV_VFIO_GROUP 1 |
| 953 | #define KVM_DEV_VFIO_GROUP_ADD 1 | 947 | #define KVM_DEV_VFIO_GROUP_ADD 1 |
| 954 | #define KVM_DEV_VFIO_GROUP_DEL 2 | 948 | #define KVM_DEV_VFIO_GROUP_DEL 2 |
| 955 | #define KVM_DEV_TYPE_ARM_VGIC_V2 5 | 949 | |
| 956 | #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 | }; | ||
| 957 | 965 | ||
| 958 | /* | 966 | /* |
| 959 | * ioctls for VM fds | 967 | * ioctls for VM fds |
| @@ -1091,7 +1099,7 @@ struct kvm_s390_ucas_mapping { | |||
| 1091 | #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) | 1099 | #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) |
| 1092 | #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) |
| 1093 | #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) |
| 1094 | /* Available with KVM_CAP_NMI */ | 1102 | /* Available with KVM_CAP_USER_NMI */ |
| 1095 | #define KVM_NMI _IO(KVMIO, 0x9a) | 1103 | #define KVM_NMI _IO(KVMIO, 0x9a) |
| 1096 | /* Available with KVM_CAP_SET_GUEST_DEBUG */ | 1104 | /* Available with KVM_CAP_SET_GUEST_DEBUG */ |
| 1097 | #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/memfd.h b/include/uapi/linux/memfd.h new file mode 100644 index 000000000000..534e364bda92 --- /dev/null +++ b/include/uapi/linux/memfd.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef _UAPI_LINUX_MEMFD_H | ||
| 2 | #define _UAPI_LINUX_MEMFD_H | ||
| 3 | |||
| 4 | /* flags for memfd_create(2) (unsigned int) */ | ||
| 5 | #define MFD_CLOEXEC 0x0001U | ||
| 6 | #define MFD_ALLOW_SEALING 0x0002U | ||
| 7 | |||
| 8 | #endif /* _UAPI_LINUX_MEMFD_H */ | ||
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/perf_event.h b/include/uapi/linux/perf_event.h index 9269de254874..9d845404d875 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
| @@ -364,7 +364,7 @@ struct perf_event_mmap_page { | |||
| 364 | /* | 364 | /* |
| 365 | * Bits needed to read the hw events in user-space. | 365 | * Bits needed to read the hw events in user-space. |
| 366 | * | 366 | * |
| 367 | * u32 seq, time_mult, time_shift, idx, width; | 367 | * u32 seq, time_mult, time_shift, index, width; |
| 368 | * u64 count, enabled, running; | 368 | * u64 count, enabled, running; |
| 369 | * u64 cyc, time_offset; | 369 | * u64 cyc, time_offset; |
| 370 | * s64 pmc = 0; | 370 | * s64 pmc = 0; |
| @@ -383,11 +383,11 @@ struct perf_event_mmap_page { | |||
| 383 | * time_shift = pc->time_shift; | 383 | * time_shift = pc->time_shift; |
| 384 | * } | 384 | * } |
| 385 | * | 385 | * |
| 386 | * idx = pc->index; | 386 | * index = pc->index; |
| 387 | * count = pc->offset; | 387 | * count = pc->offset; |
| 388 | * if (pc->cap_usr_rdpmc && idx) { | 388 | * if (pc->cap_user_rdpmc && index) { |
| 389 | * width = pc->pmc_width; | 389 | * width = pc->pmc_width; |
| 390 | * pmc = rdpmc(idx - 1); | 390 | * pmc = rdpmc(index - 1); |
| 391 | * } | 391 | * } |
| 392 | * | 392 | * |
| 393 | * barrier(); | 393 | * barrier(); |
| @@ -415,7 +415,7 @@ struct perf_event_mmap_page { | |||
| 415 | }; | 415 | }; |
| 416 | 416 | ||
| 417 | /* | 417 | /* |
| 418 | * If cap_usr_rdpmc this field provides the bit-width of the value | 418 | * If cap_user_rdpmc this field provides the bit-width of the value |
| 419 | * read using the rdpmc() or equivalent instruction. This can be used | 419 | * read using the rdpmc() or equivalent instruction. This can be used |
| 420 | * to sign extend the result like: | 420 | * to sign extend the result like: |
| 421 | * | 421 | * |
| @@ -439,10 +439,10 @@ struct perf_event_mmap_page { | |||
| 439 | * | 439 | * |
| 440 | * Where time_offset,time_mult,time_shift and cyc are read in the | 440 | * Where time_offset,time_mult,time_shift and cyc are read in the |
| 441 | * seqcount loop described above. This delta can then be added to | 441 | * seqcount loop described above. This delta can then be added to |
| 442 | * enabled and possible running (if idx), improving the scaling: | 442 | * enabled and possible running (if index), improving the scaling: |
| 443 | * | 443 | * |
| 444 | * enabled += delta; | 444 | * enabled += delta; |
| 445 | * if (idx) | 445 | * if (index) |
| 446 | * running += delta; | 446 | * running += delta; |
| 447 | * | 447 | * |
| 448 | * quot = count / running; | 448 | * quot = count / running; |
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/sched.h b/include/uapi/linux/sched.h index 34f9d7387d13..b932be9f5c5b 100644 --- a/include/uapi/linux/sched.h +++ b/include/uapi/linux/sched.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #define CLONE_VFORK 0x00004000 /* set if the parent wants the child to wake it up on mm_release */ | 13 | #define CLONE_VFORK 0x00004000 /* set if the parent wants the child to wake it up on mm_release */ |
| 14 | #define CLONE_PARENT 0x00008000 /* set if we want to have the same parent as the cloner */ | 14 | #define CLONE_PARENT 0x00008000 /* set if we want to have the same parent as the cloner */ |
| 15 | #define CLONE_THREAD 0x00010000 /* Same thread group? */ | 15 | #define CLONE_THREAD 0x00010000 /* Same thread group? */ |
| 16 | #define CLONE_NEWNS 0x00020000 /* New namespace group? */ | 16 | #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ |
| 17 | #define CLONE_SYSVSEM 0x00040000 /* share system V SEM_UNDO semantics */ | 17 | #define CLONE_SYSVSEM 0x00040000 /* share system V SEM_UNDO semantics */ |
| 18 | #define CLONE_SETTLS 0x00080000 /* create a new TLS for the child */ | 18 | #define CLONE_SETTLS 0x00080000 /* create a new TLS for the child */ |
| 19 | #define CLONE_PARENT_SETTID 0x00100000 /* set the TID in the parent */ | 19 | #define CLONE_PARENT_SETTID 0x00100000 /* set the TID in the parent */ |
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/serio.h b/include/uapi/linux/serio.h index 9f53fa7fc132..becdd78295cc 100644 --- a/include/uapi/linux/serio.h +++ b/include/uapi/linux/serio.h | |||
| @@ -76,5 +76,6 @@ | |||
| 76 | #define SERIO_HAMPSHIRE 0x3b | 76 | #define SERIO_HAMPSHIRE 0x3b |
| 77 | #define SERIO_PS2MULT 0x3c | 77 | #define SERIO_PS2MULT 0x3c |
| 78 | #define SERIO_TSC40 0x3d | 78 | #define SERIO_TSC40 0x3d |
| 79 | #define SERIO_WACOM_IV 0x3e | ||
| 79 | 80 | ||
| 80 | #endif /* _UAPI_SERIO_H */ | 81 | #endif /* _UAPI_SERIO_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/target_core_user.h b/include/uapi/linux/target_core_user.h new file mode 100644 index 000000000000..7dcfbe6771b1 --- /dev/null +++ b/include/uapi/linux/target_core_user.h | |||
| @@ -0,0 +1,142 @@ | |||
| 1 | #ifndef __TARGET_CORE_USER_H | ||
| 2 | #define __TARGET_CORE_USER_H | ||
| 3 | |||
| 4 | /* This header will be used by application too */ | ||
| 5 | |||
| 6 | #include <linux/types.h> | ||
| 7 | #include <linux/uio.h> | ||
| 8 | |||
| 9 | #ifndef __packed | ||
| 10 | #define __packed __attribute__((packed)) | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #define TCMU_VERSION "1.0" | ||
| 14 | |||
| 15 | /* | ||
| 16 | * Ring Design | ||
| 17 | * ----------- | ||
| 18 | * | ||
| 19 | * The mmaped area is divided into three parts: | ||
| 20 | * 1) The mailbox (struct tcmu_mailbox, below) | ||
| 21 | * 2) The command ring | ||
| 22 | * 3) Everything beyond the command ring (data) | ||
| 23 | * | ||
| 24 | * The mailbox tells userspace the offset of the command ring from the | ||
| 25 | * start of the shared memory region, and how big the command ring is. | ||
| 26 | * | ||
| 27 | * The kernel passes SCSI commands to userspace by putting a struct | ||
| 28 | * tcmu_cmd_entry in the ring, updating mailbox->cmd_head, and poking | ||
| 29 | * userspace via uio's interrupt mechanism. | ||
| 30 | * | ||
| 31 | * tcmu_cmd_entry contains a header. If the header type is PAD, | ||
| 32 | * userspace should skip hdr->length bytes (mod cmdr_size) to find the | ||
| 33 | * next cmd_entry. | ||
| 34 | * | ||
| 35 | * Otherwise, the entry will contain offsets into the mmaped area that | ||
| 36 | * contain the cdb and data buffers -- the latter accessible via the | ||
| 37 | * iov array. iov addresses are also offsets into the shared area. | ||
| 38 | * | ||
| 39 | * When userspace is completed handling the command, set | ||
| 40 | * entry->rsp.scsi_status, fill in rsp.sense_buffer if appropriate, | ||
| 41 | * and also set mailbox->cmd_tail equal to the old cmd_tail plus | ||
| 42 | * hdr->length, mod cmdr_size. If cmd_tail doesn't equal cmd_head, it | ||
| 43 | * should process the next packet the same way, and so on. | ||
| 44 | */ | ||
| 45 | |||
| 46 | #define TCMU_MAILBOX_VERSION 1 | ||
| 47 | #define ALIGN_SIZE 64 /* Should be enough for most CPUs */ | ||
| 48 | |||
| 49 | struct tcmu_mailbox { | ||
| 50 | __u16 version; | ||
| 51 | __u16 flags; | ||
| 52 | __u32 cmdr_off; | ||
| 53 | __u32 cmdr_size; | ||
| 54 | |||
| 55 | __u32 cmd_head; | ||
| 56 | |||
| 57 | /* Updated by user. On its own cacheline */ | ||
| 58 | __u32 cmd_tail __attribute__((__aligned__(ALIGN_SIZE))); | ||
| 59 | |||
| 60 | } __packed; | ||
| 61 | |||
| 62 | enum tcmu_opcode { | ||
| 63 | TCMU_OP_PAD = 0, | ||
| 64 | TCMU_OP_CMD, | ||
| 65 | }; | ||
| 66 | |||
| 67 | /* | ||
| 68 | * Only a few opcodes, and length is 8-byte aligned, so use low bits for opcode. | ||
| 69 | */ | ||
| 70 | struct tcmu_cmd_entry_hdr { | ||
| 71 | __u32 len_op; | ||
| 72 | } __packed; | ||
| 73 | |||
| 74 | #define TCMU_OP_MASK 0x7 | ||
| 75 | |||
| 76 | static inline enum tcmu_opcode tcmu_hdr_get_op(struct tcmu_cmd_entry_hdr *hdr) | ||
| 77 | { | ||
| 78 | return hdr->len_op & TCMU_OP_MASK; | ||
| 79 | } | ||
| 80 | |||
| 81 | static inline void tcmu_hdr_set_op(struct tcmu_cmd_entry_hdr *hdr, enum tcmu_opcode op) | ||
| 82 | { | ||
| 83 | hdr->len_op &= ~TCMU_OP_MASK; | ||
| 84 | hdr->len_op |= (op & TCMU_OP_MASK); | ||
| 85 | } | ||
| 86 | |||
| 87 | static inline __u32 tcmu_hdr_get_len(struct tcmu_cmd_entry_hdr *hdr) | ||
| 88 | { | ||
| 89 | return hdr->len_op & ~TCMU_OP_MASK; | ||
| 90 | } | ||
| 91 | |||
| 92 | static inline void tcmu_hdr_set_len(struct tcmu_cmd_entry_hdr *hdr, __u32 len) | ||
| 93 | { | ||
| 94 | hdr->len_op &= TCMU_OP_MASK; | ||
| 95 | hdr->len_op |= len; | ||
| 96 | } | ||
| 97 | |||
| 98 | /* Currently the same as SCSI_SENSE_BUFFERSIZE */ | ||
| 99 | #define TCMU_SENSE_BUFFERSIZE 96 | ||
| 100 | |||
| 101 | struct tcmu_cmd_entry { | ||
| 102 | struct tcmu_cmd_entry_hdr hdr; | ||
| 103 | |||
| 104 | uint16_t cmd_id; | ||
| 105 | uint16_t __pad1; | ||
| 106 | |||
| 107 | union { | ||
| 108 | struct { | ||
| 109 | uint64_t cdb_off; | ||
| 110 | uint64_t iov_cnt; | ||
| 111 | struct iovec iov[0]; | ||
| 112 | } req; | ||
| 113 | struct { | ||
| 114 | uint8_t scsi_status; | ||
| 115 | uint8_t __pad1; | ||
| 116 | uint16_t __pad2; | ||
| 117 | uint32_t __pad3; | ||
| 118 | char sense_buffer[TCMU_SENSE_BUFFERSIZE]; | ||
| 119 | } rsp; | ||
| 120 | }; | ||
| 121 | |||
| 122 | } __packed; | ||
| 123 | |||
| 124 | #define TCMU_OP_ALIGN_SIZE sizeof(uint64_t) | ||
| 125 | |||
| 126 | enum tcmu_genl_cmd { | ||
| 127 | TCMU_CMD_UNSPEC, | ||
| 128 | TCMU_CMD_ADDED_DEVICE, | ||
| 129 | TCMU_CMD_REMOVED_DEVICE, | ||
| 130 | __TCMU_CMD_MAX, | ||
| 131 | }; | ||
| 132 | #define TCMU_CMD_MAX (__TCMU_CMD_MAX - 1) | ||
| 133 | |||
| 134 | enum tcmu_genl_attr { | ||
| 135 | TCMU_ATTR_UNSPEC, | ||
| 136 | TCMU_ATTR_DEVICE, | ||
| 137 | TCMU_ATTR_MINOR, | ||
| 138 | __TCMU_ATTR_MAX, | ||
| 139 | }; | ||
| 140 | #define TCMU_ATTR_MAX (__TCMU_ATTR_MAX - 1) | ||
| 141 | |||
| 142 | #endif | ||
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/uinput.h b/include/uapi/linux/uinput.h index 0389b489bbba..baeab83deb64 100644 --- a/include/uapi/linux/uinput.h +++ b/include/uapi/linux/uinput.h | |||
| @@ -84,6 +84,15 @@ struct uinput_ff_erase { | |||
| 84 | */ | 84 | */ |
| 85 | #define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 300, len) | 85 | #define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 300, len) |
| 86 | 86 | ||
| 87 | /** | ||
| 88 | * UI_GET_VERSION - Return version of uinput protocol | ||
| 89 | * | ||
| 90 | * This writes uinput protocol version implemented by the kernel into | ||
| 91 | * the integer pointed to by the ioctl argument. The protocol version | ||
| 92 | * is hard-coded in the kernel and is independent of the uinput device. | ||
| 93 | */ | ||
| 94 | #define UI_GET_VERSION _IOR(UINPUT_IOCTL_BASE, 301, unsigned int) | ||
| 95 | |||
| 87 | /* | 96 | /* |
| 88 | * To write a force-feedback-capable driver, the upload_effect | 97 | * To write a force-feedback-capable driver, the upload_effect |
| 89 | * and erase_effect callbacks in input_dev must be implemented. | 98 | * and erase_effect callbacks in input_dev must be implemented. |
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/usbip.h b/include/uapi/linux/usbip.h new file mode 100644 index 000000000000..fa5db30ede36 --- /dev/null +++ b/include/uapi/linux/usbip.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * usbip.h | ||
| 3 | * | ||
| 4 | * USBIP uapi defines and function prototypes etc. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef _UAPI_LINUX_USBIP_H | ||
| 8 | #define _UAPI_LINUX_USBIP_H | ||
| 9 | |||
| 10 | /* usbip device status - exported in usbip device sysfs status */ | ||
| 11 | enum usbip_device_status { | ||
| 12 | /* sdev is available. */ | ||
| 13 | SDEV_ST_AVAILABLE = 0x01, | ||
| 14 | /* sdev is now used. */ | ||
| 15 | SDEV_ST_USED, | ||
| 16 | /* sdev is unusable because of a fatal error. */ | ||
| 17 | SDEV_ST_ERROR, | ||
| 18 | |||
| 19 | /* vdev does not connect a remote device. */ | ||
| 20 | VDEV_ST_NULL, | ||
| 21 | /* vdev is used, but the USB address is not assigned yet */ | ||
| 22 | VDEV_ST_NOTASSIGNED, | ||
| 23 | VDEV_ST_USED, | ||
| 24 | VDEV_ST_ERROR | ||
| 25 | }; | ||
| 26 | #endif /* _UAPI_LINUX_USBIP_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/vfio.h b/include/uapi/linux/vfio.h index cb9023d4f063..29715d27548f 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h | |||
| @@ -30,6 +30,12 @@ | |||
| 30 | */ | 30 | */ |
| 31 | #define VFIO_DMA_CC_IOMMU 4 | 31 | #define VFIO_DMA_CC_IOMMU 4 |
| 32 | 32 | ||
| 33 | /* Check if EEH is supported */ | ||
| 34 | #define VFIO_EEH 5 | ||
| 35 | |||
| 36 | /* Two-stage IOMMU */ | ||
| 37 | #define VFIO_TYPE1_NESTING_IOMMU 6 /* Implies v2 */ | ||
| 38 | |||
| 33 | /* | 39 | /* |
| 34 | * The IOCTL interface is designed for extensibility by embedding the | 40 | * The IOCTL interface is designed for extensibility by embedding the |
| 35 | * structure length (argsz) and flags into structures passed between | 41 | * structure length (argsz) and flags into structures passed between |
| @@ -455,6 +461,37 @@ struct vfio_iommu_spapr_tce_info { | |||
| 455 | 461 | ||
| 456 | #define VFIO_IOMMU_SPAPR_TCE_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12) | 462 | #define VFIO_IOMMU_SPAPR_TCE_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12) |
| 457 | 463 | ||
| 464 | /* | ||
| 465 | * EEH PE operation struct provides ways to: | ||
| 466 | * - enable/disable EEH functionality; | ||
| 467 | * - unfreeze IO/DMA for frozen PE; | ||
| 468 | * - read PE state; | ||
| 469 | * - reset PE; | ||
| 470 | * - configure PE. | ||
| 471 | */ | ||
| 472 | struct vfio_eeh_pe_op { | ||
| 473 | __u32 argsz; | ||
| 474 | __u32 flags; | ||
| 475 | __u32 op; | ||
| 476 | }; | ||
| 477 | |||
| 478 | #define VFIO_EEH_PE_DISABLE 0 /* Disable EEH functionality */ | ||
| 479 | #define VFIO_EEH_PE_ENABLE 1 /* Enable EEH functionality */ | ||
| 480 | #define VFIO_EEH_PE_UNFREEZE_IO 2 /* Enable IO for frozen PE */ | ||
| 481 | #define VFIO_EEH_PE_UNFREEZE_DMA 3 /* Enable DMA for frozen PE */ | ||
| 482 | #define VFIO_EEH_PE_GET_STATE 4 /* PE state retrieval */ | ||
| 483 | #define VFIO_EEH_PE_STATE_NORMAL 0 /* PE in functional state */ | ||
| 484 | #define VFIO_EEH_PE_STATE_RESET 1 /* PE reset in progress */ | ||
| 485 | #define VFIO_EEH_PE_STATE_STOPPED 2 /* Stopped DMA and IO */ | ||
| 486 | #define VFIO_EEH_PE_STATE_STOPPED_DMA 4 /* Stopped DMA only */ | ||
| 487 | #define VFIO_EEH_PE_STATE_UNAVAIL 5 /* State unavailable */ | ||
| 488 | #define VFIO_EEH_PE_RESET_DEACTIVATE 5 /* Deassert PE reset */ | ||
| 489 | #define VFIO_EEH_PE_RESET_HOT 6 /* Assert hot reset */ | ||
| 490 | #define VFIO_EEH_PE_RESET_FUNDAMENTAL 7 /* Assert fundamental reset */ | ||
| 491 | #define VFIO_EEH_PE_CONFIGURE 8 /* PE configuration */ | ||
| 492 | |||
| 493 | #define VFIO_EEH_PE_OP _IO(VFIO_TYPE, VFIO_BASE + 21) | ||
| 494 | |||
| 458 | /* ***************************************************************** */ | 495 | /* ***************************************************************** */ |
| 459 | 496 | ||
| 460 | #endif /* _UAPIVFIO_H */ | 497 | #endif /* _UAPIVFIO_H */ |
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/virtio_blk.h b/include/uapi/linux/virtio_blk.h index 6d8e61c48563..9ad67b267584 100644 --- a/include/uapi/linux/virtio_blk.h +++ b/include/uapi/linux/virtio_blk.h | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | #define VIRTIO_BLK_F_WCE 9 /* Writeback mode enabled after reset */ | 40 | #define VIRTIO_BLK_F_WCE 9 /* Writeback mode enabled after reset */ |
| 41 | #define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */ | 41 | #define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */ |
| 42 | #define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */ | 42 | #define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */ |
| 43 | #define VIRTIO_BLK_F_MQ 12 /* support more than one vq */ | ||
| 43 | 44 | ||
| 44 | #ifndef __KERNEL__ | 45 | #ifndef __KERNEL__ |
| 45 | /* Old (deprecated) name for VIRTIO_BLK_F_WCE. */ | 46 | /* Old (deprecated) name for VIRTIO_BLK_F_WCE. */ |
| @@ -77,6 +78,10 @@ struct virtio_blk_config { | |||
| 77 | 78 | ||
| 78 | /* writeback mode (if VIRTIO_BLK_F_CONFIG_WCE) */ | 79 | /* writeback mode (if VIRTIO_BLK_F_CONFIG_WCE) */ |
| 79 | __u8 wce; | 80 | __u8 wce; |
| 81 | __u8 unused; | ||
| 82 | |||
| 83 | /* number of vqs, only available when VIRTIO_BLK_F_MQ is set */ | ||
| 84 | __u16 num_queues; | ||
| 80 | } __attribute__((packed)); | 85 | } __attribute__((packed)); |
| 81 | 86 | ||
| 82 | /* | 87 | /* |
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/xattr.h b/include/uapi/linux/xattr.h index c38355c1f3c9..1590c49cae57 100644 --- a/include/uapi/linux/xattr.h +++ b/include/uapi/linux/xattr.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #ifndef _UAPI_LINUX_XATTR_H | 13 | #ifndef _UAPI_LINUX_XATTR_H |
| 14 | #define _UAPI_LINUX_XATTR_H | 14 | #define _UAPI_LINUX_XATTR_H |
| 15 | 15 | ||
| 16 | #ifdef __UAPI_DEF_XATTR | 16 | #if __UAPI_DEF_XATTR |
| 17 | #define __USE_KERNEL_XATTR_DEFS | 17 | #define __USE_KERNEL_XATTR_DEFS |
| 18 | 18 | ||
| 19 | #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */ | 19 | #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */ |
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; |
