Merge branch 'for-3.18-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[linux/fpc-iii.git] / arch / s390 / include / asm / clp.h
bloba0e71a501f7cecbf41252c0c549864659bd0e5f4
1 #ifndef _ASM_S390_CLP_H
2 #define _ASM_S390_CLP_H
4 /* CLP common request & response block size */
5 #define CLP_BLK_SIZE PAGE_SIZE
7 struct clp_req_hdr {
8 u16 len;
9 u16 cmd;
10 } __packed;
12 struct clp_rsp_hdr {
13 u16 len;
14 u16 rsp;
15 } __packed;
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 */
28 #endif