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

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Driver for the s5k83a sensor
 *
 * Copyright (C) 2008 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_S5K83A_H_
#define M5602_S5K83A_H_

#include "m5602_sensor.h"

#define S5K83A_FLIP
#define S5K83A_HFLIP_TUNE
#define S5K83A_VFLIP_TUNE
#define S5K83A_BRIGHTNESS
#define S5K83A_EXPOSURE
#define S5K83A_GAIN
#define S5K83A_PAGE_MAP

#define S5K83A_DEFAULT_GAIN
#define S5K83A_DEFAULT_BRIGHTNESS
#define S5K83A_DEFAULT_EXPOSURE
#define S5K83A_MAXIMUM_EXPOSURE
#define S5K83A_FLIP_MASK
#define S5K83A_GPIO_LED_MASK
#define S5K83A_GPIO_ROTATION_MASK

/*****************************************************************************/

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

int s5k83a_probe(struct sd *sd);
int s5k83a_init(struct sd *sd);
int s5k83a_init_controls(struct sd *sd);
int s5k83a_start(struct sd *sd);
int s5k83a_stop(struct sd *sd);
void s5k83a_disconnect(struct sd *sd);

static const struct m5602_sensor s5k83a =;
#endif