drivers/media/tuners/e4000_priv.h
Source file repositories/reference/linux-study-clean/drivers/media/tuners/e4000_priv.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/tuners/e4000_priv.h- Extension
.h- Size
- 4717 bytes
- Lines
- 220
- 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
e4000.hlinux/math64.hmedia/v4l2-ctrls.hmedia/v4l2-subdev.hlinux/regmap.h
Detected Declarations
struct e4000_devstruct e4000_pllstruct e4000_lna_filterstruct e4000_bandstruct e4000_if_filterstruct e4000_if_gain
Annotated Snippet
struct e4000_dev {
struct i2c_client *client;
struct regmap *regmap;
u32 clk;
struct dvb_frontend *fe;
struct v4l2_subdev sd;
bool active;
unsigned int f_frequency;
unsigned int f_bandwidth;
/* Controls */
struct v4l2_ctrl_handler hdl;
struct v4l2_ctrl *bandwidth_auto;
struct v4l2_ctrl *bandwidth;
struct v4l2_ctrl *lna_gain_auto;
struct v4l2_ctrl *lna_gain;
struct v4l2_ctrl *mixer_gain_auto;
struct v4l2_ctrl *mixer_gain;
struct v4l2_ctrl *if_gain_auto;
struct v4l2_ctrl *if_gain;
struct v4l2_ctrl *pll_lock;
};
struct e4000_pll {
u32 freq;
u8 div_out_reg;
u8 div_out;
};
static const struct e4000_pll e4000_pll_lut[] = {
/* VCO min VCO max */
{ 72400000, 0x0f, 48 }, /* .......... 3475200000 */
{ 81200000, 0x0e, 40 }, /* 2896000000 3248000000 */
{ 108300000, 0x0d, 32 }, /* 2598400000 3465600000 */
{ 162500000, 0x0c, 24 }, /* 2599200000 3900000000 */
{ 216600000, 0x0b, 16 }, /* 2600000000 3465600000 */
{ 325000000, 0x0a, 12 }, /* 2599200000 3900000000 */
{ 350000000, 0x09, 8 }, /* 2600000000 2800000000 */
{ 432000000, 0x03, 8 }, /* 2800000000 3456000000 */
{ 667000000, 0x02, 6 }, /* 2592000000 4002000000 */
{ 1200000000, 0x01, 4 }, /* 2668000000 4800000000 */
{ 0xffffffff, 0x00, 2 }, /* 2400000000 .......... */
};
struct e4000_lna_filter {
u32 freq;
u8 val;
};
static const struct e4000_lna_filter e400_lna_filter_lut[] = {
{ 370000000, 0 },
{ 392500000, 1 },
{ 415000000, 2 },
{ 437500000, 3 },
{ 462500000, 4 },
{ 490000000, 5 },
{ 522500000, 6 },
{ 557500000, 7 },
{ 595000000, 8 },
{ 642500000, 9 },
{ 695000000, 10 },
{ 740000000, 11 },
{ 800000000, 12 },
{ 865000000, 13 },
{ 930000000, 14 },
{ 1000000000, 15 },
{ 1310000000, 0 },
{ 1340000000, 1 },
{ 1385000000, 2 },
{ 1427500000, 3 },
{ 1452500000, 4 },
{ 1475000000, 5 },
{ 1510000000, 6 },
{ 1545000000, 7 },
{ 1575000000, 8 },
{ 1615000000, 9 },
{ 1650000000, 10 },
{ 1670000000, 11 },
{ 1690000000, 12 },
{ 1710000000, 13 },
{ 1735000000, 14 },
{ 0xffffffff, 15 },
};
struct e4000_band {
u32 freq;
u8 reg07_val;
u8 reg78_val;
};
Annotation
- Immediate include surface: `e4000.h`, `linux/math64.h`, `media/v4l2-ctrls.h`, `media/v4l2-subdev.h`, `linux/regmap.h`.
- Detected declarations: `struct e4000_dev`, `struct e4000_pll`, `struct e4000_lna_filter`, `struct e4000_band`, `struct e4000_if_filter`, `struct e4000_if_gain`.
- 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.