drivers/media/i2c/ov02e10.c
Source file repositories/reference/linux-study-clean/drivers/media/i2c/ov02e10.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/i2c/ov02e10.c- Extension
.c- Size
- 24329 bytes
- Lines
- 957
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/acpi.hlinux/clk.hlinux/delay.hlinux/gpio/consumer.hlinux/i2c.hlinux/module.hlinux/pm_runtime.hlinux/regmap.hmedia/v4l2-cci.hmedia/v4l2-ctrls.hmedia/v4l2-device.hmedia/v4l2-fwnode.h
Detected Declarations
struct reg_sequence_liststruct ov02e10_modestruct ov02e10function to_pixel_ratefunction to_pixels_per_linefunction ov02e10_test_patternfunction ov02e10_set_ctrlfunction ov02e10_init_controlsfunction ov02e10_update_pad_formatfunction ov02e10_set_stream_modefunction ov02e10_enable_streamsfunction ov02e10_disable_streamsfunction ov02e10_get_pm_resourcesfunction ov02e10_power_offfunction ov02e10_power_onfunction ov02e10_set_formatfunction ov02e10_get_formatfunction ov02e10_enum_mbus_codefunction ov02e10_enum_frame_sizefunction ov02e10_init_statefunction ov02e10_identify_modulefunction ov02e10_check_hwcfgfunction ov02e10_removefunction ov02e10_probe
Annotated Snippet
struct reg_sequence_list {
u32 num_regs;
const struct reg_sequence *regs;
};
struct ov02e10_mode {
/* Frame width in pixels */
u32 width;
/* Frame height in pixels */
u32 height;
/* Horizontal timining size */
u32 hts;
/* Default vertical timing */
u32 vts_def;
/* Min vertical timining size */
u32 vts_min;
/* Sensor register settings for this resolution */
const struct reg_sequence_list reg_list;
};
static const struct reg_sequence mode_1928x1088_30fps_2lane[] = {
{ 0xfd, 0x00 },
{ 0x20, 0x00 },
{ 0x20, 0x0b },
{ 0x21, 0x02 },
{ 0x10, 0x23 },
{ 0xc5, 0x04 },
{ 0x21, 0x00 },
{ 0x14, 0x96 },
{ 0x17, 0x01 },
{ 0xfd, 0x01 },
{ 0x03, 0x00 },
{ 0x04, 0x04 },
{ 0x05, 0x04 },
{ 0x06, 0x62 },
{ 0x07, 0x01 },
{ 0x22, 0x80 },
{ 0x24, 0xff },
{ 0x40, 0xc6 },
{ 0x41, 0x18 },
{ 0x45, 0x3f },
{ 0x48, 0x0c },
{ 0x4c, 0x08 },
{ 0x51, 0x12 },
{ 0x52, 0x10 },
{ 0x57, 0x98 },
{ 0x59, 0x06 },
{ 0x5a, 0x04 },
{ 0x5c, 0x38 },
{ 0x5e, 0x10 },
{ 0x67, 0x11 },
{ 0x7b, 0x04 },
{ 0x81, 0x12 },
{ 0x90, 0x51 },
{ 0x91, 0x09 },
{ 0x92, 0x21 },
{ 0x93, 0x28 },
{ 0x95, 0x54 },
{ 0x9d, 0x20 },
{ 0x9e, 0x04 },
{ 0xb1, 0x9a },
{ 0xb2, 0x86 },
{ 0xb6, 0x3f },
{ 0xb9, 0x30 },
{ 0xc1, 0x01 },
{ 0xc5, 0xa0 },
{ 0xc6, 0x73 },
{ 0xc7, 0x04 },
{ 0xc8, 0x25 },
{ 0xc9, 0x05 },
{ 0xca, 0x28 },
{ 0xcb, 0x00 },
{ 0xcf, 0x16 },
{ 0xd2, 0xd0 },
{ 0xd7, 0x3f },
{ 0xd8, 0x40 },
{ 0xd9, 0x40 },
{ 0xda, 0x44 },
{ 0xdb, 0x3d },
{ 0xdc, 0x3d },
{ 0xdd, 0x3d },
{ 0xde, 0x3d },
{ 0xdf, 0xf0 },
{ 0xea, 0x0f },
{ 0xeb, 0x04 },
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/clk.h`, `linux/delay.h`, `linux/gpio/consumer.h`, `linux/i2c.h`, `linux/module.h`, `linux/pm_runtime.h`, `linux/regmap.h`.
- Detected declarations: `struct reg_sequence_list`, `struct ov02e10_mode`, `struct ov02e10`, `function to_pixel_rate`, `function to_pixels_per_line`, `function ov02e10_test_pattern`, `function ov02e10_set_ctrl`, `function ov02e10_init_controls`, `function ov02e10_update_pad_format`, `function ov02e10_set_stream_mode`.
- 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.