Merge git://oss.sgi.com:8090/xfs/xfs-2.6
[linux-drm-fsl-dcu.git] / include / asm-s390 / sclp.h
1 /*
2  *  include/asm-s390/sclp.h
3  *
4  *    Copyright IBM Corp. 2007
5  *    Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
6  */
7
8 #ifndef _ASM_S390_SCLP_H
9 #define _ASM_S390_SCLP_H
10
11 #include <linux/types.h>
12
13 struct sccb_header {
14         u16     length;
15         u8      function_code;
16         u8      control_mask[3];
17         u16     response_code;
18 } __attribute__((packed));
19
20 #define LOADPARM_LEN 8
21
22 struct sclp_readinfo_sccb {
23         struct  sccb_header header;     /* 0-7 */
24         u16     rnmax;                  /* 8-9 */
25         u8      rnsize;                 /* 10 */
26         u8      _reserved0[24 - 11];    /* 11-23 */
27         u8      loadparm[LOADPARM_LEN]; /* 24-31 */
28         u8      _reserved1[91 - 32];    /* 32-90 */
29         u8      flags;                  /* 91 */
30         u8      _reserved2[100 - 92];   /* 92-99 */
31         u32     rnsize2;                /* 100-103 */
32         u64     rnmax2;                 /* 104-111 */
33         u8      _reserved3[4096 - 112]; /* 112-4095 */
34 } __attribute__((packed, aligned(4096)));
35
36 extern struct sclp_readinfo_sccb s390_readinfo_sccb;
37 extern void sclp_readinfo_early(void);
38
39 #endif /* _ASM_S390_SCLP_H */