]> bbs.cooldavid.org Git - net-next-2.6.git/blame - drivers/media/video/sn9c102/sn9c102_devtable.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
[net-next-2.6.git] / drivers / media / video / sn9c102 / sn9c102_devtable.h
CommitLineData
f327ebbd
LR
1/***************************************************************************
2 * Table of device identifiers of the SN9C1xx PC Camera Controllers *
3 * *
4 * Copyright (C) 2007 by Luca Risolia <luca.risolia@studio.unibo.it> *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the Free Software *
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
19 ***************************************************************************/
20
21#ifndef _SN9C102_DEVTABLE_H_
22#define _SN9C102_DEVTABLE_H_
23
24#include <linux/usb.h>
25
26struct sn9c102_device;
27
28/*
29 Each SN9C1xx camera has proper PID/VID identifiers.
30 SN9C103, SN9C105, SN9C120 support multiple interfaces, but we only have to
31 handle the video class interface.
32*/
33#define SN9C102_USB_DEVICE(vend, prod, bridge) \
34 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
35 USB_DEVICE_ID_MATCH_INT_CLASS, \
36 .idVendor = (vend), \
37 .idProduct = (prod), \
38 .bInterfaceClass = 0xff, \
39 .driver_info = (bridge)
40
41static const struct usb_device_id sn9c102_id_table[] = {
42 /* SN9C101 and SN9C102 */
dbad345e 43#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
f327ebbd
LR
44 { SN9C102_USB_DEVICE(0x0c45, 0x6001, BRIDGE_SN9C102), },
45 { SN9C102_USB_DEVICE(0x0c45, 0x6005, BRIDGE_SN9C102), },
127f548d 46#endif
0e4b91c3 47 { SN9C102_USB_DEVICE(0x0c45, 0x6007, BRIDGE_SN9C102), },
dbad345e 48#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
f327ebbd 49 { SN9C102_USB_DEVICE(0x0c45, 0x6009, BRIDGE_SN9C102), },
f327ebbd 50 { SN9C102_USB_DEVICE(0x0c45, 0x600d, BRIDGE_SN9C102), },
222a07ff 51/* { SN9C102_USB_DEVICE(0x0c45, 0x6011, BRIDGE_SN9C102), }, OV6650 */
0e4b91c3 52#endif
f327ebbd
LR
53 { SN9C102_USB_DEVICE(0x0c45, 0x6019, BRIDGE_SN9C102), },
54 { SN9C102_USB_DEVICE(0x0c45, 0x6024, BRIDGE_SN9C102), },
55 { SN9C102_USB_DEVICE(0x0c45, 0x6025, BRIDGE_SN9C102), },
dbad345e 56#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
f327ebbd
LR
57 { SN9C102_USB_DEVICE(0x0c45, 0x6028, BRIDGE_SN9C102), },
58 { SN9C102_USB_DEVICE(0x0c45, 0x6029, BRIDGE_SN9C102), },
0e4b91c3 59#endif
f327ebbd
LR
60 { SN9C102_USB_DEVICE(0x0c45, 0x602a, BRIDGE_SN9C102), },
61 { SN9C102_USB_DEVICE(0x0c45, 0x602b, BRIDGE_SN9C102), },
dbad345e 62#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
f327ebbd 63 { SN9C102_USB_DEVICE(0x0c45, 0x602c, BRIDGE_SN9C102), },
222a07ff 64/* { SN9C102_USB_DEVICE(0x0c45, 0x602d, BRIDGE_SN9C102), }, HV7131R */
f327ebbd 65 { SN9C102_USB_DEVICE(0x0c45, 0x602e, BRIDGE_SN9C102), },
040000ae 66#endif
f327ebbd 67 { SN9C102_USB_DEVICE(0x0c45, 0x6030, BRIDGE_SN9C102), },
f327ebbd
LR
68 /* SN9C103 */
69 { SN9C102_USB_DEVICE(0x0c45, 0x6080, BRIDGE_SN9C103), },
70 { SN9C102_USB_DEVICE(0x0c45, 0x6082, BRIDGE_SN9C103), },
222a07ff 71/* { SN9C102_USB_DEVICE(0x0c45, 0x6083, BRIDGE_SN9C103), }, HY7131D/E */
f327ebbd
LR
72 { SN9C102_USB_DEVICE(0x0c45, 0x6088, BRIDGE_SN9C103), },
73 { SN9C102_USB_DEVICE(0x0c45, 0x608a, BRIDGE_SN9C103), },
74 { SN9C102_USB_DEVICE(0x0c45, 0x608b, BRIDGE_SN9C103), },
75 { SN9C102_USB_DEVICE(0x0c45, 0x608c, BRIDGE_SN9C103), },
222a07ff 76/* { SN9C102_USB_DEVICE(0x0c45, 0x608e, BRIDGE_SN9C103), }, CISVF10 */
dbad345e 77#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
f327ebbd 78 { SN9C102_USB_DEVICE(0x0c45, 0x608f, BRIDGE_SN9C103), },
4cce1655 79#endif
f327ebbd
LR
80 { SN9C102_USB_DEVICE(0x0c45, 0x60a0, BRIDGE_SN9C103), },
81 { SN9C102_USB_DEVICE(0x0c45, 0x60a2, BRIDGE_SN9C103), },
82 { SN9C102_USB_DEVICE(0x0c45, 0x60a3, BRIDGE_SN9C103), },
222a07ff
HG
83/* { SN9C102_USB_DEVICE(0x0c45, 0x60a8, BRIDGE_SN9C103), }, PAS106 */
84/* { SN9C102_USB_DEVICE(0x0c45, 0x60aa, BRIDGE_SN9C103), }, TAS5130 */
a94a5086 85/* { SN9C102_USB_DEVICE(0x0c45, 0x60ab, BRIDGE_SN9C103), }, TAS5130 */
f327ebbd
LR
86 { SN9C102_USB_DEVICE(0x0c45, 0x60ac, BRIDGE_SN9C103), },
87 { SN9C102_USB_DEVICE(0x0c45, 0x60ae, BRIDGE_SN9C103), },
88 { SN9C102_USB_DEVICE(0x0c45, 0x60af, BRIDGE_SN9C103), },
dbad345e 89#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
f327ebbd 90 { SN9C102_USB_DEVICE(0x0c45, 0x60b0, BRIDGE_SN9C103), },
4cce1655 91#endif
f327ebbd
LR
92 { SN9C102_USB_DEVICE(0x0c45, 0x60b2, BRIDGE_SN9C103), },
93 { SN9C102_USB_DEVICE(0x0c45, 0x60b3, BRIDGE_SN9C103), },
94 { SN9C102_USB_DEVICE(0x0c45, 0x60b8, BRIDGE_SN9C103), },
95 { SN9C102_USB_DEVICE(0x0c45, 0x60ba, BRIDGE_SN9C103), },
96 { SN9C102_USB_DEVICE(0x0c45, 0x60bb, BRIDGE_SN9C103), },
97 { SN9C102_USB_DEVICE(0x0c45, 0x60bc, BRIDGE_SN9C103), },
98 { SN9C102_USB_DEVICE(0x0c45, 0x60be, BRIDGE_SN9C103), },
99 /* SN9C105 */
dbad345e 100#if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
480b55c2
LR
101 { SN9C102_USB_DEVICE(0x045e, 0x00f5, BRIDGE_SN9C105), },
102 { SN9C102_USB_DEVICE(0x045e, 0x00f7, BRIDGE_SN9C105), },
f327ebbd
LR
103 { SN9C102_USB_DEVICE(0x0471, 0x0327, BRIDGE_SN9C105), },
104 { SN9C102_USB_DEVICE(0x0471, 0x0328, BRIDGE_SN9C105), },
7e21fda1 105#endif
f327ebbd 106 { SN9C102_USB_DEVICE(0x0c45, 0x60c0, BRIDGE_SN9C105), },
f423b9a8 107 { SN9C102_USB_DEVICE(0x0c45, 0x60c2, BRIDGE_SN9C105), },
f327ebbd
LR
108 { SN9C102_USB_DEVICE(0x0c45, 0x60c8, BRIDGE_SN9C105), },
109 { SN9C102_USB_DEVICE(0x0c45, 0x60cc, BRIDGE_SN9C105), },
110 { SN9C102_USB_DEVICE(0x0c45, 0x60ea, BRIDGE_SN9C105), },
111 { SN9C102_USB_DEVICE(0x0c45, 0x60ec, BRIDGE_SN9C105), },
f423b9a8 112 { SN9C102_USB_DEVICE(0x0c45, 0x60ef, BRIDGE_SN9C105), },
f327ebbd
LR
113 { SN9C102_USB_DEVICE(0x0c45, 0x60fa, BRIDGE_SN9C105), },
114 { SN9C102_USB_DEVICE(0x0c45, 0x60fb, BRIDGE_SN9C105), },
115 { SN9C102_USB_DEVICE(0x0c45, 0x60fc, BRIDGE_SN9C105), },
116 { SN9C102_USB_DEVICE(0x0c45, 0x60fe, BRIDGE_SN9C105), },
117 /* SN9C120 */
480b55c2 118 { SN9C102_USB_DEVICE(0x0458, 0x7025, BRIDGE_SN9C120), },
860e7f47 119#if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
f423b9a8 120 { SN9C102_USB_DEVICE(0x0c45, 0x6102, BRIDGE_SN9C120), },
860e7f47 121#endif
f423b9a8
LR
122 { SN9C102_USB_DEVICE(0x0c45, 0x6108, BRIDGE_SN9C120), },
123 { SN9C102_USB_DEVICE(0x0c45, 0x610f, BRIDGE_SN9C120), },
266815e2 124#if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
f327ebbd 125 { SN9C102_USB_DEVICE(0x0c45, 0x6130, BRIDGE_SN9C120), },
266815e2 126#endif
222a07ff 127/* { SN9C102_USB_DEVICE(0x0c45, 0x6138, BRIDGE_SN9C120), }, MO8000 */
dbad345e 128#if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
f327ebbd 129 { SN9C102_USB_DEVICE(0x0c45, 0x613a, BRIDGE_SN9C120), },
821ced29 130#endif
f327ebbd 131 { SN9C102_USB_DEVICE(0x0c45, 0x613b, BRIDGE_SN9C120), },
dbad345e 132#if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
f327ebbd
LR
133 { SN9C102_USB_DEVICE(0x0c45, 0x613c, BRIDGE_SN9C120), },
134 { SN9C102_USB_DEVICE(0x0c45, 0x613e, BRIDGE_SN9C120), },
f077b0a6 135#endif
f327ebbd
LR
136 { }
137};
138
139/*
140 Probing functions: on success, you must attach the sensor to the camera
141 by calling sn9c102_attach_sensor().
142 To enable the I2C communication, you might need to perform a really basic
143 initialization of the SN9C1XX chip.
144 Functions must return 0 on success, the appropriate error otherwise.
145*/
146extern int sn9c102_probe_hv7131d(struct sn9c102_device* cam);
f423b9a8 147extern int sn9c102_probe_hv7131r(struct sn9c102_device* cam);
f327ebbd 148extern int sn9c102_probe_mi0343(struct sn9c102_device* cam);
f423b9a8 149extern int sn9c102_probe_mi0360(struct sn9c102_device* cam);
ddef2dcc 150extern int sn9c102_probe_mt9v111(struct sn9c102_device *cam);
f327ebbd
LR
151extern int sn9c102_probe_ov7630(struct sn9c102_device* cam);
152extern int sn9c102_probe_ov7660(struct sn9c102_device* cam);
153extern int sn9c102_probe_pas106b(struct sn9c102_device* cam);
154extern int sn9c102_probe_pas202bcb(struct sn9c102_device* cam);
155extern int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam);
f423b9a8 156extern int sn9c102_probe_tas5110d(struct sn9c102_device* cam);
f327ebbd
LR
157extern int sn9c102_probe_tas5130d1b(struct sn9c102_device* cam);
158
f327ebbd 159#endif /* _SN9C102_DEVTABLE_H_ */