drivers/media/pci/cx88/cx88-i2c.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx88/cx88-i2c.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx88/cx88-i2c.c- Extension
.c- Size
- 4347 bytes
- Lines
- 174
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
cx88.hlinux/init.hlinux/io.hlinux/module.hmedia/v4l2-common.h
Detected Declarations
function cx8800_bit_setsclfunction cx8800_bit_setsdafunction cx8800_bit_getsclfunction cx8800_bit_getsdafunction do_i2c_scanfunction cx88_i2c_init
Annotated Snippet
switch (core->boardnr) {
case CX88_BOARD_HAUPPAUGE_HVR1300:
case CX88_BOARD_HAUPPAUGE_HVR3000:
case CX88_BOARD_HAUPPAUGE_HVR4000:
pr_info("i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n");
i2c_transfer(core->i2c_client.adapter, &tuner_msg, 1);
break;
default:
break;
}
if (i2c_scan)
do_i2c_scan(core->name, &core->i2c_client);
} else
pr_err("i2c register FAILED\n");
return core->i2c_rc;
}
Annotation
- Immediate include surface: `cx88.h`, `linux/init.h`, `linux/io.h`, `linux/module.h`, `media/v4l2-common.h`.
- Detected declarations: `function cx8800_bit_setscl`, `function cx8800_bit_setsda`, `function cx8800_bit_getscl`, `function cx8800_bit_getsda`, `function do_i2c_scan`, `function cx88_i2c_init`.
- 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.