cciss_ioctl.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef CCISS_IOCTLH
  3. #define CCISS_IOCTLH
  4. #include <uapi/linux/cciss_ioctl.h>
  5. #ifdef CONFIG_COMPAT
  6. /* 32 bit compatible ioctl structs */
  7. typedef struct _IOCTL32_Command_struct {
  8. LUNAddr_struct LUN_info;
  9. RequestBlock_struct Request;
  10. ErrorInfo_struct error_info;
  11. WORD buf_size; /* size in bytes of the buf */
  12. __u32 buf; /* 32 bit pointer to data buffer */
  13. } IOCTL32_Command_struct;
  14. typedef struct _BIG_IOCTL32_Command_struct {
  15. LUNAddr_struct LUN_info;
  16. RequestBlock_struct Request;
  17. ErrorInfo_struct error_info;
  18. DWORD malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
  19. DWORD buf_size; /* size in bytes of the buf */
  20. /* < malloc_size * MAXSGENTRIES */
  21. __u32 buf; /* 32 bit pointer to data buffer */
  22. } BIG_IOCTL32_Command_struct;
  23. #define CCISS_PASSTHRU32 _IOWR(CCISS_IOC_MAGIC, 11, IOCTL32_Command_struct)
  24. #define CCISS_BIG_PASSTHRU32 _IOWR(CCISS_IOC_MAGIC, 18, BIG_IOCTL32_Command_struct)
  25. #endif /* CONFIG_COMPAT */
  26. #endif