drivers/media/pci/tw68/tw68-reg.h
Source file repositories/reference/linux-study-clean/drivers/media/pci/tw68/tw68-reg.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/tw68/tw68-reg.h- Extension
.h- Size
- 5260 bytes
- Lines
- 187
- 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
#ifndef _TW68_REG_H_
#define _TW68_REG_H_
/* ---------------------------------------------------------------------- */
#define TW68_DMAC 0x000
#define TW68_DMAP_SA 0x004
#define TW68_DMAP_EXE 0x008
#define TW68_DMAP_PP 0x00c
#define TW68_VBIC 0x010
#define TW68_SBUSC 0x014
#define TW68_SBUSSD 0x018
#define TW68_INTSTAT 0x01C
#define TW68_INTMASK 0x020
#define TW68_GPIOC 0x024
#define TW68_GPOE 0x028
#define TW68_TESTREG 0x02C
#define TW68_SBUSRD 0x030
#define TW68_SBUS_TRIG 0x034
#define TW68_CAP_CTL 0x040
#define TW68_SUBSYS 0x054
#define TW68_I2C_RST 0x064
#define TW68_VBIINST 0x06C
/* define bits in FIFO and DMAP Control reg */
#define TW68_DMAP_EN (1 << 0)
#define TW68_FIFO_EN (1 << 1)
/* define the Interrupt Status Register bits */
#define TW68_SBDONE (1 << 0)
#define TW68_DMAPI (1 << 1)
#define TW68_GPINT (1 << 2)
#define TW68_FFOF (1 << 3)
#define TW68_FDMIS (1 << 4)
#define TW68_DMAPERR (1 << 5)
#define TW68_PABORT (1 << 6)
#define TW68_SBDONE2 (1 << 12)
#define TW68_SBERR2 (1 << 13)
#define TW68_PPERR (1 << 14)
#define TW68_FFERR (1 << 15)
#define TW68_DET50 (1 << 16)
#define TW68_FLOCK (1 << 17)
#define TW68_CCVALID (1 << 18)
#define TW68_VLOCK (1 << 19)
#define TW68_FIELD (1 << 20)
#define TW68_SLOCK (1 << 21)
#define TW68_HLOCK (1 << 22)
#define TW68_VDLOSS (1 << 23)
#define TW68_SBERR (1 << 24)
/* define the i2c control register bits */
#define TW68_SBMODE (0)
#define TW68_WREN (1)
#define TW68_SSCLK (6)
#define TW68_SSDAT (7)
#define TW68_SBCLK (8)
#define TW68_WDLEN (16)
#define TW68_RDLEN (20)
#define TW68_SBRW (24)
#define TW68_SBDEV (25)
#define TW68_SBMODE_B (1 << TW68_SBMODE)
#define TW68_WREN_B (1 << TW68_WREN)
#define TW68_SSCLK_B (1 << TW68_SSCLK)
#define TW68_SSDAT_B (1 << TW68_SSDAT)
#define TW68_SBRW_B (1 << TW68_SBRW)
#define TW68_GPDATA 0x100
#define TW68_STATUS1 0x204
#define TW68_INFORM 0x208
#define TW68_OPFORM 0x20C
#define TW68_HSYNC 0x210
#define TW68_ACNTL 0x218
#define TW68_CROP_HI 0x21C
#define TW68_VDELAY_LO 0x220
#define TW68_VACTIVE_LO 0x224
#define TW68_HDELAY_LO 0x228
#define TW68_HACTIVE_LO 0x22C
#define TW68_CNTRL1 0x230
#define TW68_VSCALE_LO 0x234
#define TW68_SCALE_HI 0x238
#define TW68_HSCALE_LO 0x23C
#define TW68_BRIGHT 0x240
#define TW68_CONTRAST 0x244
#define TW68_SHARPNESS 0x248
#define TW68_SAT_U 0x24C
#define TW68_SAT_V 0x250
#define TW68_HUE 0x254
#define TW68_SHARP2 0x258
#define TW68_VSHARP 0x25C
#define TW68_CORING 0x260
#define TW68_VBICNTL 0x264
#define TW68_CNTRL2 0x268
#define TW68_CC_DATA 0x26C
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.