drivers/media/i2c/ccs/ccs-quirk.h
Source file repositories/reference/linux-study-clean/drivers/media/i2c/ccs/ccs-quirk.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/i2c/ccs/ccs-quirk.h- Extension
.h- Size
- 2626 bytes
- Lines
- 80
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct ccs_sensorstruct ccs_quirkstruct ccs_reg_8
Annotated Snippet
struct ccs_quirk {
int (*limits)(struct ccs_sensor *sensor);
int (*post_poweron)(struct ccs_sensor *sensor);
int (*pre_streamon)(struct ccs_sensor *sensor);
int (*post_streamoff)(struct ccs_sensor *sensor);
unsigned long (*pll_flags)(struct ccs_sensor *sensor);
int (*init)(struct ccs_sensor *sensor);
int (*reg_access)(struct ccs_sensor *sensor, bool write, u32 *reg,
u32 *val);
unsigned long flags;
};
#define CCS_QUIRK_FLAG_8BIT_READ_ONLY (1 << 0)
struct ccs_reg_8 {
u16 reg;
u8 val;
};
#define CCS_MK_QUIRK_REG_8(_reg, _val) \
{ \
.reg = (u16)_reg, \
.val = _val, \
}
#define ccs_call_quirk(sensor, _quirk, ...) \
((sensor)->minfo.quirk && \
(sensor)->minfo.quirk->_quirk ? \
(sensor)->minfo.quirk->_quirk(sensor, ##__VA_ARGS__) : 0)
#define ccs_needs_quirk(sensor, _quirk) \
((sensor)->minfo.quirk ? \
(sensor)->minfo.quirk->flags & _quirk : 0)
extern const struct ccs_quirk smiapp_jt8ev1_quirk;
extern const struct ccs_quirk smiapp_imx125es_quirk;
extern const struct ccs_quirk smiapp_jt8ew9_quirk;
extern const struct ccs_quirk smiapp_tcm8500md_quirk;
#endif /* __CCS_QUIRK__ */
Annotation
- Detected declarations: `struct ccs_sensor`, `struct ccs_quirk`, `struct ccs_reg_8`.
- 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.