clp.h 486 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * ioctl interface for /dev/clp
  3. *
  4. * Copyright IBM Corp. 2016
  5. * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
  6. */
  7. #ifndef _ASM_CLP_H
  8. #define _ASM_CLP_H
  9. #include <linux/types.h>
  10. #include <linux/ioctl.h>
  11. struct clp_req {
  12. unsigned int c : 1;
  13. unsigned int r : 1;
  14. unsigned int lps : 6;
  15. unsigned int cmd : 8;
  16. unsigned int : 16;
  17. unsigned int reserved;
  18. __u64 data_p;
  19. };
  20. #define CLP_IOCTL_MAGIC 'c'
  21. #define CLP_SYNC _IOWR(CLP_IOCTL_MAGIC, 0xC1, struct clp_req)
  22. #endif