drivers/media/dvb-frontends/lgdt3306a.h
Source file repositories/reference/linux-study-clean/drivers/media/dvb-frontends/lgdt3306a.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/dvb-frontends/lgdt3306a.h- Extension
.h- Size
- 1676 bytes
- Lines
- 70
- 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
linux/i2c.hmedia/dvb_frontend.h
Detected Declarations
struct lgdt3306a_configenum lgdt3306a_mpeg_modeenum lgdt3306a_tp_clock_edgeenum lgdt3306a_tp_valid_polarity
Annotated Snippet
struct lgdt3306a_config {
u8 i2c_addr;
/* user defined IF frequency in KHz */
u16 qam_if_khz;
u16 vsb_if_khz;
/* disable i2c repeater - 0:repeater enabled 1:repeater disabled */
unsigned int deny_i2c_rptr:1;
/* spectral inversion - 0:disabled 1:enabled */
unsigned int spectral_inversion:1;
enum lgdt3306a_mpeg_mode mpeg_mode;
enum lgdt3306a_tp_clock_edge tpclk_edge;
enum lgdt3306a_tp_valid_polarity tpvalid_polarity;
/* demod clock freq in MHz; 24 or 25 supported */
int xtalMHz;
/* returned by driver if using i2c bus multiplexing */
struct dvb_frontend **fe;
struct i2c_adapter **i2c_adapter;
};
#if IS_REACHABLE(CONFIG_DVB_LGDT3306A)
struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
struct i2c_adapter *i2c_adap);
#else
static inline
struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
struct i2c_adapter *i2c_adap)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif /* CONFIG_DVB_LGDT3306A */
#endif /* _LGDT3306A_H_ */
Annotation
- Immediate include surface: `linux/i2c.h`, `media/dvb_frontend.h`.
- Detected declarations: `struct lgdt3306a_config`, `enum lgdt3306a_mpeg_mode`, `enum lgdt3306a_tp_clock_edge`, `enum lgdt3306a_tp_valid_polarity`.
- 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.