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

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Driver for the s5k4aa 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_S5K4AA_H_
#define M5602_S5K4AA_H_

#include <linux/dmi.h>

#include "m5602_sensor.h"

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

#define S5K4AA_PAGE_MAP

#define S5K4AA_PAGE_MAP_0
#define S5K4AA_PAGE_MAP_1
#define S5K4AA_PAGE_MAP_2

/* Sensor register definitions for page 0x02 */
#define S5K4AA_READ_MODE
#define S5K4AA_ROWSTART_HI
#define S5K4AA_ROWSTART_LO
#define S5K4AA_COLSTART_HI
#define S5K4AA_COLSTART_LO
#define S5K4AA_WINDOW_HEIGHT_HI
#define S5K4AA_WINDOW_HEIGHT_LO
#define S5K4AA_WINDOW_WIDTH_HI
#define S5K4AA_WINDOW_WIDTH_LO
#define S5K4AA_GLOBAL_GAIN__
/* sync lost, if too low, reduces frame rate if too high */
#define S5K4AA_H_BLANK_HI__
#define S5K4AA_H_BLANK_LO__
#define S5K4AA_EXPOSURE_HI
#define S5K4AA_EXPOSURE_LO
#define S5K4AA_BRIGHTNESS
#define S5K4AA_GAIN
#define S5K4AA_NOISE_SUPP

#define S5K4AA_RM_ROW_SKIP_4X
#define S5K4AA_RM_ROW_SKIP_2X
#define S5K4AA_RM_COL_SKIP_4X
#define S5K4AA_RM_COL_SKIP_2X
#define S5K4AA_RM_H_FLIP
#define S5K4AA_RM_V_FLIP

#define S5K4AA_DEFAULT_GAIN
#define S5K4AA_DEFAULT_BRIGHTNESS

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

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

int s5k4aa_probe(struct sd *sd);
int s5k4aa_init(struct sd *sd);
int s5k4aa_init_controls(struct sd *sd);
int s5k4aa_start(struct sd *sd);
void s5k4aa_disconnect(struct sd *sd);

static const struct m5602_sensor s5k4aa =;

#endif