diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2013-09-04 04:49:39 -0400 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2013-09-04 04:49:57 -0400 |
| commit | efd15f5f4ff63f6ac5d80850686e3d2cc8c4481b (patch) | |
| tree | 40024adbe77a3d660662e639fd765097133d648c /include/uapi/linux | |
| parent | 6c2794a2984f4c17a58117a68703cc7640f01c5a (diff) | |
| parent | 58c59bc997d86593f0bea41845885917cf304d22 (diff) | |
Merge branch 'master' into for-3.12/upstream
Sync with Linus' tree to be able to apply fixup patch on top
of 9d9a04ee75 ("HID: apple: Add support for the 2013 Macbook Air")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux')
27 files changed, 237 insertions, 36 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index bdc6e87ff3eb..997f9f2f0963 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild | |||
| @@ -62,6 +62,7 @@ header-y += auxvec.h | |||
| 62 | header-y += ax25.h | 62 | header-y += ax25.h |
| 63 | header-y += b1lli.h | 63 | header-y += b1lli.h |
| 64 | header-y += baycom.h | 64 | header-y += baycom.h |
| 65 | header-y += bcm933xx_hcs.h | ||
| 65 | header-y += bfs_fs.h | 66 | header-y += bfs_fs.h |
| 66 | header-y += binfmts.h | 67 | header-y += binfmts.h |
| 67 | header-y += blkpg.h | 68 | header-y += blkpg.h |
diff --git a/include/uapi/linux/bcm933xx_hcs.h b/include/uapi/linux/bcm933xx_hcs.h new file mode 100644 index 000000000000..d22821831549 --- /dev/null +++ b/include/uapi/linux/bcm933xx_hcs.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* | ||
| 2 | * Broadcom Cable Modem firmware format | ||
| 3 | */ | ||
| 4 | |||
| 5 | #ifndef __BCM933XX_HCS_H | ||
| 6 | #define __BCM933XX_HCS_H | ||
| 7 | |||
| 8 | #include <linux/types.h> | ||
| 9 | |||
| 10 | struct bcm_hcs { | ||
| 11 | __u16 magic; | ||
| 12 | __u16 control; | ||
| 13 | __u16 rev_maj; | ||
| 14 | __u16 rev_min; | ||
| 15 | __u32 build_date; | ||
| 16 | __u32 filelen; | ||
| 17 | __u32 ldaddress; | ||
| 18 | char filename[64]; | ||
| 19 | __u16 hcs; | ||
| 20 | __u16 her_znaet_chto; | ||
| 21 | __u32 crc; | ||
| 22 | }; | ||
| 23 | |||
| 24 | #endif /* __BCM933XX_HCS */ | ||
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index 5ef0df545a2a..05aed70627e2 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h | |||
| @@ -447,6 +447,46 @@ struct btrfs_ioctl_send_args { | |||
| 447 | __u64 reserved[4]; /* in */ | 447 | __u64 reserved[4]; /* in */ |
| 448 | }; | 448 | }; |
| 449 | 449 | ||
| 450 | /* Error codes as returned by the kernel */ | ||
| 451 | enum btrfs_err_code { | ||
| 452 | notused, | ||
| 453 | BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET, | ||
| 454 | BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET, | ||
| 455 | BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET, | ||
| 456 | BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET, | ||
| 457 | BTRFS_ERROR_DEV_TGT_REPLACE, | ||
| 458 | BTRFS_ERROR_DEV_MISSING_NOT_FOUND, | ||
| 459 | BTRFS_ERROR_DEV_ONLY_WRITABLE, | ||
| 460 | BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS | ||
| 461 | }; | ||
| 462 | /* An error code to error string mapping for the kernel | ||
| 463 | * error codes | ||
| 464 | */ | ||
| 465 | static inline char *btrfs_err_str(enum btrfs_err_code err_code) | ||
| 466 | { | ||
| 467 | switch (err_code) { | ||
| 468 | case BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET: | ||
| 469 | return "unable to go below two devices on raid1"; | ||
| 470 | case BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET: | ||
| 471 | return "unable to go below four devices on raid10"; | ||
| 472 | case BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET: | ||
| 473 | return "unable to go below two devices on raid5"; | ||
| 474 | case BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET: | ||
| 475 | return "unable to go below three devices on raid6"; | ||
| 476 | case BTRFS_ERROR_DEV_TGT_REPLACE: | ||
| 477 | return "unable to remove the dev_replace target dev"; | ||
| 478 | case BTRFS_ERROR_DEV_MISSING_NOT_FOUND: | ||
| 479 | return "no missing devices found to remove"; | ||
| 480 | case BTRFS_ERROR_DEV_ONLY_WRITABLE: | ||
| 481 | return "unable to remove the only writeable device"; | ||
| 482 | case BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS: | ||
| 483 | return "add/delete/balance/replace/resize operation "\ | ||
| 484 | "in progress"; | ||
| 485 | default: | ||
| 486 | return NULL; | ||
| 487 | } | ||
| 488 | } | ||
| 489 | |||
| 450 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ | 490 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ |
| 451 | struct btrfs_ioctl_vol_args) | 491 | struct btrfs_ioctl_vol_args) |
| 452 | #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ | 492 | #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ |
| @@ -530,6 +570,7 @@ struct btrfs_ioctl_send_args { | |||
| 530 | struct btrfs_ioctl_quota_rescan_args) | 570 | struct btrfs_ioctl_quota_rescan_args) |
| 531 | #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ | 571 | #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ |
| 532 | struct btrfs_ioctl_quota_rescan_args) | 572 | struct btrfs_ioctl_quota_rescan_args) |
| 573 | #define BTRFS_IOC_QUOTA_RESCAN_WAIT _IO(BTRFS_IOCTL_MAGIC, 46) | ||
| 533 | #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ | 574 | #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ |
| 534 | char[BTRFS_LABEL_SIZE]) | 575 | char[BTRFS_LABEL_SIZE]) |
| 535 | #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ | 576 | #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ |
| @@ -538,5 +579,4 @@ struct btrfs_ioctl_send_args { | |||
| 538 | struct btrfs_ioctl_get_dev_stats) | 579 | struct btrfs_ioctl_get_dev_stats) |
| 539 | #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ | 580 | #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ |
| 540 | struct btrfs_ioctl_dev_replace_args) | 581 | struct btrfs_ioctl_dev_replace_args) |
| 541 | |||
| 542 | #endif /* _UAPI_LINUX_BTRFS_H */ | 582 | #endif /* _UAPI_LINUX_BTRFS_H */ |
diff --git a/include/uapi/linux/dm-ioctl.h b/include/uapi/linux/dm-ioctl.h index 7e75b6fd8d45..afd0cbd52edb 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 24 | 270 | #define DM_VERSION_MINOR 25 |
| 271 | #define DM_VERSION_PATCHLEVEL 0 | 271 | #define DM_VERSION_PATCHLEVEL 0 |
| 272 | #define DM_VERSION_EXTRA "-ioctl (2013-01-15)" | 272 | #define DM_VERSION_EXTRA "-ioctl (2013-06-26)" |
| 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/ethtool.h b/include/uapi/linux/ethtool.h index 0c9b44871df0..38dbafaa5341 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
| @@ -993,8 +993,8 @@ enum ethtool_sfeatures_retval_bits { | |||
| 993 | #define PORT_OTHER 0xff | 993 | #define PORT_OTHER 0xff |
| 994 | 994 | ||
| 995 | /* Which transceiver to use. */ | 995 | /* Which transceiver to use. */ |
| 996 | #define XCVR_INTERNAL 0x00 | 996 | #define XCVR_INTERNAL 0x00 /* PHY and MAC are in the same package */ |
| 997 | #define XCVR_EXTERNAL 0x01 | 997 | #define XCVR_EXTERNAL 0x01 /* PHY and MAC are in different packages */ |
| 998 | #define XCVR_DUMMY1 0x02 | 998 | #define XCVR_DUMMY1 0x02 |
| 999 | #define XCVR_DUMMY2 0x03 | 999 | #define XCVR_DUMMY2 0x03 |
| 1000 | #define XCVR_DUMMY3 0x04 | 1000 | #define XCVR_DUMMY3 0x04 |
diff --git a/include/uapi/linux/firewire-cdev.h b/include/uapi/linux/firewire-cdev.h index d50036953497..1db453e4b550 100644 --- a/include/uapi/linux/firewire-cdev.h +++ b/include/uapi/linux/firewire-cdev.h | |||
| @@ -215,8 +215,8 @@ struct fw_cdev_event_request2 { | |||
| 215 | * with the %FW_CDEV_ISO_INTERRUPT bit set, when explicitly requested with | 215 | * with the %FW_CDEV_ISO_INTERRUPT bit set, when explicitly requested with |
| 216 | * %FW_CDEV_IOC_FLUSH_ISO, or when there have been so many completed packets | 216 | * %FW_CDEV_IOC_FLUSH_ISO, or when there have been so many completed packets |
| 217 | * without the interrupt bit set that the kernel's internal buffer for @header | 217 | * without the interrupt bit set that the kernel's internal buffer for @header |
| 218 | * is about to overflow. (In the last case, kernels with ABI version < 5 drop | 218 | * is about to overflow. (In the last case, ABI versions < 5 drop header data |
| 219 | * header data up to the next interrupt packet.) | 219 | * up to the next interrupt packet.) |
| 220 | * | 220 | * |
| 221 | * Isochronous transmit events (context type %FW_CDEV_ISO_CONTEXT_TRANSMIT): | 221 | * Isochronous transmit events (context type %FW_CDEV_ISO_CONTEXT_TRANSMIT): |
| 222 | * | 222 | * |
diff --git a/include/uapi/linux/gen_stats.h b/include/uapi/linux/gen_stats.h index 552c8a0a12d1..6487317ea619 100644 --- a/include/uapi/linux/gen_stats.h +++ b/include/uapi/linux/gen_stats.h | |||
| @@ -9,6 +9,7 @@ enum { | |||
| 9 | TCA_STATS_RATE_EST, | 9 | TCA_STATS_RATE_EST, |
| 10 | TCA_STATS_QUEUE, | 10 | TCA_STATS_QUEUE, |
| 11 | TCA_STATS_APP, | 11 | TCA_STATS_APP, |
| 12 | TCA_STATS_RATE_EST64, | ||
| 12 | __TCA_STATS_MAX, | 13 | __TCA_STATS_MAX, |
| 13 | }; | 14 | }; |
| 14 | #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) | 15 | #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) |
| @@ -38,6 +39,16 @@ struct gnet_stats_rate_est { | |||
| 38 | }; | 39 | }; |
| 39 | 40 | ||
| 40 | /** | 41 | /** |
| 42 | * struct gnet_stats_rate_est64 - rate estimator | ||
| 43 | * @bps: current byte rate | ||
| 44 | * @pps: current packet rate | ||
| 45 | */ | ||
| 46 | struct gnet_stats_rate_est64 { | ||
| 47 | __u64 bps; | ||
| 48 | __u64 pps; | ||
| 49 | }; | ||
| 50 | |||
| 51 | /** | ||
| 41 | * struct gnet_stats_queue - queuing statistics | 52 | * struct gnet_stats_queue - queuing statistics |
| 42 | * @qlen: queue length | 53 | * @qlen: queue length |
| 43 | * @backlog: backlog size of queue | 54 | * @backlog: backlog size of queue |
diff --git a/include/uapi/linux/if_arp.h b/include/uapi/linux/if_arp.h index 82c7d1bdadeb..d7fea3496f32 100644 --- a/include/uapi/linux/if_arp.h +++ b/include/uapi/linux/if_arp.h | |||
| @@ -93,6 +93,7 @@ | |||
| 93 | #define ARPHRD_PHONET_PIPE 821 /* PhoNet pipe header */ | 93 | #define ARPHRD_PHONET_PIPE 821 /* PhoNet pipe header */ |
| 94 | #define ARPHRD_CAIF 822 /* CAIF media type */ | 94 | #define ARPHRD_CAIF 822 /* CAIF media type */ |
| 95 | #define ARPHRD_IP6GRE 823 /* GRE over IPv6 */ | 95 | #define ARPHRD_IP6GRE 823 /* GRE over IPv6 */ |
| 96 | #define ARPHRD_NETLINK 824 /* Netlink header */ | ||
| 96 | 97 | ||
| 97 | #define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */ | 98 | #define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */ |
| 98 | #define ARPHRD_NONE 0xFFFE /* zero header length */ | 99 | #define ARPHRD_NONE 0xFFFE /* zero header length */ |
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index b05823cae784..03f6170ab337 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
| @@ -221,6 +221,8 @@ enum { | |||
| 221 | IFLA_BRPORT_GUARD, /* bpdu guard */ | 221 | IFLA_BRPORT_GUARD, /* bpdu guard */ |
| 222 | IFLA_BRPORT_PROTECT, /* root port protection */ | 222 | IFLA_BRPORT_PROTECT, /* root port protection */ |
| 223 | IFLA_BRPORT_FAST_LEAVE, /* multicast fast leave */ | 223 | IFLA_BRPORT_FAST_LEAVE, /* multicast fast leave */ |
| 224 | IFLA_BRPORT_LEARNING, /* mac learning */ | ||
| 225 | IFLA_BRPORT_UNICAST_FLOOD, /* flood unicast traffic */ | ||
| 224 | __IFLA_BRPORT_MAX | 226 | __IFLA_BRPORT_MAX |
| 225 | }; | 227 | }; |
| 226 | #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) | 228 | #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) |
| @@ -336,6 +338,7 @@ enum { | |||
| 336 | IFLA_VF_VLAN, | 338 | IFLA_VF_VLAN, |
| 337 | IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ | 339 | IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ |
| 338 | IFLA_VF_SPOOFCHK, /* Spoof Checking on/off switch */ | 340 | IFLA_VF_SPOOFCHK, /* Spoof Checking on/off switch */ |
| 341 | IFLA_VF_LINK_STATE, /* link state enable/disable/auto switch */ | ||
| 339 | __IFLA_VF_MAX, | 342 | __IFLA_VF_MAX, |
| 340 | }; | 343 | }; |
| 341 | 344 | ||
| @@ -362,6 +365,18 @@ struct ifla_vf_spoofchk { | |||
| 362 | __u32 setting; | 365 | __u32 setting; |
| 363 | }; | 366 | }; |
| 364 | 367 | ||
| 368 | enum { | ||
| 369 | IFLA_VF_LINK_STATE_AUTO, /* link state of the uplink */ | ||
| 370 | IFLA_VF_LINK_STATE_ENABLE, /* link always up */ | ||
| 371 | IFLA_VF_LINK_STATE_DISABLE, /* link always down */ | ||
| 372 | __IFLA_VF_LINK_STATE_MAX, | ||
| 373 | }; | ||
| 374 | |||
| 375 | struct ifla_vf_link_state { | ||
| 376 | __u32 vf; | ||
| 377 | __u32 link_state; | ||
| 378 | }; | ||
| 379 | |||
| 365 | /* VF ports management section | 380 | /* VF ports management section |
| 366 | * | 381 | * |
| 367 | * Nested layout of set/get msg is: | 382 | * Nested layout of set/get msg is: |
diff --git a/include/uapi/linux/if_pppox.h b/include/uapi/linux/if_pppox.h index 0b46fd57c8f6..e36a4aecd311 100644 --- a/include/uapi/linux/if_pppox.h +++ b/include/uapi/linux/if_pppox.h | |||
| @@ -135,11 +135,11 @@ struct pppoe_tag { | |||
| 135 | 135 | ||
| 136 | struct pppoe_hdr { | 136 | struct pppoe_hdr { |
| 137 | #if defined(__LITTLE_ENDIAN_BITFIELD) | 137 | #if defined(__LITTLE_ENDIAN_BITFIELD) |
| 138 | __u8 ver : 4; | ||
| 139 | __u8 type : 4; | 138 | __u8 type : 4; |
| 139 | __u8 ver : 4; | ||
| 140 | #elif defined(__BIG_ENDIAN_BITFIELD) | 140 | #elif defined(__BIG_ENDIAN_BITFIELD) |
| 141 | __u8 type : 4; | ||
| 142 | __u8 ver : 4; | 141 | __u8 ver : 4; |
| 142 | __u8 type : 4; | ||
| 143 | #else | 143 | #else |
| 144 | #error "Please fix <asm/byteorder.h>" | 144 | #error "Please fix <asm/byteorder.h>" |
| 145 | #endif | 145 | #endif |
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 2835b85fd46d..82334f88967e 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h | |||
| @@ -68,6 +68,8 @@ | |||
| 68 | #define IFF_MULTI_QUEUE 0x0100 | 68 | #define IFF_MULTI_QUEUE 0x0100 |
| 69 | #define IFF_ATTACH_QUEUE 0x0200 | 69 | #define IFF_ATTACH_QUEUE 0x0200 |
| 70 | #define IFF_DETACH_QUEUE 0x0400 | 70 | #define IFF_DETACH_QUEUE 0x0400 |
| 71 | /* read-only flag */ | ||
| 72 | #define IFF_PERSIST 0x0800 | ||
| 71 | 73 | ||
| 72 | /* Features for GSO (TUNSETOFFLOAD). */ | 74 | /* Features for GSO (TUNSETOFFLOAD). */ |
| 73 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ | 75 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ |
diff --git a/include/uapi/linux/ip_vs.h b/include/uapi/linux/ip_vs.h index a24537725e80..29458223d044 100644 --- a/include/uapi/linux/ip_vs.h +++ b/include/uapi/linux/ip_vs.h | |||
| @@ -20,6 +20,12 @@ | |||
| 20 | #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ | 20 | #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ |
| 21 | #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ | 21 | #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ |
| 22 | #define IP_VS_SVC_F_ONEPACKET 0x0004 /* one-packet scheduling */ | 22 | #define IP_VS_SVC_F_ONEPACKET 0x0004 /* one-packet scheduling */ |
| 23 | #define IP_VS_SVC_F_SCHED1 0x0008 /* scheduler flag 1 */ | ||
| 24 | #define IP_VS_SVC_F_SCHED2 0x0010 /* scheduler flag 2 */ | ||
| 25 | #define IP_VS_SVC_F_SCHED3 0x0020 /* scheduler flag 3 */ | ||
| 26 | |||
| 27 | #define IP_VS_SVC_F_SCHED_SH_FALLBACK IP_VS_SVC_F_SCHED1 /* SH fallback */ | ||
| 28 | #define IP_VS_SVC_F_SCHED_SH_PORT IP_VS_SVC_F_SCHED2 /* SH use port */ | ||
| 23 | 29 | ||
| 24 | /* | 30 | /* |
| 25 | * Destination Server Flags | 31 | * Destination Server Flags |
diff --git a/include/uapi/linux/msdos_fs.h b/include/uapi/linux/msdos_fs.h index f055e58b3147..e284ff919d6e 100644 --- a/include/uapi/linux/msdos_fs.h +++ b/include/uapi/linux/msdos_fs.h | |||
| @@ -104,6 +104,8 @@ struct __fat_dirent { | |||
| 104 | /* <linux/videotext.h> has used 0x72 ('r') in collision, so skip a few */ | 104 | /* <linux/videotext.h> has used 0x72 ('r') in collision, so skip a few */ |
| 105 | #define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32) | 105 | #define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32) |
| 106 | #define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32) | 106 | #define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32) |
| 107 | /*Android kernel has used 0x12, so we use 0x13*/ | ||
| 108 | #define FAT_IOCTL_GET_VOLUME_ID _IOR('r', 0x13, __u32) | ||
| 107 | 109 | ||
| 108 | struct fat_boot_sector { | 110 | struct fat_boot_sector { |
| 109 | __u8 ignored[3]; /* Boot strap short or near jump */ | 111 | __u8 ignored[3]; /* Boot strap short or near jump */ |
| @@ -128,6 +130,10 @@ struct fat_boot_sector { | |||
| 128 | __u8 drive_number; /* Physical drive number */ | 130 | __u8 drive_number; /* Physical drive number */ |
| 129 | __u8 state; /* undocumented, but used | 131 | __u8 state; /* undocumented, but used |
| 130 | for mount state. */ | 132 | for mount state. */ |
| 133 | __u8 signature; /* extended boot signature */ | ||
| 134 | __u8 vol_id[4]; /* volume ID */ | ||
| 135 | __u8 vol_label[11]; /* volume label */ | ||
| 136 | __u8 fs_type[8]; /* file system type */ | ||
| 131 | /* other fiealds are not added here */ | 137 | /* other fiealds are not added here */ |
| 132 | } fat16; | 138 | } fat16; |
| 133 | 139 | ||
| @@ -147,6 +153,10 @@ struct fat_boot_sector { | |||
| 147 | __u8 drive_number; /* Physical drive number */ | 153 | __u8 drive_number; /* Physical drive number */ |
| 148 | __u8 state; /* undocumented, but used | 154 | __u8 state; /* undocumented, but used |
| 149 | for mount state. */ | 155 | for mount state. */ |
| 156 | __u8 signature; /* extended boot signature */ | ||
| 157 | __u8 vol_id[4]; /* volume ID */ | ||
| 158 | __u8 vol_label[11]; /* volume label */ | ||
| 159 | __u8 fs_type[8]; /* file system type */ | ||
| 150 | /* other fiealds are not added here */ | 160 | /* other fiealds are not added here */ |
| 151 | } fat32; | 161 | } fat32; |
| 152 | }; | 162 | }; |
diff --git a/include/uapi/linux/netfilter/nfnetlink_queue.h b/include/uapi/linux/netfilter/nfnetlink_queue.h index a2308ae5a73d..3a9b92147339 100644 --- a/include/uapi/linux/netfilter/nfnetlink_queue.h +++ b/include/uapi/linux/netfilter/nfnetlink_queue.h | |||
| @@ -105,5 +105,7 @@ enum nfqnl_attr_config { | |||
| 105 | #define NFQA_SKB_CSUMNOTREADY (1 << 0) | 105 | #define NFQA_SKB_CSUMNOTREADY (1 << 0) |
| 106 | /* packet is GSO (i.e., exceeds device mtu) */ | 106 | /* packet is GSO (i.e., exceeds device mtu) */ |
| 107 | #define NFQA_SKB_GSO (1 << 1) | 107 | #define NFQA_SKB_GSO (1 << 1) |
| 108 | /* csum not validated (incoming device doesn't support hw checksum, etc.) */ | ||
| 109 | #define NFQA_SKB_CSUM_NOTVERIFIED (1 << 2) | ||
| 108 | 110 | ||
| 109 | #endif /* _NFNETLINK_QUEUE_H */ | 111 | #endif /* _NFNETLINK_QUEUE_H */ |
diff --git a/include/uapi/linux/netfilter/xt_socket.h b/include/uapi/linux/netfilter/xt_socket.h index 26d7217bd4f1..6315e2ac3474 100644 --- a/include/uapi/linux/netfilter/xt_socket.h +++ b/include/uapi/linux/netfilter/xt_socket.h | |||
| @@ -5,10 +5,17 @@ | |||
| 5 | 5 | ||
| 6 | enum { | 6 | enum { |
| 7 | XT_SOCKET_TRANSPARENT = 1 << 0, | 7 | XT_SOCKET_TRANSPARENT = 1 << 0, |
| 8 | XT_SOCKET_NOWILDCARD = 1 << 1, | ||
| 8 | }; | 9 | }; |
| 9 | 10 | ||
| 10 | struct xt_socket_mtinfo1 { | 11 | struct xt_socket_mtinfo1 { |
| 11 | __u8 flags; | 12 | __u8 flags; |
| 12 | }; | 13 | }; |
| 14 | #define XT_SOCKET_FLAGS_V1 XT_SOCKET_TRANSPARENT | ||
| 15 | |||
| 16 | struct xt_socket_mtinfo2 { | ||
| 17 | __u8 flags; | ||
| 18 | }; | ||
| 19 | #define XT_SOCKET_FLAGS_V2 (XT_SOCKET_TRANSPARENT | XT_SOCKET_NOWILDCARD) | ||
| 13 | 20 | ||
| 14 | #endif /* _XT_SOCKET_H */ | 21 | #endif /* _XT_SOCKET_H */ |
diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index 7c6f627a717d..8137dd8d2adf 100644 --- a/include/uapi/linux/nfc.h +++ b/include/uapi/linux/nfc.h | |||
| @@ -69,6 +69,8 @@ | |||
| 69 | * starting a poll from a device which has a secure element enabled means | 69 | * starting a poll from a device which has a secure element enabled means |
| 70 | * we want to do SE based card emulation. | 70 | * we want to do SE based card emulation. |
| 71 | * @NFC_CMD_DISABLE_SE: Disable the physical link to a specific secure element. | 71 | * @NFC_CMD_DISABLE_SE: Disable the physical link to a specific secure element. |
| 72 | * @NFC_CMD_FW_DOWNLOAD: Request to Load/flash firmware, or event to inform | ||
| 73 | * that some firmware was loaded | ||
| 72 | */ | 74 | */ |
| 73 | enum nfc_commands { | 75 | enum nfc_commands { |
| 74 | NFC_CMD_UNSPEC, | 76 | NFC_CMD_UNSPEC, |
| @@ -92,6 +94,9 @@ enum nfc_commands { | |||
| 92 | NFC_CMD_DISABLE_SE, | 94 | NFC_CMD_DISABLE_SE, |
| 93 | NFC_CMD_LLC_SDREQ, | 95 | NFC_CMD_LLC_SDREQ, |
| 94 | NFC_EVENT_LLC_SDRES, | 96 | NFC_EVENT_LLC_SDRES, |
| 97 | NFC_CMD_FW_DOWNLOAD, | ||
| 98 | NFC_EVENT_SE_ADDED, | ||
| 99 | NFC_EVENT_SE_REMOVED, | ||
| 95 | /* private: internal use only */ | 100 | /* private: internal use only */ |
| 96 | __NFC_CMD_AFTER_LAST | 101 | __NFC_CMD_AFTER_LAST |
| 97 | }; | 102 | }; |
| @@ -121,6 +126,9 @@ enum nfc_commands { | |||
| 121 | * @NFC_ATTR_LLC_PARAM_RW: Receive Window size parameter | 126 | * @NFC_ATTR_LLC_PARAM_RW: Receive Window size parameter |
| 122 | * @NFC_ATTR_LLC_PARAM_MIUX: MIU eXtension parameter | 127 | * @NFC_ATTR_LLC_PARAM_MIUX: MIU eXtension parameter |
| 123 | * @NFC_ATTR_SE: Available Secure Elements | 128 | * @NFC_ATTR_SE: Available Secure Elements |
| 129 | * @NFC_ATTR_FIRMWARE_NAME: Free format firmware version | ||
| 130 | * @NFC_ATTR_SE_INDEX: Secure element index | ||
| 131 | * @NFC_ATTR_SE_TYPE: Secure element type (UICC or EMBEDDED) | ||
| 124 | */ | 132 | */ |
| 125 | enum nfc_attrs { | 133 | enum nfc_attrs { |
| 126 | NFC_ATTR_UNSPEC, | 134 | NFC_ATTR_UNSPEC, |
| @@ -143,6 +151,9 @@ enum nfc_attrs { | |||
| 143 | NFC_ATTR_LLC_PARAM_MIUX, | 151 | NFC_ATTR_LLC_PARAM_MIUX, |
| 144 | NFC_ATTR_SE, | 152 | NFC_ATTR_SE, |
| 145 | NFC_ATTR_LLC_SDP, | 153 | NFC_ATTR_LLC_SDP, |
| 154 | NFC_ATTR_FIRMWARE_NAME, | ||
| 155 | NFC_ATTR_SE_INDEX, | ||
| 156 | NFC_ATTR_SE_TYPE, | ||
| 146 | /* private: internal use only */ | 157 | /* private: internal use only */ |
| 147 | __NFC_ATTR_AFTER_LAST | 158 | __NFC_ATTR_AFTER_LAST |
| 148 | }; | 159 | }; |
| @@ -159,9 +170,12 @@ enum nfc_sdp_attr { | |||
| 159 | 170 | ||
| 160 | #define NFC_DEVICE_NAME_MAXSIZE 8 | 171 | #define NFC_DEVICE_NAME_MAXSIZE 8 |
| 161 | #define NFC_NFCID1_MAXSIZE 10 | 172 | #define NFC_NFCID1_MAXSIZE 10 |
| 173 | #define NFC_NFCID2_MAXSIZE 8 | ||
| 174 | #define NFC_NFCID3_MAXSIZE 10 | ||
| 162 | #define NFC_SENSB_RES_MAXSIZE 12 | 175 | #define NFC_SENSB_RES_MAXSIZE 12 |
| 163 | #define NFC_SENSF_RES_MAXSIZE 18 | 176 | #define NFC_SENSF_RES_MAXSIZE 18 |
| 164 | #define NFC_GB_MAXSIZE 48 | 177 | #define NFC_GB_MAXSIZE 48 |
| 178 | #define NFC_FIRMWARE_NAME_MAXSIZE 32 | ||
| 165 | 179 | ||
| 166 | /* NFC protocols */ | 180 | /* NFC protocols */ |
| 167 | #define NFC_PROTO_JEWEL 1 | 181 | #define NFC_PROTO_JEWEL 1 |
| @@ -191,10 +205,12 @@ enum nfc_sdp_attr { | |||
| 191 | #define NFC_PROTO_ISO14443_B_MASK (1 << NFC_PROTO_ISO14443_B) | 205 | #define NFC_PROTO_ISO14443_B_MASK (1 << NFC_PROTO_ISO14443_B) |
| 192 | 206 | ||
| 193 | /* NFC Secure Elements */ | 207 | /* NFC Secure Elements */ |
| 194 | #define NFC_SE_NONE 0x0 | ||
| 195 | #define NFC_SE_UICC 0x1 | 208 | #define NFC_SE_UICC 0x1 |
| 196 | #define NFC_SE_EMBEDDED 0x2 | 209 | #define NFC_SE_EMBEDDED 0x2 |
| 197 | 210 | ||
| 211 | #define NFC_SE_DISABLED 0x0 | ||
| 212 | #define NFC_SE_ENABLED 0x1 | ||
| 213 | |||
| 198 | struct sockaddr_nfc { | 214 | struct sockaddr_nfc { |
| 199 | sa_family_t sa_family; | 215 | sa_family_t sa_family; |
| 200 | __u32 dev_idx; | 216 | __u32 dev_idx; |
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index d1e48b5e348f..861e5eba3953 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
| 29 | 29 | ||
| 30 | #define NL80211_GENL_NAME "nl80211" | ||
| 31 | |||
| 30 | /** | 32 | /** |
| 31 | * DOC: Station handling | 33 | * DOC: Station handling |
| 32 | * | 34 | * |
| @@ -1429,6 +1431,11 @@ enum nl80211_commands { | |||
| 1429 | * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which | 1431 | * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which |
| 1430 | * the connection should have increased reliability (u16). | 1432 | * the connection should have increased reliability (u16). |
| 1431 | * | 1433 | * |
| 1434 | * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16). | ||
| 1435 | * This is similar to @NL80211_ATTR_STA_AID but with a difference of being | ||
| 1436 | * allowed to be used with the first @NL80211_CMD_SET_STATION command to | ||
| 1437 | * update a TDLS peer STA entry. | ||
| 1438 | * | ||
| 1432 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1439 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 1433 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1440 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 1434 | */ | 1441 | */ |
| @@ -1727,6 +1734,8 @@ enum nl80211_attrs { | |||
| 1727 | NL80211_ATTR_CRIT_PROT_ID, | 1734 | NL80211_ATTR_CRIT_PROT_ID, |
| 1728 | NL80211_ATTR_MAX_CRIT_PROT_DURATION, | 1735 | NL80211_ATTR_MAX_CRIT_PROT_DURATION, |
| 1729 | 1736 | ||
| 1737 | NL80211_ATTR_PEER_AID, | ||
| 1738 | |||
| 1730 | /* add attributes here, update the policy in nl80211.c */ | 1739 | /* add attributes here, update the policy in nl80211.c */ |
| 1731 | 1740 | ||
| 1732 | __NL80211_ATTR_AFTER_LAST, | 1741 | __NL80211_ATTR_AFTER_LAST, |
| @@ -1991,6 +2000,10 @@ enum nl80211_sta_bss_param { | |||
| 1991 | * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode | 2000 | * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode |
| 1992 | * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards | 2001 | * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards |
| 1993 | * non-peer STA | 2002 | * non-peer STA |
| 2003 | * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU | ||
| 2004 | * Contains a nested array of signal strength attributes (u8, dBm) | ||
| 2005 | * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average | ||
| 2006 | * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. | ||
| 1994 | * @__NL80211_STA_INFO_AFTER_LAST: internal | 2007 | * @__NL80211_STA_INFO_AFTER_LAST: internal |
| 1995 | * @NL80211_STA_INFO_MAX: highest possible station info attribute | 2008 | * @NL80211_STA_INFO_MAX: highest possible station info attribute |
| 1996 | */ | 2009 | */ |
| @@ -2020,6 +2033,8 @@ enum nl80211_sta_info { | |||
| 2020 | NL80211_STA_INFO_NONPEER_PM, | 2033 | NL80211_STA_INFO_NONPEER_PM, |
| 2021 | NL80211_STA_INFO_RX_BYTES64, | 2034 | NL80211_STA_INFO_RX_BYTES64, |
| 2022 | NL80211_STA_INFO_TX_BYTES64, | 2035 | NL80211_STA_INFO_TX_BYTES64, |
| 2036 | NL80211_STA_INFO_CHAIN_SIGNAL, | ||
| 2037 | NL80211_STA_INFO_CHAIN_SIGNAL_AVG, | ||
| 2023 | 2038 | ||
| 2024 | /* keep last */ | 2039 | /* keep last */ |
| 2025 | __NL80211_STA_INFO_AFTER_LAST, | 2040 | __NL80211_STA_INFO_AFTER_LAST, |
| @@ -2413,6 +2428,8 @@ enum nl80211_survey_info { | |||
| 2413 | * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering | 2428 | * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering |
| 2414 | * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. | 2429 | * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. |
| 2415 | * overrides all other flags. | 2430 | * overrides all other flags. |
| 2431 | * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address | ||
| 2432 | * and ACK incoming unicast packets. | ||
| 2416 | * | 2433 | * |
| 2417 | * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use | 2434 | * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use |
| 2418 | * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag | 2435 | * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag |
| @@ -2424,6 +2441,7 @@ enum nl80211_mntr_flags { | |||
| 2424 | NL80211_MNTR_FLAG_CONTROL, | 2441 | NL80211_MNTR_FLAG_CONTROL, |
| 2425 | NL80211_MNTR_FLAG_OTHER_BSS, | 2442 | NL80211_MNTR_FLAG_OTHER_BSS, |
| 2426 | NL80211_MNTR_FLAG_COOK_FRAMES, | 2443 | NL80211_MNTR_FLAG_COOK_FRAMES, |
| 2444 | NL80211_MNTR_FLAG_ACTIVE, | ||
| 2427 | 2445 | ||
| 2428 | /* keep last */ | 2446 | /* keep last */ |
| 2429 | __NL80211_MNTR_FLAG_AFTER_LAST, | 2447 | __NL80211_MNTR_FLAG_AFTER_LAST, |
| @@ -2559,6 +2577,10 @@ enum nl80211_mesh_power_mode { | |||
| 2559 | * | 2577 | * |
| 2560 | * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs) | 2578 | * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs) |
| 2561 | * | 2579 | * |
| 2580 | * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've | ||
| 2581 | * established peering with for longer than this time (in seconds), then | ||
| 2582 | * remove it from the STA's list of peers. Default is 30 minutes. | ||
| 2583 | * | ||
| 2562 | * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use | 2584 | * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use |
| 2563 | */ | 2585 | */ |
| 2564 | enum nl80211_meshconf_params { | 2586 | enum nl80211_meshconf_params { |
| @@ -2590,6 +2612,7 @@ enum nl80211_meshconf_params { | |||
| 2590 | NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, | 2612 | NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, |
| 2591 | NL80211_MESHCONF_POWER_MODE, | 2613 | NL80211_MESHCONF_POWER_MODE, |
| 2592 | NL80211_MESHCONF_AWAKE_WINDOW, | 2614 | NL80211_MESHCONF_AWAKE_WINDOW, |
| 2615 | NL80211_MESHCONF_PLINK_TIMEOUT, | ||
| 2593 | 2616 | ||
| 2594 | /* keep last */ | 2617 | /* keep last */ |
| 2595 | __NL80211_MESHCONF_ATTR_AFTER_LAST, | 2618 | __NL80211_MESHCONF_ATTR_AFTER_LAST, |
| @@ -2637,6 +2660,10 @@ enum nl80211_meshconf_params { | |||
| 2637 | * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will | 2660 | * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will |
| 2638 | * implement an MPM which handles peer allocation and state. | 2661 | * implement an MPM which handles peer allocation and state. |
| 2639 | * | 2662 | * |
| 2663 | * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication | ||
| 2664 | * method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE). | ||
| 2665 | * Default is no authentication method required. | ||
| 2666 | * | ||
| 2640 | * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number | 2667 | * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number |
| 2641 | * | 2668 | * |
| 2642 | * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use | 2669 | * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use |
| @@ -2650,6 +2677,7 @@ enum nl80211_mesh_setup_params { | |||
| 2650 | NL80211_MESH_SETUP_USERSPACE_AMPE, | 2677 | NL80211_MESH_SETUP_USERSPACE_AMPE, |
| 2651 | NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, | 2678 | NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, |
| 2652 | NL80211_MESH_SETUP_USERSPACE_MPM, | 2679 | NL80211_MESH_SETUP_USERSPACE_MPM, |
| 2680 | NL80211_MESH_SETUP_AUTH_PROTOCOL, | ||
| 2653 | 2681 | ||
| 2654 | /* keep last */ | 2682 | /* keep last */ |
| 2655 | __NL80211_MESH_SETUP_ATTR_AFTER_LAST, | 2683 | __NL80211_MESH_SETUP_ATTR_AFTER_LAST, |
| @@ -2730,6 +2758,8 @@ enum nl80211_channel_type { | |||
| 2730 | * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well | 2758 | * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well |
| 2731 | * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 | 2759 | * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 |
| 2732 | * attribute must be provided as well | 2760 | * attribute must be provided as well |
| 2761 | * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel | ||
| 2762 | * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel | ||
| 2733 | */ | 2763 | */ |
| 2734 | enum nl80211_chan_width { | 2764 | enum nl80211_chan_width { |
| 2735 | NL80211_CHAN_WIDTH_20_NOHT, | 2765 | NL80211_CHAN_WIDTH_20_NOHT, |
| @@ -2738,6 +2768,8 @@ enum nl80211_chan_width { | |||
| 2738 | NL80211_CHAN_WIDTH_80, | 2768 | NL80211_CHAN_WIDTH_80, |
| 2739 | NL80211_CHAN_WIDTH_80P80, | 2769 | NL80211_CHAN_WIDTH_80P80, |
| 2740 | NL80211_CHAN_WIDTH_160, | 2770 | NL80211_CHAN_WIDTH_160, |
| 2771 | NL80211_CHAN_WIDTH_5, | ||
| 2772 | NL80211_CHAN_WIDTH_10, | ||
| 2741 | }; | 2773 | }; |
| 2742 | 2774 | ||
| 2743 | /** | 2775 | /** |
| @@ -3556,6 +3588,10 @@ enum nl80211_ap_sme_features { | |||
| 3556 | * Peering Management entity which may be implemented by registering for | 3588 | * Peering Management entity which may be implemented by registering for |
| 3557 | * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is | 3589 | * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is |
| 3558 | * still generated by the driver. | 3590 | * still generated by the driver. |
| 3591 | * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor | ||
| 3592 | * interface. An active monitor interface behaves like a normal monitor | ||
| 3593 | * interface, but gets added to the driver. It ensures that incoming | ||
| 3594 | * unicast packets directed at the configured interface address get ACKed. | ||
| 3559 | */ | 3595 | */ |
| 3560 | enum nl80211_feature_flags { | 3596 | enum nl80211_feature_flags { |
| 3561 | NL80211_FEATURE_SK_TX_STATUS = 1 << 0, | 3597 | NL80211_FEATURE_SK_TX_STATUS = 1 << 0, |
| @@ -3575,6 +3611,7 @@ enum nl80211_feature_flags { | |||
| 3575 | NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14, | 3611 | NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14, |
| 3576 | NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15, | 3612 | NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15, |
| 3577 | NL80211_FEATURE_USERSPACE_MPM = 1 << 16, | 3613 | NL80211_FEATURE_USERSPACE_MPM = 1 << 16, |
| 3614 | NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, | ||
| 3578 | }; | 3615 | }; |
| 3579 | 3616 | ||
| 3580 | /** | 3617 | /** |
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index 405918dd7b3f..c55efaaa9bb4 100644 --- a/include/uapi/linux/openvswitch.h +++ b/include/uapi/linux/openvswitch.h | |||
| @@ -164,6 +164,7 @@ enum ovs_vport_type { | |||
| 164 | OVS_VPORT_TYPE_UNSPEC, | 164 | OVS_VPORT_TYPE_UNSPEC, |
| 165 | OVS_VPORT_TYPE_NETDEV, /* network device */ | 165 | OVS_VPORT_TYPE_NETDEV, /* network device */ |
| 166 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ | 166 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ |
| 167 | OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ | ||
| 167 | __OVS_VPORT_TYPE_MAX | 168 | __OVS_VPORT_TYPE_MAX |
| 168 | }; | 169 | }; |
| 169 | 170 | ||
| @@ -192,7 +193,6 @@ enum ovs_vport_type { | |||
| 192 | * optional; if not specified a free port number is automatically selected. | 193 | * optional; if not specified a free port number is automatically selected. |
| 193 | * Whether %OVS_VPORT_ATTR_OPTIONS is required or optional depends on the type | 194 | * Whether %OVS_VPORT_ATTR_OPTIONS is required or optional depends on the type |
| 194 | * of vport. | 195 | * of vport. |
| 195 | * and other attributes are ignored. | ||
| 196 | * | 196 | * |
| 197 | * For other requests, if %OVS_VPORT_ATTR_NAME is specified then it is used to | 197 | * For other requests, if %OVS_VPORT_ATTR_NAME is specified then it is used to |
| 198 | * look up the vport to operate on; otherwise dp_idx from the &struct | 198 | * look up the vport to operate on; otherwise dp_idx from the &struct |
| @@ -247,11 +247,29 @@ enum ovs_key_attr { | |||
| 247 | OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */ | 247 | OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */ |
| 248 | OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ | 248 | OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ |
| 249 | OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */ | 249 | OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */ |
| 250 | OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ | ||
| 251 | |||
| 252 | #ifdef __KERNEL__ | ||
| 253 | OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */ | ||
| 254 | #endif | ||
| 250 | __OVS_KEY_ATTR_MAX | 255 | __OVS_KEY_ATTR_MAX |
| 251 | }; | 256 | }; |
| 252 | 257 | ||
| 253 | #define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1) | 258 | #define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1) |
| 254 | 259 | ||
| 260 | enum ovs_tunnel_key_attr { | ||
| 261 | OVS_TUNNEL_KEY_ATTR_ID, /* be64 Tunnel ID */ | ||
| 262 | OVS_TUNNEL_KEY_ATTR_IPV4_SRC, /* be32 src IP address. */ | ||
| 263 | OVS_TUNNEL_KEY_ATTR_IPV4_DST, /* be32 dst IP address. */ | ||
| 264 | OVS_TUNNEL_KEY_ATTR_TOS, /* u8 Tunnel IP ToS. */ | ||
| 265 | OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */ | ||
| 266 | OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ | ||
| 267 | OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ | ||
| 268 | __OVS_TUNNEL_KEY_ATTR_MAX | ||
| 269 | }; | ||
| 270 | |||
| 271 | #define OVS_TUNNEL_KEY_ATTR_MAX (__OVS_TUNNEL_KEY_ATTR_MAX - 1) | ||
| 272 | |||
| 255 | /** | 273 | /** |
| 256 | * enum ovs_frag_type - IPv4 and IPv6 fragment type | 274 | * enum ovs_frag_type - IPv4 and IPv6 fragment type |
| 257 | * @OVS_FRAG_TYPE_NONE: Packet is not a fragment. | 275 | * @OVS_FRAG_TYPE_NONE: Packet is not a fragment. |
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index 7a2144e1afae..eb0f1a554d7b 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h | |||
| @@ -386,6 +386,8 @@ enum { | |||
| 386 | #define RTAX_RTO_MIN RTAX_RTO_MIN | 386 | #define RTAX_RTO_MIN RTAX_RTO_MIN |
| 387 | RTAX_INITRWND, | 387 | RTAX_INITRWND, |
| 388 | #define RTAX_INITRWND RTAX_INITRWND | 388 | #define RTAX_INITRWND RTAX_INITRWND |
| 389 | RTAX_QUICKACK, | ||
| 390 | #define RTAX_QUICKACK RTAX_QUICKACK | ||
| 389 | __RTAX_MAX | 391 | __RTAX_MAX |
| 390 | }; | 392 | }; |
| 391 | 393 | ||
diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h index df2e8b4f9c03..af0a674cc677 100644 --- a/include/uapi/linux/snmp.h +++ b/include/uapi/linux/snmp.h | |||
| @@ -253,6 +253,7 @@ enum | |||
| 253 | LINUX_MIB_TCPFASTOPENLISTENOVERFLOW, /* TCPFastOpenListenOverflow */ | 253 | LINUX_MIB_TCPFASTOPENLISTENOVERFLOW, /* TCPFastOpenListenOverflow */ |
| 254 | LINUX_MIB_TCPFASTOPENCOOKIEREQD, /* TCPFastOpenCookieReqd */ | 254 | LINUX_MIB_TCPFASTOPENCOOKIEREQD, /* TCPFastOpenCookieReqd */ |
| 255 | LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES, /* TCPSpuriousRtxHostQueues */ | 255 | LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES, /* TCPSpuriousRtxHostQueues */ |
| 256 | LINUX_MIB_LOWLATENCYRXPACKETS, /* LowLatencyRxPackets */ | ||
| 256 | __LINUX_MIB_MAX | 257 | __LINUX_MIB_MAX |
| 257 | }; | 258 | }; |
| 258 | 259 | ||
| @@ -287,6 +288,7 @@ enum | |||
| 287 | LINUX_MIB_XFRMOUTPOLERROR, /* XfrmOutPolError */ | 288 | LINUX_MIB_XFRMOUTPOLERROR, /* XfrmOutPolError */ |
| 288 | LINUX_MIB_XFRMFWDHDRERROR, /* XfrmFwdHdrError*/ | 289 | LINUX_MIB_XFRMFWDHDRERROR, /* XfrmFwdHdrError*/ |
| 289 | LINUX_MIB_XFRMOUTSTATEINVALID, /* XfrmOutStateInvalid */ | 290 | LINUX_MIB_XFRMOUTSTATEINVALID, /* XfrmOutStateInvalid */ |
| 291 | LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError */ | ||
| 290 | __LINUX_MIB_XFRMMAX | 292 | __LINUX_MIB_XFRMMAX |
| 291 | }; | 293 | }; |
| 292 | 294 | ||
diff --git a/include/uapi/linux/tipc.h b/include/uapi/linux/tipc.h index f2d90091cc20..852373d27dbb 100644 --- a/include/uapi/linux/tipc.h +++ b/include/uapi/linux/tipc.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * include/linux/tipc.h: Include file for TIPC socket interface | 2 | * include/uapi/linux/tipc.h: Header for TIPC socket interface |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2003-2006, Ericsson AB | 4 | * Copyright (c) 2003-2006, Ericsson AB |
| 5 | * Copyright (c) 2005, 2010-2011, Wind River Systems | 5 | * Copyright (c) 2005, 2010-2011, Wind River Systems |
diff --git a/include/uapi/linux/tipc_config.h b/include/uapi/linux/tipc_config.h index 0b1e3f218a36..6b0bff09b3a7 100644 --- a/include/uapi/linux/tipc_config.h +++ b/include/uapi/linux/tipc_config.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * include/linux/tipc_config.h: Include file for TIPC configuration interface | 2 | * include/uapi/linux/tipc_config.h: Header for TIPC configuration interface |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2003-2006, Ericsson AB | 4 | * Copyright (c) 2003-2006, Ericsson AB |
| 5 | * Copyright (c) 2005-2007, 2010-2011, Wind River Systems | 5 | * Copyright (c) 2005-2007, 2010-2011, Wind River Systems |
diff --git a/include/uapi/linux/usb/ch11.h b/include/uapi/linux/usb/ch11.h index 7692dc69ccf7..331499d597fa 100644 --- a/include/uapi/linux/usb/ch11.h +++ b/include/uapi/linux/usb/ch11.h | |||
| @@ -11,6 +11,17 @@ | |||
| 11 | 11 | ||
| 12 | #include <linux/types.h> /* __u8 etc */ | 12 | #include <linux/types.h> /* __u8 etc */ |
| 13 | 13 | ||
| 14 | /* This is arbitrary. | ||
| 15 | * From USB 2.0 spec Table 11-13, offset 7, a hub can | ||
| 16 | * have up to 255 ports. The most yet reported is 10. | ||
| 17 | * | ||
| 18 | * Current Wireless USB host hardware (Intel i1480 for example) allows | ||
| 19 | * up to 22 devices to connect. Upcoming hardware might raise that | ||
| 20 | * limit. Because the arrays need to add a bit for hub status data, we | ||
| 21 | * use 31, so plus one evens out to four bytes. | ||
| 22 | */ | ||
| 23 | #define USB_MAXCHILDREN 31 | ||
| 24 | |||
| 14 | /* | 25 | /* |
| 15 | * Hub request types | 26 | * Hub request types |
| 16 | */ | 27 | */ |
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 69bd5bb0d5af..e90a88a8708f 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h | |||
| @@ -53,13 +53,13 @@ | |||
| 53 | #define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */ | 53 | #define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */ |
| 54 | #define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */ | 54 | #define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */ |
| 55 | #define V4L2_CTRL_CLASS_CAMERA 0x009a0000 /* Camera class controls */ | 55 | #define V4L2_CTRL_CLASS_CAMERA 0x009a0000 /* Camera class controls */ |
| 56 | #define V4L2_CTRL_CLASS_FM_TX 0x009b0000 /* FM Modulator control class */ | 56 | #define V4L2_CTRL_CLASS_FM_TX 0x009b0000 /* FM Modulator controls */ |
| 57 | #define V4L2_CTRL_CLASS_FLASH 0x009c0000 /* Camera flash controls */ | 57 | #define V4L2_CTRL_CLASS_FLASH 0x009c0000 /* Camera flash controls */ |
| 58 | #define V4L2_CTRL_CLASS_JPEG 0x009d0000 /* JPEG-compression controls */ | 58 | #define V4L2_CTRL_CLASS_JPEG 0x009d0000 /* JPEG-compression controls */ |
| 59 | #define V4L2_CTRL_CLASS_IMAGE_SOURCE 0x009e0000 /* Image source controls */ | 59 | #define V4L2_CTRL_CLASS_IMAGE_SOURCE 0x009e0000 /* Image source controls */ |
| 60 | #define V4L2_CTRL_CLASS_IMAGE_PROC 0x009f0000 /* Image processing controls */ | 60 | #define V4L2_CTRL_CLASS_IMAGE_PROC 0x009f0000 /* Image processing controls */ |
| 61 | #define V4L2_CTRL_CLASS_DV 0x00a00000 /* Digital Video controls */ | 61 | #define V4L2_CTRL_CLASS_DV 0x00a00000 /* Digital Video controls */ |
| 62 | #define V4L2_CTRL_CLASS_FM_RX 0x00a10000 /* Digital Video controls */ | 62 | #define V4L2_CTRL_CLASS_FM_RX 0x00a10000 /* FM Receiver controls */ |
| 63 | 63 | ||
| 64 | /* User-class control IDs */ | 64 | /* User-class control IDs */ |
| 65 | 65 | ||
diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 87ee4f4cff25..916e444e6f74 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h | |||
| @@ -362,10 +362,14 @@ struct vfio_iommu_type1_dma_map { | |||
| 362 | #define VFIO_IOMMU_MAP_DMA _IO(VFIO_TYPE, VFIO_BASE + 13) | 362 | #define VFIO_IOMMU_MAP_DMA _IO(VFIO_TYPE, VFIO_BASE + 13) |
| 363 | 363 | ||
| 364 | /** | 364 | /** |
| 365 | * VFIO_IOMMU_UNMAP_DMA - _IOW(VFIO_TYPE, VFIO_BASE + 14, struct vfio_dma_unmap) | 365 | * VFIO_IOMMU_UNMAP_DMA - _IOWR(VFIO_TYPE, VFIO_BASE + 14, |
| 366 | * struct vfio_dma_unmap) | ||
| 366 | * | 367 | * |
| 367 | * Unmap IO virtual addresses using the provided struct vfio_dma_unmap. | 368 | * Unmap IO virtual addresses using the provided struct vfio_dma_unmap. |
| 368 | * Caller sets argsz. | 369 | * Caller sets argsz. The actual unmapped size is returned in the size |
| 370 | * field. No guarantee is made to the user that arbitrary unmaps of iova | ||
| 371 | * or size different from those used in the original mapping call will | ||
| 372 | * succeed. | ||
| 369 | */ | 373 | */ |
| 370 | struct vfio_iommu_type1_dma_unmap { | 374 | struct vfio_iommu_type1_dma_unmap { |
| 371 | __u32 argsz; | 375 | __u32 argsz; |
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index f40b41c7e108..95ef4551edc1 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
| @@ -395,7 +395,7 @@ struct v4l2_pix_format { | |||
| 395 | #define V4L2_PIX_FMT_H263 v4l2_fourcc('H', '2', '6', '3') /* H263 */ | 395 | #define V4L2_PIX_FMT_H263 v4l2_fourcc('H', '2', '6', '3') /* H263 */ |
| 396 | #define V4L2_PIX_FMT_MPEG1 v4l2_fourcc('M', 'P', 'G', '1') /* MPEG-1 ES */ | 396 | #define V4L2_PIX_FMT_MPEG1 v4l2_fourcc('M', 'P', 'G', '1') /* MPEG-1 ES */ |
| 397 | #define V4L2_PIX_FMT_MPEG2 v4l2_fourcc('M', 'P', 'G', '2') /* MPEG-2 ES */ | 397 | #define V4L2_PIX_FMT_MPEG2 v4l2_fourcc('M', 'P', 'G', '2') /* MPEG-2 ES */ |
| 398 | #define V4L2_PIX_FMT_MPEG4 v4l2_fourcc('M', 'P', 'G', '4') /* MPEG-4 ES */ | 398 | #define V4L2_PIX_FMT_MPEG4 v4l2_fourcc('M', 'P', 'G', '4') /* MPEG-4 part 2 ES */ |
| 399 | #define V4L2_PIX_FMT_XVID v4l2_fourcc('X', 'V', 'I', 'D') /* Xvid */ | 399 | #define V4L2_PIX_FMT_XVID v4l2_fourcc('X', 'V', 'I', 'D') /* Xvid */ |
| 400 | #define V4L2_PIX_FMT_VC1_ANNEX_G v4l2_fourcc('V', 'C', '1', 'G') /* SMPTE 421M Annex G compliant stream */ | 400 | #define V4L2_PIX_FMT_VC1_ANNEX_G v4l2_fourcc('V', 'C', '1', 'G') /* SMPTE 421M Annex G compliant stream */ |
| 401 | #define V4L2_PIX_FMT_VC1_ANNEX_L v4l2_fourcc('V', 'C', '1', 'L') /* SMPTE 421M Annex L compliant stream */ | 401 | #define V4L2_PIX_FMT_VC1_ANNEX_L v4l2_fourcc('V', 'C', '1', 'L') /* SMPTE 421M Annex L compliant stream */ |
| @@ -555,7 +555,7 @@ struct v4l2_jpegcompression { | |||
| 555 | __u32 jpeg_markers; /* Which markers should go into the JPEG | 555 | __u32 jpeg_markers; /* Which markers should go into the JPEG |
| 556 | * output. Unless you exactly know what | 556 | * output. Unless you exactly know what |
| 557 | * you do, leave them untouched. | 557 | * you do, leave them untouched. |
| 558 | * Inluding less markers will make the | 558 | * Including less markers will make the |
| 559 | * resulting code smaller, but there will | 559 | * resulting code smaller, but there will |
| 560 | * be fewer applications which can read it. | 560 | * be fewer applications which can read it. |
| 561 | * The presence of the APP and COM marker | 561 | * The presence of the APP and COM marker |
| @@ -567,7 +567,7 @@ struct v4l2_jpegcompression { | |||
| 567 | #define V4L2_JPEG_MARKER_DRI (1<<5) /* Define Restart Interval */ | 567 | #define V4L2_JPEG_MARKER_DRI (1<<5) /* Define Restart Interval */ |
| 568 | #define V4L2_JPEG_MARKER_COM (1<<6) /* Comment segment */ | 568 | #define V4L2_JPEG_MARKER_COM (1<<6) /* Comment segment */ |
| 569 | #define V4L2_JPEG_MARKER_APP (1<<7) /* App segment, driver will | 569 | #define V4L2_JPEG_MARKER_APP (1<<7) /* App segment, driver will |
| 570 | * allways use APP0 */ | 570 | * always use APP0 */ |
| 571 | }; | 571 | }; |
| 572 | 572 | ||
| 573 | /* | 573 | /* |
| @@ -900,7 +900,7 @@ typedef __u64 v4l2_std_id; | |||
| 900 | /* | 900 | /* |
| 901 | * "Common" PAL - This macro is there to be compatible with the old | 901 | * "Common" PAL - This macro is there to be compatible with the old |
| 902 | * V4L1 concept of "PAL": /BGDKHI. | 902 | * V4L1 concept of "PAL": /BGDKHI. |
| 903 | * Several PAL standards are mising here: /M, /N and /Nc | 903 | * Several PAL standards are missing here: /M, /N and /Nc |
| 904 | */ | 904 | */ |
| 905 | #define V4L2_STD_PAL (V4L2_STD_PAL_BG |\ | 905 | #define V4L2_STD_PAL (V4L2_STD_PAL_BG |\ |
| 906 | V4L2_STD_PAL_DK |\ | 906 | V4L2_STD_PAL_DK |\ |
| @@ -1787,11 +1787,13 @@ struct v4l2_event_subscription { | |||
| 1787 | /* VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER */ | 1787 | /* VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER */ |
| 1788 | 1788 | ||
| 1789 | #define V4L2_CHIP_MATCH_BRIDGE 0 /* Match against chip ID on the bridge (0 for the bridge) */ | 1789 | #define V4L2_CHIP_MATCH_BRIDGE 0 /* Match against chip ID on the bridge (0 for the bridge) */ |
| 1790 | #define V4L2_CHIP_MATCH_SUBDEV 4 /* Match against subdev index */ | ||
| 1791 | |||
| 1792 | /* The following four defines are no longer in use */ | ||
| 1790 | #define V4L2_CHIP_MATCH_HOST V4L2_CHIP_MATCH_BRIDGE | 1793 | #define V4L2_CHIP_MATCH_HOST V4L2_CHIP_MATCH_BRIDGE |
| 1791 | #define V4L2_CHIP_MATCH_I2C_DRIVER 1 /* Match against I2C driver name */ | 1794 | #define V4L2_CHIP_MATCH_I2C_DRIVER 1 /* Match against I2C driver name */ |
| 1792 | #define V4L2_CHIP_MATCH_I2C_ADDR 2 /* Match against I2C 7-bit address */ | 1795 | #define V4L2_CHIP_MATCH_I2C_ADDR 2 /* Match against I2C 7-bit address */ |
| 1793 | #define V4L2_CHIP_MATCH_AC97 3 /* Match against anciliary AC97 chip */ | 1796 | #define V4L2_CHIP_MATCH_AC97 3 /* Match against ancillary AC97 chip */ |
| 1794 | #define V4L2_CHIP_MATCH_SUBDEV 4 /* Match against subdev index */ | ||
| 1795 | 1797 | ||
| 1796 | struct v4l2_dbg_match { | 1798 | struct v4l2_dbg_match { |
| 1797 | __u32 type; /* Match type */ | 1799 | __u32 type; /* Match type */ |
| @@ -1808,13 +1810,6 @@ struct v4l2_dbg_register { | |||
| 1808 | __u64 val; | 1810 | __u64 val; |
| 1809 | } __attribute__ ((packed)); | 1811 | } __attribute__ ((packed)); |
| 1810 | 1812 | ||
| 1811 | /* VIDIOC_DBG_G_CHIP_IDENT */ | ||
| 1812 | struct v4l2_dbg_chip_ident { | ||
| 1813 | struct v4l2_dbg_match match; | ||
| 1814 | __u32 ident; /* chip identifier as specified in <media/v4l2-chip-ident.h> */ | ||
| 1815 | __u32 revision; /* chip revision, chip specific */ | ||
| 1816 | } __attribute__ ((packed)); | ||
| 1817 | |||
| 1818 | #define V4L2_CHIP_FL_READABLE (1 << 0) | 1813 | #define V4L2_CHIP_FL_READABLE (1 << 0) |
| 1819 | #define V4L2_CHIP_FL_WRITABLE (1 << 1) | 1814 | #define V4L2_CHIP_FL_WRITABLE (1 << 1) |
| 1820 | 1815 | ||
| @@ -1915,12 +1910,6 @@ struct v4l2_create_buffers { | |||
| 1915 | #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register) | 1910 | #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register) |
| 1916 | #define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register) | 1911 | #define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register) |
| 1917 | 1912 | ||
| 1918 | /* Experimental, meant for debugging, testing and internal use. | ||
| 1919 | Never use this ioctl in applications! | ||
| 1920 | Note: this ioctl is deprecated in favor of VIDIOC_DBG_G_CHIP_INFO and | ||
| 1921 | will go away in the future. */ | ||
| 1922 | #define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident) | ||
| 1923 | |||
| 1924 | #define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek) | 1913 | #define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek) |
| 1925 | 1914 | ||
| 1926 | #define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings) | 1915 | #define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings) |
diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index b7cda390fd00..3ce768c6910d 100644 --- a/include/uapi/linux/virtio_config.h +++ b/include/uapi/linux/virtio_config.h | |||
| @@ -51,4 +51,7 @@ | |||
| 51 | * suppressed them? */ | 51 | * suppressed them? */ |
| 52 | #define VIRTIO_F_NOTIFY_ON_EMPTY 24 | 52 | #define VIRTIO_F_NOTIFY_ON_EMPTY 24 |
| 53 | 53 | ||
| 54 | /* Can the device handle any descriptor layout? */ | ||
| 55 | #define VIRTIO_F_ANY_LAYOUT 27 | ||
| 56 | |||
| 54 | #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */ | 57 | #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */ |
