18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Support for the sensor part which is integrated (I think) into the
48c2ecf20Sopenharmony_ci * st6422 stv06xx alike bridge, as its integrated there are no i2c writes
58c2ecf20Sopenharmony_ci * but instead direct bridge writes.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (c) 2009 Hans de Goede <hdegoede@redhat.com>
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * Strongly based on qc-usb-messenger, which is:
108c2ecf20Sopenharmony_ci * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
118c2ecf20Sopenharmony_ci *		      Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
128c2ecf20Sopenharmony_ci * Copyright (c) 2002, 2003 Tuukka Toivonen
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifndef STV06XX_ST6422_H_
168c2ecf20Sopenharmony_ci#define STV06XX_ST6422_H_
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#include "stv06xx_sensor.h"
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cistatic int st6422_probe(struct sd *sd);
218c2ecf20Sopenharmony_cistatic int st6422_start(struct sd *sd);
228c2ecf20Sopenharmony_cistatic int st6422_init(struct sd *sd);
238c2ecf20Sopenharmony_cistatic int st6422_init_controls(struct sd *sd);
248c2ecf20Sopenharmony_cistatic int st6422_stop(struct sd *sd);
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciconst struct stv06xx_sensor stv06xx_sensor_st6422 = {
278c2ecf20Sopenharmony_ci	.name = "ST6422",
288c2ecf20Sopenharmony_ci	/* No known way to lower framerate in case of less bandwidth */
298c2ecf20Sopenharmony_ci	.min_packet_size = { 300, 847 },
308c2ecf20Sopenharmony_ci	.max_packet_size = { 300, 847 },
318c2ecf20Sopenharmony_ci	.init = st6422_init,
328c2ecf20Sopenharmony_ci	.init_controls = st6422_init_controls,
338c2ecf20Sopenharmony_ci	.probe = st6422_probe,
348c2ecf20Sopenharmony_ci	.start = st6422_start,
358c2ecf20Sopenharmony_ci	.stop = st6422_stop,
368c2ecf20Sopenharmony_ci};
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#endif
39