clp.h 827 B

12345678910111213141516171819202122232425262728
  1. #ifndef _ASM_S390_CLP_H
  2. #define _ASM_S390_CLP_H
  3. /* CLP common request & response block size */
  4. #define CLP_BLK_SIZE PAGE_SIZE
  5. struct clp_req_hdr {
  6. u16 len;
  7. u16 cmd;
  8. } __packed;
  9. struct clp_rsp_hdr {
  10. u16 len;
  11. u16 rsp;
  12. } __packed;
  13. /* CLP Response Codes */
  14. #define CLP_RC_OK 0x0010 /* Command request successfully */
  15. #define CLP_RC_CMD 0x0020 /* Command code not recognized */
  16. #define CLP_RC_PERM 0x0030 /* Command not authorized */
  17. #define CLP_RC_FMT 0x0040 /* Invalid command request format */
  18. #define CLP_RC_LEN 0x0050 /* Invalid command request length */
  19. #define CLP_RC_8K 0x0060 /* Command requires 8K LPCB */
  20. #define CLP_RC_RESNOT0 0x0070 /* Reserved field not zero */
  21. #define CLP_RC_NODATA 0x0080 /* No data available */
  22. #define CLP_RC_FC_UNKNOWN 0x0100 /* Function code not recognized */
  23. #endif