cpia2dev.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /****************************************************************************
  2. *
  3. * Filename: cpia2dev.h
  4. *
  5. * Copyright 2001, STMicrolectronics, Inc.
  6. *
  7. * Contact: steve.miller@st.com
  8. *
  9. * Description:
  10. * This file provides definitions for applications wanting to use the
  11. * cpia2 driver beyond the generic v4l capabilities.
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  26. *
  27. ****************************************************************************/
  28. #ifndef CPIA2_DEV_HEADER
  29. #define CPIA2_DEV_HEADER
  30. #include <linux/videodev.h>
  31. /***
  32. * The following defines are ioctl numbers based on video4linux private ioctls,
  33. * which can range from 192 (BASE_VIDIOCPRIVATE) to 255. All of these take int
  34. * args
  35. */
  36. #define CPIA2_IOC_SET_GPIO _IOW('v', BASE_VIDIOCPRIVATE + 17, __u32)
  37. /* V4L2 driver specific controls */
  38. #define CPIA2_CID_TARGET_KB (V4L2_CID_PRIVATE_BASE+0)
  39. #define CPIA2_CID_GPIO (V4L2_CID_PRIVATE_BASE+1)
  40. #define CPIA2_CID_FLICKER_MODE (V4L2_CID_PRIVATE_BASE+2)
  41. #define CPIA2_CID_FRAMERATE (V4L2_CID_PRIVATE_BASE+3)
  42. #define CPIA2_CID_USB_ALT (V4L2_CID_PRIVATE_BASE+4)
  43. #define CPIA2_CID_LIGHTS (V4L2_CID_PRIVATE_BASE+5)
  44. #define CPIA2_CID_RESET_CAMERA (V4L2_CID_PRIVATE_BASE+6)
  45. #endif