aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-09-05 05:07:04 -0400
committerNeilBrown <neilb@suse.com>2015-09-05 05:08:32 -0400
commite89c6fdf9e0eb1b5a03574d4ca73e83eae8deb91 (patch)
treef9df292ed03a5a3c4ddc658ae3646f02a1ffafce /include/uapi/linux
parentc3cce6cda162eb2b2960a85d9c8992f4f3be85d0 (diff)
parent1081230b748de8f03f37f80c53dfa89feda9b8de (diff)
Merge linux-block/for-4.3/core into md/for-linux
There were a few conflicts that are fairly easy to resolve. Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/gsmmux.h1
-rw-r--r--include/uapi/linux/kvm.h2
-rw-r--r--include/uapi/linux/mei.h19
-rw-r--r--include/uapi/linux/pci_regs.h1
-rw-r--r--include/uapi/linux/perf_event.h35
-rw-r--r--include/uapi/linux/usb/ch9.h12
6 files changed, 68 insertions, 2 deletions
diff --git a/include/uapi/linux/gsmmux.h b/include/uapi/linux/gsmmux.h
index c06742d52856..ab055d8cddef 100644
--- a/include/uapi/linux/gsmmux.h
+++ b/include/uapi/linux/gsmmux.h
@@ -3,6 +3,7 @@
3 3
4#include <linux/if.h> 4#include <linux/if.h>
5#include <linux/ioctl.h> 5#include <linux/ioctl.h>
6#include <linux/types.h>
6 7
7struct gsm_config 8struct gsm_config
8{ 9{
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 716ad4ae4d4b..0d831f94f8a8 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -317,6 +317,7 @@ struct kvm_run {
317 struct { 317 struct {
318#define KVM_SYSTEM_EVENT_SHUTDOWN 1 318#define KVM_SYSTEM_EVENT_SHUTDOWN 1
319#define KVM_SYSTEM_EVENT_RESET 2 319#define KVM_SYSTEM_EVENT_RESET 2
320#define KVM_SYSTEM_EVENT_CRASH 3
320 __u32 type; 321 __u32 type;
321 __u64 flags; 322 __u64 flags;
322 } system_event; 323 } system_event;
@@ -481,6 +482,7 @@ struct kvm_s390_psw {
481 ((ai) << 26)) 482 ((ai) << 26))
482#define KVM_S390_INT_IO_MIN 0x00000000u 483#define KVM_S390_INT_IO_MIN 0x00000000u
483#define KVM_S390_INT_IO_MAX 0xfffdffffu 484#define KVM_S390_INT_IO_MAX 0xfffdffffu
485#define KVM_S390_INT_IO_AI_MASK 0x04000000u
484 486
485 487
486struct kvm_s390_interrupt { 488struct kvm_s390_interrupt {
diff --git a/include/uapi/linux/mei.h b/include/uapi/linux/mei.h
index bc0d8b69c49e..7c3b64f6a215 100644
--- a/include/uapi/linux/mei.h
+++ b/include/uapi/linux/mei.h
@@ -107,4 +107,23 @@ struct mei_connect_client_data {
107 }; 107 };
108}; 108};
109 109
110/**
111 * DOC: set and unset event notification for a connected client
112 *
113 * The IOCTL argument is 1 for enabling event notification and 0 for
114 * disabling the service
115 * Return: -EOPNOTSUPP if the devices doesn't support the feature
116 */
117#define IOCTL_MEI_NOTIFY_SET _IOW('H', 0x02, __u32)
118
119/**
120 * DOC: retrieve notification
121 *
122 * The IOCTL output argument is 1 if an event was is pending and 0 otherwise
123 * the ioctl has to be called in order to acknowledge pending event
124 *
125 * Return: -EOPNOTSUPP if the devices doesn't support the feature
126 */
127#define IOCTL_MEI_NOTIFY_GET _IOR('H', 0x03, __u32)
128
110#endif /* _LINUX_MEI_H */ 129#endif /* _LINUX_MEI_H */
diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h
index efe3443572ba..413417f3707b 100644
--- a/include/uapi/linux/pci_regs.h
+++ b/include/uapi/linux/pci_regs.h
@@ -319,6 +319,7 @@
319#define PCI_MSIX_PBA 8 /* Pending Bit Array offset */ 319#define PCI_MSIX_PBA 8 /* Pending Bit Array offset */
320#define PCI_MSIX_PBA_BIR 0x00000007 /* BAR index */ 320#define PCI_MSIX_PBA_BIR 0x00000007 /* BAR index */
321#define PCI_MSIX_PBA_OFFSET 0xfffffff8 /* Offset into specified BAR */ 321#define PCI_MSIX_PBA_OFFSET 0xfffffff8 /* Offset into specified BAR */
322#define PCI_MSIX_FLAGS_BIRMASK PCI_MSIX_PBA_BIR /* deprecated */
322#define PCI_CAP_MSIX_SIZEOF 12 /* size of MSIX registers */ 323#define PCI_CAP_MSIX_SIZEOF 12 /* size of MSIX registers */
323 324
324/* MSI-X Table entry format */ 325/* MSI-X Table entry format */
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h
index d97f84c080da..2881145cda86 100644
--- a/include/uapi/linux/perf_event.h
+++ b/include/uapi/linux/perf_event.h
@@ -330,7 +330,8 @@ struct perf_event_attr {
330 mmap2 : 1, /* include mmap with inode data */ 330 mmap2 : 1, /* include mmap with inode data */
331 comm_exec : 1, /* flag comm events that are due to an exec */ 331 comm_exec : 1, /* flag comm events that are due to an exec */
332 use_clockid : 1, /* use @clockid for time fields */ 332 use_clockid : 1, /* use @clockid for time fields */
333 __reserved_1 : 38; 333 context_switch : 1, /* context switch data */
334 __reserved_1 : 37;
334 335
335 union { 336 union {
336 __u32 wakeup_events; /* wakeup every n events */ 337 __u32 wakeup_events; /* wakeup every n events */
@@ -572,9 +573,11 @@ struct perf_event_mmap_page {
572/* 573/*
573 * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on 574 * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on
574 * different events so can reuse the same bit position. 575 * different events so can reuse the same bit position.
576 * Ditto PERF_RECORD_MISC_SWITCH_OUT.
575 */ 577 */
576#define PERF_RECORD_MISC_MMAP_DATA (1 << 13) 578#define PERF_RECORD_MISC_MMAP_DATA (1 << 13)
577#define PERF_RECORD_MISC_COMM_EXEC (1 << 13) 579#define PERF_RECORD_MISC_COMM_EXEC (1 << 13)
580#define PERF_RECORD_MISC_SWITCH_OUT (1 << 13)
578/* 581/*
579 * Indicates that the content of PERF_SAMPLE_IP points to 582 * Indicates that the content of PERF_SAMPLE_IP points to
580 * the actual instruction that triggered the event. See also 583 * the actual instruction that triggered the event. See also
@@ -818,6 +821,32 @@ enum perf_event_type {
818 */ 821 */
819 PERF_RECORD_LOST_SAMPLES = 13, 822 PERF_RECORD_LOST_SAMPLES = 13,
820 823
824 /*
825 * Records a context switch in or out (flagged by
826 * PERF_RECORD_MISC_SWITCH_OUT). See also
827 * PERF_RECORD_SWITCH_CPU_WIDE.
828 *
829 * struct {
830 * struct perf_event_header header;
831 * struct sample_id sample_id;
832 * };
833 */
834 PERF_RECORD_SWITCH = 14,
835
836 /*
837 * CPU-wide version of PERF_RECORD_SWITCH with next_prev_pid and
838 * next_prev_tid that are the next (switching out) or previous
839 * (switching in) pid/tid.
840 *
841 * struct {
842 * struct perf_event_header header;
843 * u32 next_prev_pid;
844 * u32 next_prev_tid;
845 * struct sample_id sample_id;
846 * };
847 */
848 PERF_RECORD_SWITCH_CPU_WIDE = 15,
849
821 PERF_RECORD_MAX, /* non-ABI */ 850 PERF_RECORD_MAX, /* non-ABI */
822}; 851};
823 852
@@ -922,6 +951,7 @@ union perf_mem_data_src {
922 * 951 *
923 * in_tx: running in a hardware transaction 952 * in_tx: running in a hardware transaction
924 * abort: aborting a hardware transaction 953 * abort: aborting a hardware transaction
954 * cycles: cycles from last branch (or 0 if not supported)
925 */ 955 */
926struct perf_branch_entry { 956struct perf_branch_entry {
927 __u64 from; 957 __u64 from;
@@ -930,7 +960,8 @@ struct perf_branch_entry {
930 predicted:1,/* target predicted */ 960 predicted:1,/* target predicted */
931 in_tx:1, /* in transaction */ 961 in_tx:1, /* in transaction */
932 abort:1, /* transaction abort */ 962 abort:1, /* transaction abort */
933 reserved:60; 963 cycles:16, /* cycle count to last branch */
964 reserved:44;
934}; 965};
935 966
936#endif /* _UAPI_LINUX_PERF_EVENT_H */ 967#endif /* _UAPI_LINUX_PERF_EVENT_H */
diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
index aa33fd1b2d4f..f7adc6e01f9e 100644
--- a/include/uapi/linux/usb/ch9.h
+++ b/include/uapi/linux/usb/ch9.h
@@ -674,9 +674,21 @@ struct usb_otg_descriptor {
674 __u8 bmAttributes; /* support for HNP, SRP, etc */ 674 __u8 bmAttributes; /* support for HNP, SRP, etc */
675} __attribute__ ((packed)); 675} __attribute__ ((packed));
676 676
677/* USB_DT_OTG (from OTG 2.0 supplement) */
678struct usb_otg20_descriptor {
679 __u8 bLength;
680 __u8 bDescriptorType;
681
682 __u8 bmAttributes; /* support for HNP, SRP and ADP, etc */
683 __le16 bcdOTG; /* OTG and EH supplement release number
684 * in binary-coded decimal(i.e. 2.0 is 0200H)
685 */
686} __attribute__ ((packed));
687
677/* from usb_otg_descriptor.bmAttributes */ 688/* from usb_otg_descriptor.bmAttributes */
678#define USB_OTG_SRP (1 << 0) 689#define USB_OTG_SRP (1 << 0)
679#define USB_OTG_HNP (1 << 1) /* swap host/device roles */ 690#define USB_OTG_HNP (1 << 1) /* swap host/device roles */
691#define USB_OTG_ADP (1 << 2) /* support ADP */
680 692
681/*-------------------------------------------------------------------------*/ 693/*-------------------------------------------------------------------------*/
682 694