sclp.h 907 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef _ASM_S390_SCLP_H
  8. #define _ASM_S390_SCLP_H
  9. #include <linux/types.h>
  10. struct sccb_header {
  11. u16 length;
  12. u8 function_code;
  13. u8 control_mask[3];
  14. u16 response_code;
  15. } __attribute__((packed));
  16. #define LOADPARM_LEN 8
  17. struct sclp_readinfo_sccb {
  18. struct sccb_header header; /* 0-7 */
  19. u16 rnmax; /* 8-9 */
  20. u8 rnsize; /* 10 */
  21. u8 _reserved0[24 - 11]; /* 11-23 */
  22. u8 loadparm[LOADPARM_LEN]; /* 24-31 */
  23. u8 _reserved1[91 - 32]; /* 32-90 */
  24. u8 flags; /* 91 */
  25. u8 _reserved2[100 - 92]; /* 92-99 */
  26. u32 rnsize2; /* 100-103 */
  27. u64 rnmax2; /* 104-111 */
  28. u8 _reserved3[4096 - 112]; /* 112-4095 */
  29. } __attribute__((packed, aligned(4096)));
  30. extern struct sclp_readinfo_sccb s390_readinfo_sccb;
  31. extern void sclp_readinfo_early(void);
  32. #endif /* _ASM_S390_SCLP_H */