drivers/media/usb/cx231xx/cx231xx-reg.h
Source file repositories/reference/linux-study-clean/drivers/media/usb/cx231xx/cx231xx-reg.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/usb/cx231xx/cx231xx-reg.h- Extension
.h- Size
- 66798 bytes
- Lines
- 1553
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
cx231xx-reg.h - driver for Conexant Cx23100/101/102
USB video capture devices
Copyright (C) 2008 <srinivasa.deevi at conexant dot com>
*/
#ifndef _CX231XX_REG_H
#define _CX231XX_REG_H
/*****************************************************************************
* VBI codes *
*****************************************************************************/
#define SAV_ACTIVE_VIDEO_FIELD1 0x80
#define EAV_ACTIVE_VIDEO_FIELD1 0x90
#define SAV_ACTIVE_VIDEO_FIELD2 0xc0
#define EAV_ACTIVE_VIDEO_FIELD2 0xd0
#define SAV_VBLANK_FIELD1 0xa0
#define EAV_VBLANK_FIELD1 0xb0
#define SAV_VBLANK_FIELD2 0xe0
#define EAV_VBLANK_FIELD2 0xf0
#define SAV_VBI_FIELD1 0x20
#define EAV_VBI_FIELD1 0x30
#define SAV_VBI_FIELD2 0x60
#define EAV_VBI_FIELD2 0x70
/*****************************************************************************/
/* Audio ADC Registers */
#define CH_PWR_CTRL1 0x0000000e
#define CH_PWR_CTRL2 0x0000000f
/*****************************************************************************/
#define HOST_REG1 0x000
#define FLD_FORCE_CHIP_SEL 0x80
#define FLD_AUTO_INC_DIS 0x20
#define FLD_PREFETCH_EN 0x10
/* Reserved [2:3] */
#define FLD_DIGITAL_PWR_DN 0x02
#define FLD_SLEEP 0x01
/*****************************************************************************/
#define HOST_REG2 0x001
/*****************************************************************************/
#define HOST_REG3 0x002
/*****************************************************************************/
/* added for polaris */
#define GPIO_PIN_CTL0 0x3
#define GPIO_PIN_CTL1 0x4
#define GPIO_PIN_CTL2 0x5
#define GPIO_PIN_CTL3 0x6
#define TS1_PIN_CTL0 0x7
#define TS1_PIN_CTL1 0x8
/*****************************************************************************/
#define FLD_CLK_IN_EN 0x80
#define FLD_XTAL_CTRL 0x70
#define FLD_BB_CLK_MODE 0x0C
#define FLD_REF_DIV_PLL 0x02
#define FLD_REF_SEL_PLL1 0x01
/*****************************************************************************/
#define CHIP_CTRL 0x100
/* Reserved [27] */
/* Reserved [31:21] */
#define FLD_CHIP_ACFG_DIS 0x00100000
/* Reserved [19] */
#define FLD_DUAL_MODE_ADC2 0x00040000
#define FLD_SIF_EN 0x00020000
#define FLD_SOFT_RST 0x00010000
#define FLD_DEVICE_ID 0x0000ffff
/*****************************************************************************/
#define AFE_CTRL 0x104
#define AFE_CTRL_C2HH_SRC_CTRL 0x104
#define FLD_DIF_OUT_SEL 0xc0000000
#define FLD_AUX_PLL_CLK_ALT_SEL 0x3c000000
#define FLD_UV_ORDER_MODE 0x02000000
#define FLD_FUNC_MODE 0x01800000
#define FLD_ROT1_PHASE_CTL 0x007f8000
#define FLD_AUD_IN_SEL 0x00004000
#define FLD_LUMA_IN_SEL 0x00002000
#define FLD_CHROMA_IN_SEL 0x00001000
Annotation
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.