drivers/media/i2c/ov02c10.c
Source file repositories/reference/linux-study-clean/drivers/media/i2c/ov02c10.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/i2c/ov02c10.c- Extension
.c- Size
- 25254 bytes
- Lines
- 1017
- 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 ov02c10_modestruct ov02c10function ov02c10_test_patternfunction ov02c10_set_ctrlfunction ov02c10_init_controlsfunction ov02c10_update_pad_formatfunction ov02c10_enable_streamsfunction ov02c10_disable_streamsfunction ov02c10_get_pm_resourcesfunction ov02c10_power_offfunction ov02c10_power_onfunction ov02c10_set_formatfunction ov02c10_enum_mbus_codefunction ov02c10_enum_frame_sizefunction ov02c10_init_statefunction ov02c10_identify_modulefunction ov02c10_check_hwcfgfunction ov02c10_removefunction ov02c10_probe
Annotated Snippet
struct ov02c10_mode {
/* Frame width in pixels */
u32 width;
/* Frame height in pixels */
u32 height;
/* Horizontal timining size */
u32 hts;
/* Min vertical timining size */
u32 vts_min;
/* Sensor register settings for this resolution */
const struct reg_sequence *reg_sequence;
const int sequence_length;
/* Sensor register settings for 1 or 2 lane config */
const struct reg_sequence *lane_settings[2];
const int lane_settings_length[2];
};
static const struct reg_sequence sensor_1928x1092_30fps_setting[] = {
{0x0301, 0x08},
{0x0303, 0x06},
{0x0304, 0x01},
{0x0305, 0xe0},
{0x0313, 0x40},
{0x031c, 0x4f},
{0x3020, 0x97},
{0x3022, 0x01},
{0x3026, 0xb4},
{0x303b, 0x00},
{0x303c, 0x4f},
{0x303d, 0xe6},
{0x303e, 0x00},
{0x303f, 0x03},
{0x3021, 0x23},
{0x3501, 0x04},
{0x3502, 0x6c},
{0x3504, 0x0c},
{0x3507, 0x00},
{0x3508, 0x08},
{0x3509, 0x00},
{0x350a, 0x01},
{0x350b, 0x00},
{0x350c, 0x41},
{0x3600, 0x84},
{0x3603, 0x08},
{0x3610, 0x57},
{0x3611, 0x1b},
{0x3613, 0x78},
{0x3623, 0x00},
{0x3632, 0xa0},
{0x3642, 0xe8},
{0x364c, 0x70},
{0x365f, 0x0f},
{0x3708, 0x30},
{0x3714, 0x24},
{0x3725, 0x02},
{0x3737, 0x08},
{0x3739, 0x28},
{0x3749, 0x32},
{0x374a, 0x32},
{0x374b, 0x32},
{0x374c, 0x32},
{0x374d, 0x81},
{0x374e, 0x81},
{0x374f, 0x81},
{0x3752, 0x36},
{0x3753, 0x36},
{0x3754, 0x36},
{0x3761, 0x00},
{0x376c, 0x81},
{0x3774, 0x18},
{0x3776, 0x08},
{0x377c, 0x81},
{0x377d, 0x81},
{0x377e, 0x81},
{0x37a0, 0x44},
{0x37a6, 0x44},
{0x37aa, 0x0d},
{0x37ae, 0x00},
{0x37cb, 0x03},
{0x37cc, 0x01},
{0x37d8, 0x02},
{0x37d9, 0x10},
{0x37e1, 0x10},
{0x37e2, 0x18},
{0x37e3, 0x08},
{0x37e4, 0x08},
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 ov02c10_mode`, `struct ov02c10`, `function ov02c10_test_pattern`, `function ov02c10_set_ctrl`, `function ov02c10_init_controls`, `function ov02c10_update_pad_format`, `function ov02c10_enable_streams`, `function ov02c10_disable_streams`, `function ov02c10_get_pm_resources`, `function ov02c10_power_off`.
- 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.