drivers/media/i2c/tvp5150_reg.h
Source file repositories/reference/linux-study-clean/drivers/media/i2c/tvp5150_reg.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/i2c/tvp5150_reg.h- Extension
.h- Size
- 6909 bytes
- Lines
- 153
- 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
#define TVP5150_VD_IN_SRC_SEL_1 0x00 /* Video input source selection #1 */
#define TVP5150_ANAL_CHL_CTL 0x01 /* Analog channel controls */
#define TVP5150_OP_MODE_CTL 0x02 /* Operation mode controls */
#define TVP5150_MISC_CTL 0x03 /* Miscellaneous controls */
#define TVP5150_MISC_CTL_VBLK_GPCL BIT(7)
#define TVP5150_MISC_CTL_GPCL BIT(6)
#define TVP5150_MISC_CTL_INTREQ_OE BIT(5)
#define TVP5150_MISC_CTL_HVLK BIT(4)
#define TVP5150_MISC_CTL_YCBCR_OE BIT(3)
#define TVP5150_MISC_CTL_SYNC_OE BIT(2)
#define TVP5150_MISC_CTL_VBLANK BIT(1)
#define TVP5150_MISC_CTL_CLOCK_OE BIT(0)
#define TVP5150_AUTOSW_MSK 0x04 /* Autoswitch mask: TVP5150A / TVP5150AM */
/* Reserved 05h */
#define TVP5150_COLOR_KIL_THSH_CTL 0x06 /* Color killer threshold control */
#define TVP5150_LUMA_PROC_CTL_1 0x07 /* Luminance processing control #1 */
#define TVP5150_LUMA_PROC_CTL_2 0x08 /* Luminance processing control #2 */
#define TVP5150_BRIGHT_CTL 0x09 /* Brightness control */
#define TVP5150_SATURATION_CTL 0x0a /* Color saturation control */
#define TVP5150_HUE_CTL 0x0b /* Hue control */
#define TVP5150_CONTRAST_CTL 0x0c /* Contrast control */
#define TVP5150_DATA_RATE_SEL 0x0d /* Outputs and data rates select */
#define TVP5150_LUMA_PROC_CTL_3 0x0e /* Luminance processing control #3 */
#define TVP5150_CONF_SHARED_PIN 0x0f /* Configuration shared pins */
/* Reserved 10h */
#define TVP5150_ACT_VD_CROP_ST_MSB 0x11 /* Active video cropping start MSB */
#define TVP5150_ACT_VD_CROP_ST_LSB 0x12 /* Active video cropping start LSB */
#define TVP5150_ACT_VD_CROP_STP_MSB 0x13 /* Active video cropping stop MSB */
#define TVP5150_ACT_VD_CROP_STP_LSB 0x14 /* Active video cropping stop LSB */
#define TVP5150_GENLOCK 0x15 /* Genlock/RTC */
#define TVP5150_HORIZ_SYNC_START 0x16 /* Horizontal sync start */
/* Reserved 17h */
#define TVP5150_VERT_BLANKING_START 0x18 /* Vertical blanking start */
#define TVP5150_VERT_BLANKING_STOP 0x19 /* Vertical blanking stop */
#define TVP5150_CHROMA_PROC_CTL_1 0x1a /* Chrominance processing control #1 */
#define TVP5150_CHROMA_PROC_CTL_2 0x1b /* Chrominance processing control #2 */
#define TVP5150_INT_RESET_REG_B 0x1c /* Interrupt reset register B */
#define TVP5150_INT_ENABLE_REG_B 0x1d /* Interrupt enable register B */
#define TVP5150_INTT_CONFIG_REG_B 0x1e /* Interrupt configuration register B */
/* Reserved 1Fh-27h */
#define VIDEO_STD_MASK (0x07 >> 1)
#define TVP5150_VIDEO_STD 0x28 /* Video standard */
#define VIDEO_STD_AUTO_SWITCH_BIT 0x00
#define VIDEO_STD_NTSC_MJ_BIT 0x02
#define VIDEO_STD_PAL_BDGHIN_BIT 0x04
#define VIDEO_STD_PAL_M_BIT 0x06
#define VIDEO_STD_PAL_COMBINATION_N_BIT 0x08
#define VIDEO_STD_NTSC_4_43_BIT 0x0a
#define VIDEO_STD_SECAM_BIT 0x0c
#define VIDEO_STD_NTSC_MJ_BIT_AS 0x01
#define VIDEO_STD_PAL_BDGHIN_BIT_AS 0x03
#define VIDEO_STD_PAL_M_BIT_AS 0x05
#define VIDEO_STD_PAL_COMBINATION_N_BIT_AS 0x07
#define VIDEO_STD_NTSC_4_43_BIT_AS 0x09
#define VIDEO_STD_SECAM_BIT_AS 0x0b
/* Reserved 29h-2bh */
#define TVP5150_CB_GAIN_FACT 0x2c /* Cb gain factor */
#define TVP5150_CR_GAIN_FACTOR 0x2d /* Cr gain factor */
#define TVP5150_MACROVISION_ON_CTR 0x2e /* Macrovision on counter */
#define TVP5150_MACROVISION_OFF_CTR 0x2f /* Macrovision off counter */
#define TVP5150_REV_SELECT 0x30 /* revision select (TVP5150AM1 only) */
/* Reserved 31h-7Fh */
#define TVP5150_MSB_DEV_ID 0x80 /* MSB of device ID */
#define TVP5150_LSB_DEV_ID 0x81 /* LSB of device ID */
#define TVP5150_ROM_MAJOR_VER 0x82 /* ROM major version */
#define TVP5150_ROM_MINOR_VER 0x83 /* ROM minor version */
#define TVP5150_VERT_LN_COUNT_MSB 0x84 /* Vertical line count MSB */
#define TVP5150_VERT_LN_COUNT_LSB 0x85 /* Vertical line count LSB */
#define TVP5150_INT_STATUS_REG_B 0x86 /* Interrupt status register B */
#define TVP5150_INT_ACTIVE_REG_B 0x87 /* Interrupt active register B */
#define TVP5150_STATUS_REG_1 0x88 /* Status register #1 */
#define TVP5150_STATUS_REG_2 0x89 /* Status register #2 */
#define TVP5150_STATUS_REG_3 0x8a /* Status register #3 */
#define TVP5150_STATUS_REG_4 0x8b /* Status register #4 */
#define TVP5150_STATUS_REG_5 0x8c /* Status register #5 */
/* Reserved 8Dh-8Fh */
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.