clp.h 549 B

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