linux/drivers/media/pci/tw68/tw68-reg.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  tw68-reg.h - TW68xx register offsets
 *
 *  Much of this code is derived from the cx88 and sa7134 drivers, which
 *  were in turn derived from the bt87x driver.  The original work was by
 *  Gerd Knorr; more recently the code was enhanced by Mauro Carvalho Chehab,
 *  Hans Verkuil, Andy Walls and many others.  Their work is gratefully
 *  acknowledged.  Full credit goes to them - any problems within this code
 *  are mine.
 *
 *  Copyright (C) William M. Brack
 *
 *  Refactored and updated to the latest v4l core frameworks:
 *
 *  Copyright (C) 2014 Hans Verkuil <[email protected]>
*/

#ifndef _TW68_REG_H_
#define _TW68_REG_H_

/* ---------------------------------------------------------------------- */
#define TW68_DMAC
#define TW68_DMAP_SA
#define TW68_DMAP_EXE
#define TW68_DMAP_PP
#define TW68_VBIC
#define TW68_SBUSC
#define TW68_SBUSSD
#define TW68_INTSTAT
#define TW68_INTMASK
#define TW68_GPIOC
#define TW68_GPOE
#define TW68_TESTREG
#define TW68_SBUSRD
#define TW68_SBUS_TRIG
#define TW68_CAP_CTL
#define TW68_SUBSYS
#define TW68_I2C_RST
#define TW68_VBIINST
/* define bits in FIFO and DMAP Control reg */
#define TW68_DMAP_EN
#define TW68_FIFO_EN
/* define the Interrupt Status Register bits */
#define TW68_SBDONE
#define TW68_DMAPI
#define TW68_GPINT
#define TW68_FFOF
#define TW68_FDMIS
#define TW68_DMAPERR
#define TW68_PABORT
#define TW68_SBDONE2
#define TW68_SBERR2
#define TW68_PPERR
#define TW68_FFERR
#define TW68_DET50
#define TW68_FLOCK
#define TW68_CCVALID
#define TW68_VLOCK
#define TW68_FIELD
#define TW68_SLOCK
#define TW68_HLOCK
#define TW68_VDLOSS
#define TW68_SBERR
/* define the i2c control register bits */
#define TW68_SBMODE
#define TW68_WREN
#define TW68_SSCLK
#define TW68_SSDAT
#define TW68_SBCLK
#define TW68_WDLEN
#define TW68_RDLEN
#define TW68_SBRW
#define TW68_SBDEV

#define TW68_SBMODE_B
#define TW68_WREN_B
#define TW68_SSCLK_B
#define TW68_SSDAT_B
#define TW68_SBRW_B

#define TW68_GPDATA
#define TW68_STATUS1
#define TW68_INFORM
#define TW68_OPFORM
#define TW68_HSYNC
#define TW68_ACNTL
#define TW68_CROP_HI
#define TW68_VDELAY_LO
#define TW68_VACTIVE_LO
#define TW68_HDELAY_LO
#define TW68_HACTIVE_LO
#define TW68_CNTRL1
#define TW68_VSCALE_LO
#define TW68_SCALE_HI
#define TW68_HSCALE_LO
#define TW68_BRIGHT
#define TW68_CONTRAST
#define TW68_SHARPNESS
#define TW68_SAT_U
#define TW68_SAT_V
#define TW68_HUE
#define TW68_SHARP2
#define TW68_VSHARP
#define TW68_CORING
#define TW68_VBICNTL
#define TW68_CNTRL2
#define TW68_CC_DATA
#define TW68_SDT
#define TW68_SDTR
#define TW68_RESERV2
#define TW68_RESERV3
#define TW68_CLMPG
#define TW68_IAGC
#define TW68_AGCGAIN
#define TW68_PEAKWT
#define TW68_CLMPL
#define TW68_SYNCT
#define TW68_MISSCNT
#define TW68_PCLAMP
#define TW68_VCNTL1
#define TW68_VCNTL2
#define TW68_CKILL
#define TW68_COMB
#define TW68_LDLY
#define TW68_MISC1
#define TW68_LOOP
#define TW68_MISC2
#define TW68_MVSN
#define TW68_STATUS2
#define TW68_HFREF
#define TW68_CLMD
#define TW68_IDCNTL
#define TW68_CLCNTL1

/* Audio */
#define TW68_ACKI1
#define TW68_ACKI2
#define TW68_ACKI3
#define TW68_ACKN1
#define TW68_ACKN2
#define TW68_ACKN3
#define TW68_SDIV
#define TW68_LRDIV
#define TW68_ACCNTL

#define TW68_VSCTL
#define TW68_CHROMAGVAL

#define TW68_F2CROP_HI
#define TW68_F2VDELAY_LO
#define TW68_F2VACTIVE_LO
#define TW68_F2HDELAY_LO
#define TW68_F2HACTIVE_LO
#define TW68_F2CNT
#define TW68_F2VSCALE_LO
#define TW68_F2SCALE_HI
#define TW68_F2HSCALE_LO

#define RISC_INT_BIT
#define RISC_SYNCO
#define RISC_SYNCE
#define RISC_JUMP
#define RISC_LINESTART
#define RISC_INLINE

#define VideoFormatNTSC
#define VideoFormatNTSCJapan
#define VideoFormatPALBDGHI
#define VideoFormatSECAM
#define VideoFormatNTSC443
#define VideoFormatPALM
#define VideoFormatPALN
#define VideoFormatPALNC
#define VideoFormatPAL60
#define VideoFormatAuto

#define ColorFormatRGB32
#define ColorFormatRGB24
#define ColorFormatRGB16
#define ColorFormatRGB15
#define ColorFormatYUY2
#define ColorFormatBSWAP
#define ColorFormatWSWAP
#define ColorFormatGamma
#endif