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

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * GSPCA Endpoints (formerly known as AOX) se401 USB Camera sub Driver
 *
 * Copyright (C) 2011 Hans de Goede <[email protected]>
 *
 * Based on the v4l1 se401 driver which is:
 *
 * Copyright (c) 2000 Jeroen B. Vreeken ([email protected])
 */

#define SE401_REQ_GET_CAMERA_DESCRIPTOR
#define SE401_REQ_START_CONTINUOUS_CAPTURE
#define SE401_REQ_STOP_CONTINUOUS_CAPTURE
#define SE401_REQ_CAPTURE_FRAME
#define SE401_REQ_GET_BRT
#define SE401_REQ_SET_BRT
#define SE401_REQ_GET_WIDTH
#define SE401_REQ_SET_WIDTH
#define SE401_REQ_GET_HEIGHT
#define SE401_REQ_SET_HEIGHT
#define SE401_REQ_GET_OUTPUT_MODE
#define SE401_REQ_SET_OUTPUT_MODE
#define SE401_REQ_GET_EXT_FEATURE
#define SE401_REQ_SET_EXT_FEATURE
#define SE401_REQ_CAMERA_POWER
#define SE401_REQ_LED_CONTROL
#define SE401_REQ_BIOS

#define SE401_BIOS_READ

#define SE401_FORMAT_BAYER

/* Hyundai hv7131b registers
   7121 and 7141 should be the same (haven't really checked...) */
/* Mode registers: */
#define HV7131_REG_MODE_A
#define HV7131_REG_MODE_B
#define HV7131_REG_MODE_C
/* Frame registers: */
#define HV7131_REG_FRSU
#define HV7131_REG_FRSL
#define HV7131_REG_FCSU
#define HV7131_REG_FCSL
#define HV7131_REG_FWHU
#define HV7131_REG_FWHL
#define HV7131_REG_FWWU
#define HV7131_REG_FWWL
/* Timing registers: */
#define HV7131_REG_THBU
#define HV7131_REG_THBL
#define HV7131_REG_TVBU
#define HV7131_REG_TVBL
#define HV7131_REG_TITU
#define HV7131_REG_TITM
#define HV7131_REG_TITL
#define HV7131_REG_TMCD
/* Adjust Registers: */
#define HV7131_REG_ARLV
#define HV7131_REG_ARCG
#define HV7131_REG_AGCG
#define HV7131_REG_ABCG
#define HV7131_REG_APBV
#define HV7131_REG_ASLP
/* Offset Registers: */
#define HV7131_REG_OFSR
#define HV7131_REG_OFSG
#define HV7131_REG_OFSB
/* REset level statistics registers: */
#define HV7131_REG_LOREFNOH
#define HV7131_REG_LOREFNOL
#define HV7131_REG_HIREFNOH
#define HV7131_REG_HIREFNOL

/* se401 registers */
#define SE401_OPERATINGMODE