linux/drivers/media/usb/gspca/gl860/gl860.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/* GSPCA subdrivers for Genesys Logic webcams with the GL860 chip
 * Subdriver declarations
 *
 * 2009/10/14 Olivier LORIN <[email protected]>
 */
#ifndef GL860_DEV_H
#define GL860_DEV_H

#include "gspca.h"

#define MODULE_NAME
#define DRIVER_VERSION

#define ctrl_in
#define ctrl_out

#define ID_MI1320
#define ID_OV2640
#define ID_OV9655
#define ID_MI2020

#define _MI1320_
#define _MI2020_
#define _OV2640_
#define _OV9655_

#define IMAGE_640
#define IMAGE_800
#define IMAGE_1280
#define IMAGE_1600

struct sd_gl860 {};

/* Specific webcam descriptor */
struct sd {};

struct validx {};

struct idxdata {};

int fetch_validx(struct gspca_dev *gspca_dev, struct validx *tbl, int len);
int keep_on_fetching_validx(struct gspca_dev *gspca_dev, struct validx *tbl,
				int len, int n);
void fetch_idxdata(struct gspca_dev *gspca_dev, struct idxdata *tbl, int len);

int gl860_RTx(struct gspca_dev *gspca_dev,
			unsigned char pref, u32 req, u16 val, u16 index,
			s32 len, void *pdata);

void mi1320_init_settings(struct gspca_dev *);
void ov2640_init_settings(struct gspca_dev *);
void ov9655_init_settings(struct gspca_dev *);
void mi2020_init_settings(struct gspca_dev *);

#endif