diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2012-11-29 06:55:21 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-11-30 09:40:47 -0500 |
commit | a755a45dd928e05a4fb980d31d4a0dbc49adc562 (patch) | |
tree | ad7e88579a6a52c06cada11ce59529e3c8888d06 /arch/s390/include/asm/clp.h | |
parent | cd24834130ac655d15accee6757e0eaeab4ad4ef (diff) |
s390/pci: CLP interface
CLP instructions are used to query the firmware about detected PCI
functions, the attributes of those functions and to enable or disable
a PCI function. The CLP interface is the equivalent to a PCI bus scan.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/clp.h')
-rw-r--r-- | arch/s390/include/asm/clp.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/s390/include/asm/clp.h b/arch/s390/include/asm/clp.h new file mode 100644 index 000000000000..6c3aecc245ff --- /dev/null +++ b/arch/s390/include/asm/clp.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef _ASM_S390_CLP_H | ||
2 | #define _ASM_S390_CLP_H | ||
3 | |||
4 | /* CLP common request & response block size */ | ||
5 | #define CLP_BLK_SIZE (PAGE_SIZE * 2) | ||
6 | |||
7 | struct clp_req_hdr { | ||
8 | u16 len; | ||
9 | u16 cmd; | ||
10 | } __packed; | ||
11 | |||
12 | struct clp_rsp_hdr { | ||
13 | u16 len; | ||
14 | u16 rsp; | ||
15 | } __packed; | ||
16 | |||
17 | /* CLP Response Codes */ | ||
18 | #define CLP_RC_OK 0x0010 /* Command request successfully */ | ||
19 | #define CLP_RC_CMD 0x0020 /* Command code not recognized */ | ||
20 | #define CLP_RC_PERM 0x0030 /* Command not authorized */ | ||
21 | #define CLP_RC_FMT 0x0040 /* Invalid command request format */ | ||
22 | #define CLP_RC_LEN 0x0050 /* Invalid command request length */ | ||
23 | #define CLP_RC_8K 0x0060 /* Command requires 8K LPCB */ | ||
24 | #define CLP_RC_RESNOT0 0x0070 /* Reserved field not zero */ | ||
25 | #define CLP_RC_NODATA 0x0080 /* No data available */ | ||
26 | #define CLP_RC_FC_UNKNOWN 0x0100 /* Function code not recognized */ | ||
27 | |||
28 | #endif | ||