diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 17:51:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 17:51:15 -0400 |
| commit | d87823813fe498fdd47894bd28e460a9dee8d771 (patch) | |
| tree | 214eaf3babd0d61f08022fc1edd99a5128616548 /include/uapi | |
| parent | e382608254e06c8109f40044f5e693f2e04f3899 (diff) | |
| parent | 3dc196eae1db548f05e53e5875ff87b8ff79f249 (diff) | |
Merge tag 'char-misc-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH:
"Here's the big char/misc driver pull request for 4.2-rc1.
Lots of mei, extcon, coresight, uio, mic, and other driver updates in
here. Full details in the shortlog. All of these have been in
linux-next for some time with no reported problems"
* tag 'char-misc-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (176 commits)
mei: me: wait for power gating exit confirmation
mei: reset flow control on the last client disconnection
MAINTAINERS: mei: add mei_cl_bus.h to maintained file list
misc: sram: sort and clean up included headers
misc: sram: move reserved block logic out of probe function
misc: sram: add private struct device and virt_base members
misc: sram: report correct SRAM pool size
misc: sram: bump error message level on unclean driver unbinding
misc: sram: fix device node reference leak on error
misc: sram: fix enabled clock leak on error path
misc: mic: Fix reported static checker warning
misc: mic: Fix randconfig build error by including errno.h
uio: pruss: Drop depends on ARCH_DAVINCI_DA850 from config
uio: pruss: Add CONFIG_HAS_IOMEM dependence
uio: pruss: Include <linux/sizes.h>
extcon: Redefine the unique id of supported external connectors without 'enum extcon' type
char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable in function buffer_icap_set_configuration().
Drivers: hv: vmbus: Allocate ring buffer memory in NUMA aware fashion
parport: check exclusive access before register
w1: use correct lock on error in w1_seq_show()
...
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/Kbuild | 1 | ||||
| -rw-r--r-- | include/uapi/linux/hyperv.h | 8 | ||||
| -rw-r--r-- | include/uapi/linux/mic_common.h | 12 | ||||
| -rw-r--r-- | include/uapi/linux/scif_ioctl.h | 130 |
4 files changed, 150 insertions, 1 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index 4460e5820b0e..baa7c80da6af 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild | |||
| @@ -352,6 +352,7 @@ header-y += rtc.h | |||
| 352 | header-y += rtnetlink.h | 352 | header-y += rtnetlink.h |
| 353 | header-y += scc.h | 353 | header-y += scc.h |
| 354 | header-y += sched.h | 354 | header-y += sched.h |
| 355 | header-y += scif_ioctl.h | ||
| 355 | header-y += screen_info.h | 356 | header-y += screen_info.h |
| 356 | header-y += sctp.h | 357 | header-y += sctp.h |
| 357 | header-y += sdla.h | 358 | header-y += sdla.h |
diff --git a/include/uapi/linux/hyperv.h b/include/uapi/linux/hyperv.h index bb1cb73c927a..e4c0a35d6417 100644 --- a/include/uapi/linux/hyperv.h +++ b/include/uapi/linux/hyperv.h | |||
| @@ -45,6 +45,11 @@ | |||
| 45 | 45 | ||
| 46 | #define VSS_OP_REGISTER 128 | 46 | #define VSS_OP_REGISTER 128 |
| 47 | 47 | ||
| 48 | /* | ||
| 49 | Daemon code with full handshake support. | ||
| 50 | */ | ||
| 51 | #define VSS_OP_REGISTER1 129 | ||
| 52 | |||
| 48 | enum hv_vss_op { | 53 | enum hv_vss_op { |
| 49 | VSS_OP_CREATE = 0, | 54 | VSS_OP_CREATE = 0, |
| 50 | VSS_OP_DELETE, | 55 | VSS_OP_DELETE, |
| @@ -100,7 +105,8 @@ struct hv_vss_msg { | |||
| 100 | */ | 105 | */ |
| 101 | 106 | ||
| 102 | #define FCOPY_VERSION_0 0 | 107 | #define FCOPY_VERSION_0 0 |
| 103 | #define FCOPY_CURRENT_VERSION FCOPY_VERSION_0 | 108 | #define FCOPY_VERSION_1 1 |
| 109 | #define FCOPY_CURRENT_VERSION FCOPY_VERSION_1 | ||
| 104 | #define W_MAX_PATH 260 | 110 | #define W_MAX_PATH 260 |
| 105 | 111 | ||
| 106 | enum hv_fcopy_op { | 112 | enum hv_fcopy_op { |
diff --git a/include/uapi/linux/mic_common.h b/include/uapi/linux/mic_common.h index 6eb40244e019..302a2ced373c 100644 --- a/include/uapi/linux/mic_common.h +++ b/include/uapi/linux/mic_common.h | |||
| @@ -80,6 +80,12 @@ struct mic_device_ctrl { | |||
| 80 | * @h2c_config_db: Host to Card Virtio config doorbell set by card | 80 | * @h2c_config_db: Host to Card Virtio config doorbell set by card |
| 81 | * @shutdown_status: Card shutdown status set by card | 81 | * @shutdown_status: Card shutdown status set by card |
| 82 | * @shutdown_card: Set to 1 by the host when a card shutdown is initiated | 82 | * @shutdown_card: Set to 1 by the host when a card shutdown is initiated |
| 83 | * @tot_nodes: Total number of nodes in the SCIF network | ||
| 84 | * @node_id: Unique id of the node | ||
| 85 | * @h2c_scif_db - Host to card SCIF doorbell set by card | ||
| 86 | * @c2h_scif_db - Card to host SCIF doorbell set by host | ||
| 87 | * @scif_host_dma_addr - SCIF host queue pair DMA address | ||
| 88 | * @scif_card_dma_addr - SCIF card queue pair DMA address | ||
| 83 | */ | 89 | */ |
| 84 | struct mic_bootparam { | 90 | struct mic_bootparam { |
| 85 | __le32 magic; | 91 | __le32 magic; |
| @@ -88,6 +94,12 @@ struct mic_bootparam { | |||
| 88 | __s8 h2c_config_db; | 94 | __s8 h2c_config_db; |
| 89 | __u8 shutdown_status; | 95 | __u8 shutdown_status; |
| 90 | __u8 shutdown_card; | 96 | __u8 shutdown_card; |
| 97 | __u8 tot_nodes; | ||
| 98 | __u8 node_id; | ||
| 99 | __u8 h2c_scif_db; | ||
| 100 | __u8 c2h_scif_db; | ||
| 101 | __u64 scif_host_dma_addr; | ||
| 102 | __u64 scif_card_dma_addr; | ||
| 91 | } __attribute__ ((aligned(8))); | 103 | } __attribute__ ((aligned(8))); |
| 92 | 104 | ||
| 93 | /** | 105 | /** |
diff --git a/include/uapi/linux/scif_ioctl.h b/include/uapi/linux/scif_ioctl.h new file mode 100644 index 000000000000..4a94d917cf99 --- /dev/null +++ b/include/uapi/linux/scif_ioctl.h | |||
| @@ -0,0 +1,130 @@ | |||
| 1 | /* | ||
| 2 | * Intel MIC Platform Software Stack (MPSS) | ||
| 3 | * | ||
| 4 | * This file is provided under a dual BSD/GPLv2 license. When using or | ||
| 5 | * redistributing this file, you may do so under either license. | ||
| 6 | * | ||
| 7 | * GPL LICENSE SUMMARY | ||
| 8 | * | ||
| 9 | * Copyright(c) 2014 Intel Corporation. | ||
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of version 2 of the GNU General Public License as | ||
| 13 | * published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * BSD LICENSE | ||
| 21 | * | ||
| 22 | * Copyright(c) 2014 Intel Corporation. | ||
| 23 | * | ||
| 24 | * Redistribution and use in source and binary forms, with or without | ||
| 25 | * modification, are permitted provided that the following conditions | ||
| 26 | * are met: | ||
| 27 | * | ||
| 28 | * * Redistributions of source code must retain the above copyright | ||
| 29 | * notice, this list of conditions and the following disclaimer. | ||
| 30 | * * Redistributions in binary form must reproduce the above copyright | ||
| 31 | * notice, this list of conditions and the following disclaimer in | ||
| 32 | * the documentation and/or other materials provided with the | ||
| 33 | * distribution. | ||
| 34 | * * Neither the name of Intel Corporation nor the names of its | ||
| 35 | * contributors may be used to endorse or promote products derived | ||
| 36 | * from this software without specific prior written permission. | ||
| 37 | * | ||
| 38 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 39 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 40 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 41 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 42 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 43 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 44 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 45 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 46 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 47 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 48 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 49 | * | ||
| 50 | * Intel SCIF driver. | ||
| 51 | * | ||
| 52 | */ | ||
| 53 | /* | ||
| 54 | * ----------------------------------------- | ||
| 55 | * SCIF IOCTL interface information | ||
| 56 | * ----------------------------------------- | ||
| 57 | */ | ||
| 58 | #ifndef SCIF_IOCTL_H | ||
| 59 | #define SCIF_IOCTL_H | ||
| 60 | |||
| 61 | #include <linux/types.h> | ||
| 62 | |||
| 63 | /** | ||
| 64 | * struct scif_port_id - SCIF port information | ||
| 65 | * @node: node on which port resides | ||
| 66 | * @port: local port number | ||
| 67 | */ | ||
| 68 | struct scif_port_id { | ||
| 69 | __u16 node; | ||
| 70 | __u16 port; | ||
| 71 | }; | ||
| 72 | |||
| 73 | /** | ||
| 74 | * struct scifioctl_connect - used for SCIF_CONNECT IOCTL | ||
| 75 | * @self: used to read back the assigned port_id | ||
| 76 | * @peer: destination node and port to connect to | ||
| 77 | */ | ||
| 78 | struct scifioctl_connect { | ||
| 79 | struct scif_port_id self; | ||
| 80 | struct scif_port_id peer; | ||
| 81 | }; | ||
| 82 | |||
| 83 | /** | ||
| 84 | * struct scifioctl_accept - used for SCIF_ACCEPTREQ IOCTL | ||
| 85 | * @flags: flags | ||
| 86 | * @peer: global id of peer endpoint | ||
| 87 | * @endpt: new connected endpoint descriptor | ||
| 88 | */ | ||
| 89 | struct scifioctl_accept { | ||
| 90 | __s32 flags; | ||
| 91 | struct scif_port_id peer; | ||
| 92 | __u64 endpt; | ||
| 93 | }; | ||
| 94 | |||
| 95 | /** | ||
| 96 | * struct scifioctl_msg - used for SCIF_SEND/SCIF_RECV IOCTL | ||
| 97 | * @msg: message buffer address | ||
| 98 | * @len: message length | ||
| 99 | * @flags: flags | ||
| 100 | * @out_len: number of bytes sent/received | ||
| 101 | */ | ||
| 102 | struct scifioctl_msg { | ||
| 103 | __u64 msg; | ||
| 104 | __s32 len; | ||
| 105 | __s32 flags; | ||
| 106 | __s32 out_len; | ||
| 107 | }; | ||
| 108 | |||
| 109 | /** | ||
| 110 | * struct scifioctl_node_ids - used for SCIF_GET_NODEIDS IOCTL | ||
| 111 | * @nodes: pointer to an array of node_ids | ||
| 112 | * @self: ID of the current node | ||
| 113 | * @len: length of array | ||
| 114 | */ | ||
| 115 | struct scifioctl_node_ids { | ||
| 116 | __u64 nodes; | ||
| 117 | __u64 self; | ||
| 118 | __s32 len; | ||
| 119 | }; | ||
| 120 | |||
| 121 | #define SCIF_BIND _IOWR('s', 1, __u64) | ||
| 122 | #define SCIF_LISTEN _IOW('s', 2, __s32) | ||
| 123 | #define SCIF_CONNECT _IOWR('s', 3, struct scifioctl_connect) | ||
| 124 | #define SCIF_ACCEPTREQ _IOWR('s', 4, struct scifioctl_accept) | ||
| 125 | #define SCIF_ACCEPTREG _IOWR('s', 5, __u64) | ||
| 126 | #define SCIF_SEND _IOWR('s', 6, struct scifioctl_msg) | ||
| 127 | #define SCIF_RECV _IOWR('s', 7, struct scifioctl_msg) | ||
| 128 | #define SCIF_GET_NODEIDS _IOWR('s', 14, struct scifioctl_node_ids) | ||
| 129 | |||
| 130 | #endif /* SCIF_IOCTL_H */ | ||
