vpfe_types.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2008-2009 Texas Instruments Inc
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option)any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef _VPFE_TYPES_H
  19. #define _VPFE_TYPES_H
  20. #ifdef __KERNEL__
  21. enum vpfe_pin_pol {
  22. VPFE_PINPOL_POSITIVE,
  23. VPFE_PINPOL_NEGATIVE
  24. };
  25. enum vpfe_hw_if_type {
  26. /* BT656 - 8 bit */
  27. VPFE_BT656,
  28. /* BT1120 - 16 bit */
  29. VPFE_BT1120,
  30. /* Raw Bayer */
  31. VPFE_RAW_BAYER,
  32. /* YCbCr - 8 bit with external sync */
  33. VPFE_YCBCR_SYNC_8,
  34. /* YCbCr - 16 bit with external sync */
  35. VPFE_YCBCR_SYNC_16,
  36. /* BT656 - 10 bit */
  37. VPFE_BT656_10BIT
  38. };
  39. /* interface description */
  40. struct vpfe_hw_if_param {
  41. enum vpfe_hw_if_type if_type;
  42. enum vpfe_pin_pol hdpol;
  43. enum vpfe_pin_pol vdpol;
  44. };
  45. #endif
  46. #endif