aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>2013-06-06 03:52:08 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-06-26 15:10:13 -0400
commitd475f942b1dd6a897dac3ad4ed98d6994b275378 (patch)
tree43f599275ef7ac5350ea25f8f1eeb2690d6dc4e4 /arch/s390
parente9a8f32a98a6099b009ea7da4f299bb5427db126 (diff)
s390/sclp: Add SCLP character device driver
Add a character misc device "sclp_ctl" that allows to run SCCBs from user space using the SCLP_CTL_SCCB ioctl. Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/uapi/asm/Kbuild1
-rw-r--r--arch/s390/include/uapi/asm/sclp_ctl.h24
2 files changed, 25 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/Kbuild b/arch/s390/include/uapi/asm/Kbuild
index 9ccd1905bdad..6a9a9eb645f5 100644
--- a/arch/s390/include/uapi/asm/Kbuild
+++ b/arch/s390/include/uapi/asm/Kbuild
@@ -35,6 +35,7 @@ header-y += siginfo.h
35header-y += signal.h 35header-y += signal.h
36header-y += socket.h 36header-y += socket.h
37header-y += sockios.h 37header-y += sockios.h
38header-y += sclp_ctl.h
38header-y += stat.h 39header-y += stat.h
39header-y += statfs.h 40header-y += statfs.h
40header-y += swab.h 41header-y += swab.h
diff --git a/arch/s390/include/uapi/asm/sclp_ctl.h b/arch/s390/include/uapi/asm/sclp_ctl.h
new file mode 100644
index 000000000000..f2818613ee41
--- /dev/null
+++ b/arch/s390/include/uapi/asm/sclp_ctl.h
@@ -0,0 +1,24 @@
1/*
2 * IOCTL interface for SCLP
3 *
4 * Copyright IBM Corp. 2012
5 *
6 * Author: Michael Holzheu <holzheu@linux.vnet.ibm.com>
7 */
8
9#ifndef _ASM_SCLP_CTL_H
10#define _ASM_SCLP_CTL_H
11
12#include <linux/types.h>
13
14struct sclp_ctl_sccb {
15 __u32 cmdw;
16 __u64 sccb;
17} __attribute__((packed));
18
19#define SCLP_CTL_IOCTL_MAGIC 0x10
20
21#define SCLP_CTL_SCCB \
22 _IOWR(SCLP_CTL_IOCTL_MAGIC, 0x10, struct sclp_ctl_sccb)
23
24#endif