diag.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * s390 diagnose functions
  3. *
  4. * Copyright IBM Corp. 2007
  5. * Author(s): Michael Holzheu <holzheu@de.ibm.com>
  6. */
  7. #ifndef _ASM_S390_DIAG_H
  8. #define _ASM_S390_DIAG_H
  9. /*
  10. * Diagnose 10: Release pages
  11. */
  12. extern void diag10(unsigned long addr);
  13. /*
  14. * Diagnose 14: Input spool file manipulation
  15. */
  16. extern int diag14(unsigned long rx, unsigned long ry1, unsigned long subcode);
  17. /*
  18. * Diagnose 210: Get information about a virtual device
  19. */
  20. struct diag210 {
  21. u16 vrdcdvno; /* device number (input) */
  22. u16 vrdclen; /* data block length (input) */
  23. u8 vrdcvcla; /* virtual device class (output) */
  24. u8 vrdcvtyp; /* virtual device type (output) */
  25. u8 vrdcvsta; /* virtual device status (output) */
  26. u8 vrdcvfla; /* virtual device flags (output) */
  27. u8 vrdcrccl; /* real device class (output) */
  28. u8 vrdccrty; /* real device type (output) */
  29. u8 vrdccrmd; /* real device model (output) */
  30. u8 vrdccrft; /* real device feature (output) */
  31. } __attribute__((packed, aligned(4)));
  32. extern int diag210(struct diag210 *addr);
  33. #endif /* _ASM_S390_DIAG_H */