diff options
Diffstat (limited to 'include/media/v4l2-chip-ident.h')
-rw-r--r-- | include/media/v4l2-chip-ident.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/include/media/v4l2-chip-ident.h b/include/media/v4l2-chip-ident.h new file mode 100644 index 000000000000..f6686ce133d8 --- /dev/null +++ b/include/media/v4l2-chip-ident.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | v4l2 chip identifiers header | ||
3 | |||
4 | This header provides a list of chip identifiers that can be returned | ||
5 | through the VIDIOC_G_CHIP_IDENT ioctl. | ||
6 | |||
7 | Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl> | ||
8 | |||
9 | This program is free software; you can redistribute it and/or modify | ||
10 | it under the terms of the GNU General Public License as published by | ||
11 | the Free Software Foundation; either version 2 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | This program is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | GNU General Public License for more details. | ||
18 | |||
19 | You should have received a copy of the GNU General Public License | ||
20 | along with this program; if not, write to the Free Software | ||
21 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | |||
24 | #ifndef V4L2_CHIP_IDENT_H_ | ||
25 | #define V4L2_CHIP_IDENT_H_ | ||
26 | |||
27 | /* VIDIOC_G_CHIP_IDENT: identifies the actual chip installed on the board */ | ||
28 | enum { | ||
29 | /* general idents: reserved range 0-49 */ | ||
30 | V4L2_IDENT_NONE = 0, /* No chip matched */ | ||
31 | V4L2_IDENT_AMBIGUOUS = 1, /* Match too general, multiple chips matched */ | ||
32 | V4L2_IDENT_UNKNOWN = 2, /* Chip found, but cannot identify */ | ||
33 | |||
34 | /* module saa7110: just ident= 100 */ | ||
35 | V4L2_IDENT_SAA7110 = 100, | ||
36 | |||
37 | /* module saa7111: just ident= 101 */ | ||
38 | V4L2_IDENT_SAA7111 = 101, | ||
39 | |||
40 | /* module saa7115: reserved range 102-149 */ | ||
41 | V4L2_IDENT_SAA7113 = 103, | ||
42 | V4L2_IDENT_SAA7114 = 104, | ||
43 | V4L2_IDENT_SAA7115 = 105, | ||
44 | V4L2_IDENT_SAA7118 = 108, | ||
45 | |||
46 | /* module saa7127: reserved range 150-199 */ | ||
47 | V4L2_IDENT_SAA7127 = 157, | ||
48 | V4L2_IDENT_SAA7129 = 159, | ||
49 | |||
50 | /* module cx25840: reserved range 200-249 */ | ||
51 | V4L2_IDENT_CX25836 = 236, | ||
52 | V4L2_IDENT_CX25837 = 237, | ||
53 | V4L2_IDENT_CX25840 = 240, | ||
54 | V4L2_IDENT_CX25841 = 241, | ||
55 | V4L2_IDENT_CX25842 = 242, | ||
56 | V4L2_IDENT_CX25843 = 243, | ||
57 | |||
58 | /* OmniVision sensors - range 250-299 */ | ||
59 | V4L2_IDENT_OV7670 = 250, | ||
60 | }; | ||
61 | |||
62 | #endif | ||