tape390.h 1022 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*************************************************************************
  2. *
  3. * tape390.h
  4. * enables user programs to display messages on the tape device
  5. *
  6. * S390 and zSeries version
  7. * Copyright (C) 2001 IBM Corporation
  8. * Author(s): Despina Papadopoulou <despina_p@de.ibm.com>
  9. *
  10. *************************************************************************/
  11. #ifndef _TAPE390_H
  12. #define _TAPE390_H
  13. #define TAPE390_DISPLAY _IOW('d', 1, struct display_struct)
  14. /*
  15. * The TAPE390_DISPLAY ioctl calls the Load Display command
  16. * which transfers 17 bytes of data from the channel to the subsystem:
  17. * - 1 format control byte, and
  18. * - two 8-byte messages
  19. *
  20. * Format control byte:
  21. * 0-2: New Message Overlay
  22. * 3: Alternate Messages
  23. * 4: Blink Message
  24. * 5: Display Low/High Message
  25. * 6: Reserved
  26. * 7: Automatic Load Request
  27. *
  28. */
  29. typedef struct display_struct {
  30. char cntrl;
  31. char message1[8];
  32. char message2[8];
  33. } display_struct;
  34. #endif