diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-01-13 06:54:28 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-03-07 10:54:32 -0500 |
commit | 988b86e69ded17f0f1209fd3ef1c4c7f1567dcc1 (patch) | |
tree | 7ef6e69d88c827190cc5f66f417efc04f0d03d6f /arch/s390/include/uapi | |
parent | baebc70a4db86515d55ff1f226088a8e7f5821a0 (diff) |
s390/pci: add ioctl interface for CLP
Provide a user space interface to issue call logical-processor instructions.
Only selected CLP commands are allowed, enough to get the full overview of
the installed PCI functions.
Reviewed-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/uapi')
-rw-r--r-- | arch/s390/include/uapi/asm/clp.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/clp.h b/arch/s390/include/uapi/asm/clp.h new file mode 100644 index 000000000000..ab72d9d24373 --- /dev/null +++ b/arch/s390/include/uapi/asm/clp.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * ioctl interface for /dev/clp | ||
3 | * | ||
4 | * Copyright IBM Corp. 2016 | ||
5 | * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> | ||
6 | */ | ||
7 | |||
8 | #ifndef _ASM_CLP_H | ||
9 | #define _ASM_CLP_H | ||
10 | |||
11 | #include <linux/types.h> | ||
12 | #include <linux/ioctl.h> | ||
13 | |||
14 | struct clp_req { | ||
15 | unsigned int c : 1; | ||
16 | unsigned int r : 1; | ||
17 | unsigned int lps : 6; | ||
18 | unsigned int cmd : 8; | ||
19 | unsigned int : 16; | ||
20 | unsigned int reserved; | ||
21 | __u64 data_p; | ||
22 | }; | ||
23 | |||
24 | #define CLP_IOCTL_MAGIC 'c' | ||
25 | |||
26 | #define CLP_SYNC _IOWR(CLP_IOCTL_MAGIC, 0xC1, struct clp_req) | ||
27 | |||
28 | #endif | ||