sclp.h 955 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include <asm/chpid.h>
  11. #define SCLP_CHP_INFO_MASK_SIZE 32
  12. struct sclp_chp_info {
  13. u8 recognized[SCLP_CHP_INFO_MASK_SIZE];
  14. u8 standby[SCLP_CHP_INFO_MASK_SIZE];
  15. u8 configured[SCLP_CHP_INFO_MASK_SIZE];
  16. };
  17. #define LOADPARM_LEN 8
  18. struct sclp_ipl_info {
  19. int is_valid;
  20. int has_dump;
  21. char loadparm[LOADPARM_LEN];
  22. };
  23. void sclp_readinfo_early(void);
  24. void sclp_facilities_detect(void);
  25. unsigned long long sclp_memory_detect(void);
  26. int sclp_sdias_blk_count(void);
  27. int sclp_sdias_copy(void *dest, int blk_num, int nr_blks);
  28. int sclp_chp_configure(struct chp_id chpid);
  29. int sclp_chp_deconfigure(struct chp_id chpid);
  30. int sclp_chp_read_info(struct sclp_chp_info *info);
  31. void sclp_get_ipl_info(struct sclp_ipl_info *info);
  32. #endif /* _ASM_S390_SCLP_H */