mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:00:52 +07:00
c942fddf87
Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [graeme] [gregory] [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema] [hk] [hemahk]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1105 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
77 lines
2.3 KiB
C
77 lines
2.3 KiB
C
/* 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 <hdegoede@redhat.com>
|
|
*
|
|
* Based on the v4l1 se401 driver which is:
|
|
*
|
|
* Copyright (c) 2000 Jeroen B. Vreeken (pe1rxq@amsat.org)
|
|
*/
|
|
|
|
#define SE401_REQ_GET_CAMERA_DESCRIPTOR 0x06
|
|
#define SE401_REQ_START_CONTINUOUS_CAPTURE 0x41
|
|
#define SE401_REQ_STOP_CONTINUOUS_CAPTURE 0x42
|
|
#define SE401_REQ_CAPTURE_FRAME 0x43
|
|
#define SE401_REQ_GET_BRT 0x44
|
|
#define SE401_REQ_SET_BRT 0x45
|
|
#define SE401_REQ_GET_WIDTH 0x4c
|
|
#define SE401_REQ_SET_WIDTH 0x4d
|
|
#define SE401_REQ_GET_HEIGHT 0x4e
|
|
#define SE401_REQ_SET_HEIGHT 0x4f
|
|
#define SE401_REQ_GET_OUTPUT_MODE 0x50
|
|
#define SE401_REQ_SET_OUTPUT_MODE 0x51
|
|
#define SE401_REQ_GET_EXT_FEATURE 0x52
|
|
#define SE401_REQ_SET_EXT_FEATURE 0x53
|
|
#define SE401_REQ_CAMERA_POWER 0x56
|
|
#define SE401_REQ_LED_CONTROL 0x57
|
|
#define SE401_REQ_BIOS 0xff
|
|
|
|
#define SE401_BIOS_READ 0x07
|
|
|
|
#define SE401_FORMAT_BAYER 0x40
|
|
|
|
/* Hyundai hv7131b registers
|
|
7121 and 7141 should be the same (haven't really checked...) */
|
|
/* Mode registers: */
|
|
#define HV7131_REG_MODE_A 0x00
|
|
#define HV7131_REG_MODE_B 0x01
|
|
#define HV7131_REG_MODE_C 0x02
|
|
/* Frame registers: */
|
|
#define HV7131_REG_FRSU 0x10
|
|
#define HV7131_REG_FRSL 0x11
|
|
#define HV7131_REG_FCSU 0x12
|
|
#define HV7131_REG_FCSL 0x13
|
|
#define HV7131_REG_FWHU 0x14
|
|
#define HV7131_REG_FWHL 0x15
|
|
#define HV7131_REG_FWWU 0x16
|
|
#define HV7131_REG_FWWL 0x17
|
|
/* Timing registers: */
|
|
#define HV7131_REG_THBU 0x20
|
|
#define HV7131_REG_THBL 0x21
|
|
#define HV7131_REG_TVBU 0x22
|
|
#define HV7131_REG_TVBL 0x23
|
|
#define HV7131_REG_TITU 0x25
|
|
#define HV7131_REG_TITM 0x26
|
|
#define HV7131_REG_TITL 0x27
|
|
#define HV7131_REG_TMCD 0x28
|
|
/* Adjust Registers: */
|
|
#define HV7131_REG_ARLV 0x30
|
|
#define HV7131_REG_ARCG 0x31
|
|
#define HV7131_REG_AGCG 0x32
|
|
#define HV7131_REG_ABCG 0x33
|
|
#define HV7131_REG_APBV 0x34
|
|
#define HV7131_REG_ASLP 0x54
|
|
/* Offset Registers: */
|
|
#define HV7131_REG_OFSR 0x50
|
|
#define HV7131_REG_OFSG 0x51
|
|
#define HV7131_REG_OFSB 0x52
|
|
/* REset level statistics registers: */
|
|
#define HV7131_REG_LOREFNOH 0x57
|
|
#define HV7131_REG_LOREFNOL 0x58
|
|
#define HV7131_REG_HIREFNOH 0x59
|
|
#define HV7131_REG_HIREFNOL 0x5a
|
|
|
|
/* se401 registers */
|
|
#define SE401_OPERATINGMODE 0x2000
|