stv06xx_st6422.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Support for the sensor part which is integrated (I think) into the
  3. * st6422 stv06xx alike bridge, as its integrated there are no i2c writes
  4. * but instead direct bridge writes.
  5. *
  6. * Copyright (c) 2009 Hans de Goede <hdegoede@redhat.com>
  7. *
  8. * Strongly based on qc-usb-messenger, which is:
  9. * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
  10. * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
  11. * Copyright (c) 2002, 2003 Tuukka Toivonen
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  26. *
  27. */
  28. #ifndef STV06XX_ST6422_H_
  29. #define STV06XX_ST6422_H_
  30. #include "stv06xx_sensor.h"
  31. static int st6422_probe(struct sd *sd);
  32. static int st6422_start(struct sd *sd);
  33. static int st6422_init(struct sd *sd);
  34. static int st6422_stop(struct sd *sd);
  35. static void st6422_disconnect(struct sd *sd);
  36. /* V4L2 controls supported by the driver */
  37. static int st6422_get_brightness(struct gspca_dev *gspca_dev, __s32 *val);
  38. static int st6422_set_brightness(struct gspca_dev *gspca_dev, __s32 val);
  39. static int st6422_get_contrast(struct gspca_dev *gspca_dev, __s32 *val);
  40. static int st6422_set_contrast(struct gspca_dev *gspca_dev, __s32 val);
  41. static int st6422_get_gain(struct gspca_dev *gspca_dev, __s32 *val);
  42. static int st6422_set_gain(struct gspca_dev *gspca_dev, __s32 val);
  43. static int st6422_get_exposure(struct gspca_dev *gspca_dev, __s32 *val);
  44. static int st6422_set_exposure(struct gspca_dev *gspca_dev, __s32 val);
  45. const struct stv06xx_sensor stv06xx_sensor_st6422 = {
  46. .name = "ST6422",
  47. .init = st6422_init,
  48. .probe = st6422_probe,
  49. .start = st6422_start,
  50. .stop = st6422_stop,
  51. .disconnect = st6422_disconnect,
  52. };
  53. #endif