sn9c102_devtable.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. #ifndef _SN9C102_DEVTABLE_H_
  21. #define _SN9C102_DEVTABLE_H_
  22. #include <linux/usb.h>
  23. struct sn9c102_device;
  24. /*
  25. Each SN9C1xx camera has proper PID/VID identifiers.
  26. SN9C103, SN9C105, SN9C120 support multiple interfaces, but we only have to
  27. handle the video class interface.
  28. */
  29. #define SN9C102_USB_DEVICE(vend, prod, bridge) \
  30. .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
  31. USB_DEVICE_ID_MATCH_INT_CLASS, \
  32. .idVendor = (vend), \
  33. .idProduct = (prod), \
  34. .bInterfaceClass = 0xff, \
  35. .driver_info = (bridge)
  36. static const struct usb_device_id sn9c102_id_table[] = {
  37. /* SN9C101 and SN9C102 */
  38. #if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
  39. { SN9C102_USB_DEVICE(0x0c45, 0x6001, BRIDGE_SN9C102), },
  40. { SN9C102_USB_DEVICE(0x0c45, 0x6005, BRIDGE_SN9C102), },
  41. { SN9C102_USB_DEVICE(0x0c45, 0x6007, BRIDGE_SN9C102), },
  42. { SN9C102_USB_DEVICE(0x0c45, 0x6009, BRIDGE_SN9C102), },
  43. { SN9C102_USB_DEVICE(0x0c45, 0x600d, BRIDGE_SN9C102), },
  44. /* { SN9C102_USB_DEVICE(0x0c45, 0x6011, BRIDGE_SN9C102), }, OV6650 */
  45. { SN9C102_USB_DEVICE(0x0c45, 0x6019, BRIDGE_SN9C102), },
  46. #endif
  47. { SN9C102_USB_DEVICE(0x0c45, 0x6024, BRIDGE_SN9C102), },
  48. { SN9C102_USB_DEVICE(0x0c45, 0x6025, BRIDGE_SN9C102), },
  49. #if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
  50. { SN9C102_USB_DEVICE(0x0c45, 0x6028, BRIDGE_SN9C102), },
  51. { SN9C102_USB_DEVICE(0x0c45, 0x6029, BRIDGE_SN9C102), },
  52. { SN9C102_USB_DEVICE(0x0c45, 0x602a, BRIDGE_SN9C102), },
  53. #endif
  54. { SN9C102_USB_DEVICE(0x0c45, 0x602b, BRIDGE_SN9C102), }, /* not in sonixb */
  55. #if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
  56. { SN9C102_USB_DEVICE(0x0c45, 0x602c, BRIDGE_SN9C102), },
  57. /* { SN9C102_USB_DEVICE(0x0c45, 0x602d, BRIDGE_SN9C102), }, HV7131R */
  58. { SN9C102_USB_DEVICE(0x0c45, 0x602e, BRIDGE_SN9C102), },
  59. #endif
  60. { SN9C102_USB_DEVICE(0x0c45, 0x6030, BRIDGE_SN9C102), }, /* not in sonixb */
  61. /* SN9C103 */
  62. /* { SN9C102_USB_DEVICE(0x0c45, 0x6080, BRIDGE_SN9C103), }, non existent ? */
  63. { SN9C102_USB_DEVICE(0x0c45, 0x6082, BRIDGE_SN9C103), }, /* not in sonixb */
  64. #if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
  65. /* { SN9C102_USB_DEVICE(0x0c45, 0x6083, BRIDGE_SN9C103), }, HY7131D/E */
  66. /* { SN9C102_USB_DEVICE(0x0c45, 0x6088, BRIDGE_SN9C103), }, non existent ? */
  67. /* { SN9C102_USB_DEVICE(0x0c45, 0x608a, BRIDGE_SN9C103), }, non existent ? */
  68. /* { SN9C102_USB_DEVICE(0x0c45, 0x608b, BRIDGE_SN9C103), }, non existent ? */
  69. { SN9C102_USB_DEVICE(0x0c45, 0x608c, BRIDGE_SN9C103), },
  70. /* { SN9C102_USB_DEVICE(0x0c45, 0x608e, BRIDGE_SN9C103), }, CISVF10 */
  71. { SN9C102_USB_DEVICE(0x0c45, 0x608f, BRIDGE_SN9C103), },
  72. /* { SN9C102_USB_DEVICE(0x0c45, 0x60a0, BRIDGE_SN9C103), }, non existent ? */
  73. /* { SN9C102_USB_DEVICE(0x0c45, 0x60a2, BRIDGE_SN9C103), }, non existent ? */
  74. /* { SN9C102_USB_DEVICE(0x0c45, 0x60a3, BRIDGE_SN9C103), }, non existent ? */
  75. /* { SN9C102_USB_DEVICE(0x0c45, 0x60a8, BRIDGE_SN9C103), }, PAS106 */
  76. /* { SN9C102_USB_DEVICE(0x0c45, 0x60aa, BRIDGE_SN9C103), }, TAS5130 */
  77. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ab, BRIDGE_SN9C103), }, TAS5110, non existent */
  78. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ac, BRIDGE_SN9C103), }, non existent ? */
  79. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ae, BRIDGE_SN9C103), }, non existent ? */
  80. { SN9C102_USB_DEVICE(0x0c45, 0x60af, BRIDGE_SN9C103), },
  81. { SN9C102_USB_DEVICE(0x0c45, 0x60b0, BRIDGE_SN9C103), },
  82. /* { SN9C102_USB_DEVICE(0x0c45, 0x60b2, BRIDGE_SN9C103), }, non existent ? */
  83. /* { SN9C102_USB_DEVICE(0x0c45, 0x60b3, BRIDGE_SN9C103), }, non existent ? */
  84. /* { SN9C102_USB_DEVICE(0x0c45, 0x60b8, BRIDGE_SN9C103), }, non existent ? */
  85. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ba, BRIDGE_SN9C103), }, non existent ? */
  86. /* { SN9C102_USB_DEVICE(0x0c45, 0x60bb, BRIDGE_SN9C103), }, non existent ? */
  87. /* { SN9C102_USB_DEVICE(0x0c45, 0x60bc, BRIDGE_SN9C103), }, non existent ? */
  88. /* { SN9C102_USB_DEVICE(0x0c45, 0x60be, BRIDGE_SN9C103), }, non existent ? */
  89. #endif
  90. /* SN9C105 */
  91. #if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
  92. { SN9C102_USB_DEVICE(0x045e, 0x00f5, BRIDGE_SN9C105), },
  93. { SN9C102_USB_DEVICE(0x045e, 0x00f7, BRIDGE_SN9C105), },
  94. { SN9C102_USB_DEVICE(0x0471, 0x0327, BRIDGE_SN9C105), },
  95. { SN9C102_USB_DEVICE(0x0471, 0x0328, BRIDGE_SN9C105), },
  96. { SN9C102_USB_DEVICE(0x0c45, 0x60c0, BRIDGE_SN9C105), },
  97. /* { SN9C102_USB_DEVICE(0x0c45, 0x60c2, BRIDGE_SN9C105), }, PO1030 */
  98. /* { SN9C102_USB_DEVICE(0x0c45, 0x60c8, BRIDGE_SN9C105), }, OM6801 */
  99. /* { SN9C102_USB_DEVICE(0x0c45, 0x60cc, BRIDGE_SN9C105), }, HV7131GP */
  100. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ea, BRIDGE_SN9C105), }, non existent ? */
  101. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ec, BRIDGE_SN9C105), }, MO4000 */
  102. /* { SN9C102_USB_DEVICE(0x0c45, 0x60ef, BRIDGE_SN9C105), }, ICM105C */
  103. /* { SN9C102_USB_DEVICE(0x0c45, 0x60fa, BRIDGE_SN9C105), }, OV7648 */
  104. { SN9C102_USB_DEVICE(0x0c45, 0x60fb, BRIDGE_SN9C105), },
  105. { SN9C102_USB_DEVICE(0x0c45, 0x60fc, BRIDGE_SN9C105), },
  106. { SN9C102_USB_DEVICE(0x0c45, 0x60fe, BRIDGE_SN9C105), },
  107. /* SN9C120 */
  108. { SN9C102_USB_DEVICE(0x0458, 0x7025, BRIDGE_SN9C120), },
  109. /* { SN9C102_USB_DEVICE(0x0c45, 0x6102, BRIDGE_SN9C120), }, po2030 */
  110. /* { SN9C102_USB_DEVICE(0x0c45, 0x6108, BRIDGE_SN9C120), }, om6801 */
  111. /* { SN9C102_USB_DEVICE(0x0c45, 0x610f, BRIDGE_SN9C120), }, S5K53BEB */
  112. { SN9C102_USB_DEVICE(0x0c45, 0x6130, BRIDGE_SN9C120), },
  113. /* { SN9C102_USB_DEVICE(0x0c45, 0x6138, BRIDGE_SN9C120), }, MO8000 */
  114. { SN9C102_USB_DEVICE(0x0c45, 0x613a, BRIDGE_SN9C120), },
  115. { SN9C102_USB_DEVICE(0x0c45, 0x613b, BRIDGE_SN9C120), },
  116. { SN9C102_USB_DEVICE(0x0c45, 0x613c, BRIDGE_SN9C120), },
  117. { SN9C102_USB_DEVICE(0x0c45, 0x613e, BRIDGE_SN9C120), },
  118. #endif
  119. { }
  120. };
  121. /*
  122. Probing functions: on success, you must attach the sensor to the camera
  123. by calling sn9c102_attach_sensor().
  124. To enable the I2C communication, you might need to perform a really basic
  125. initialization of the SN9C1XX chip.
  126. Functions must return 0 on success, the appropriate error otherwise.
  127. */
  128. extern int sn9c102_probe_hv7131d(struct sn9c102_device* cam);
  129. extern int sn9c102_probe_hv7131r(struct sn9c102_device* cam);
  130. extern int sn9c102_probe_mi0343(struct sn9c102_device* cam);
  131. extern int sn9c102_probe_mi0360(struct sn9c102_device* cam);
  132. extern int sn9c102_probe_mt9v111(struct sn9c102_device *cam);
  133. extern int sn9c102_probe_ov7630(struct sn9c102_device* cam);
  134. extern int sn9c102_probe_ov7660(struct sn9c102_device* cam);
  135. extern int sn9c102_probe_pas106b(struct sn9c102_device* cam);
  136. extern int sn9c102_probe_pas202bcb(struct sn9c102_device* cam);
  137. extern int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam);
  138. extern int sn9c102_probe_tas5110d(struct sn9c102_device* cam);
  139. extern int sn9c102_probe_tas5130d1b(struct sn9c102_device* cam);
  140. #endif /* _SN9C102_DEVTABLE_H_ */