linux/drivers/media/usb/gspca/m5602/m5602_ov7660.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Driver for the ov7660 sensor
 *
 * Copyright (C) 2009 Erik Andrén
 * Copyright (C) 2007 Ilyes Gouta. Based on the m5603x Linux Driver Project.
 * Copyright (C) 2005 m5603x Linux Driver Project <[email protected]>
 *
 * Portions of code to USB interface and ALi driver software,
 * Copyright (c) 2006 Willem Duinker
 * v4l2 interface modeled after the V4L2 driver
 * for SN9C10x PC Camera Controllers
 */

#ifndef M5602_OV7660_H_
#define M5602_OV7660_H_

#include "m5602_sensor.h"

#define OV7660_GAIN
#define OV7660_BLUE_GAIN
#define OV7660_RED_GAIN
#define OV7660_VREF
#define OV7660_COM1
#define OV7660_BAVE
#define OV7660_GEAVE
#define OV7660_AECHH
#define OV7660_RAVE
#define OV7660_COM2
#define OV7660_PID
#define OV7660_VER
#define OV7660_COM3
#define OV7660_COM4
#define OV7660_COM5
#define OV7660_COM6
#define OV7660_AECH
#define OV7660_CLKRC
#define OV7660_COM7
#define OV7660_COM8
#define OV7660_COM9
#define OV7660_COM10
#define OV7660_RSVD16
#define OV7660_HSTART
#define OV7660_HSTOP
#define OV7660_VSTART
#define OV7660_VSTOP
#define OV7660_PSHFT
#define OV7660_MIDH
#define OV7660_MIDL
#define OV7660_MVFP
#define OV7660_LAEC
#define OV7660_BOS
#define OV7660_GBOS
#define OV7660_GROS
#define OV7660_ROS
#define OV7660_AEW
#define OV7660_AEB
#define OV7660_VPT
#define OV7660_BBIAS
#define OV7660_GbBIAS
#define OV7660_RSVD29
#define OV7660_RBIAS
#define OV7660_HREF
#define OV7660_ADC
#define OV7660_OFON
#define OV7660_TSLB
#define OV7660_COM12
#define OV7660_COM13
#define OV7660_LCC1
#define OV7660_LCC2
#define OV7660_LCC3
#define OV7660_LCC4
#define OV7660_LCC5
#define OV7660_HV
#define OV7660_RSVDA1

#define OV7660_DEFAULT_GAIN
#define OV7660_DEFAULT_RED_GAIN
#define OV7660_DEFAULT_BLUE_GAIN
#define OV7660_DEFAULT_SATURATION
#define OV7660_DEFAULT_EXPOSURE

/* Kernel module parameters */
extern int force_sensor;
extern bool dump_sensor;

int ov7660_probe(struct sd *sd);
int ov7660_init(struct sd *sd);
int ov7660_init_controls(struct sd *sd);
int ov7660_start(struct sd *sd);
int ov7660_stop(struct sd *sd);
void ov7660_disconnect(struct sd *sd);

static const struct m5602_sensor ov7660 =;
#endif