cam_cal.h 929 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _CAM_CAL_H
  2. #define _CAM_CAL_H
  3. #include <linux/ioctl.h>
  4. #ifdef CONFIG_COMPAT
  5. /*64 bit*/
  6. #include <linux/fs.h>
  7. #include <linux/compat.h>
  8. #endif
  9. #define CAM_CALAGIC 'i'
  10. /*IOCTRL(inode * ,file * ,cmd ,arg )*/
  11. /*S means "set through a ptr"*/
  12. /*T means "tell by a arg value"*/
  13. /*G means "get by a ptr"*/
  14. /*Q means "get by return a value"*/
  15. /*X means "switch G and S atomically"*/
  16. /*H means "switch T and Q atomically"*/
  17. /*******************************************************************************
  18. *
  19. ********************************************************************************/
  20. /*CAM_CAL write*/
  21. #define CAM_CALIOC_S_WRITE _IOW(CAM_CALAGIC, 0, stCAM_CAL_INFO_STRUCT)
  22. /*CAM_CAL read*/
  23. #define CAM_CALIOC_G_READ _IOWR(CAM_CALAGIC, 5, stCAM_CAL_INFO_STRUCT)
  24. #ifdef CONFIG_COMPAT
  25. #define COMPAT_CAM_CALIOC_G_READ _IOWR(CAM_CALAGIC, 5, COMPAT_stCAM_CAL_INFO_STRUCT)
  26. #endif
  27. #endif /*_CAM_CAL_H*/