Muralidharan Karicheri | 7da8a6c | 2009-07-06 15:04:12 -0300 | [diff] [blame] | 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 | |
| 21 | #ifdef __KERNEL__ |
| 22 | |
| 23 | enum vpfe_pin_pol { |
| 24 | VPFE_PINPOL_POSITIVE, |
| 25 | VPFE_PINPOL_NEGATIVE |
| 26 | }; |
| 27 | |
| 28 | enum vpfe_hw_if_type { |
| 29 | /* BT656 - 8 bit */ |
| 30 | VPFE_BT656, |
| 31 | /* BT1120 - 16 bit */ |
| 32 | VPFE_BT1120, |
| 33 | /* Raw Bayer */ |
| 34 | VPFE_RAW_BAYER, |
| 35 | /* YCbCr - 8 bit with external sync */ |
| 36 | VPFE_YCBCR_SYNC_8, |
| 37 | /* YCbCr - 16 bit with external sync */ |
| 38 | VPFE_YCBCR_SYNC_16, |
| 39 | /* BT656 - 10 bit */ |
| 40 | VPFE_BT656_10BIT |
| 41 | }; |
| 42 | |
| 43 | /* interface description */ |
| 44 | struct vpfe_hw_if_param { |
| 45 | enum vpfe_hw_if_type if_type; |
| 46 | enum vpfe_pin_pol hdpol; |
| 47 | enum vpfe_pin_pol vdpol; |
| 48 | }; |
| 49 | |
| 50 | #endif |
| 51 | #endif |