drivers/media/dvb-frontends/tda10071_priv.h
Source file repositories/reference/linux-study-clean/drivers/media/dvb-frontends/tda10071_priv.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/dvb-frontends/tda10071_priv.h- Extension
.h- Size
- 2674 bytes
- Lines
- 107
- 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
media/dvb_frontend.htda10071.hlinux/firmware.hlinux/regmap.h
Detected Declarations
struct tda10071_devstruct tda10071_reg_val_maskstruct tda10071_cmd
Annotated Snippet
struct tda10071_dev {
struct dvb_frontend fe;
struct i2c_client *client;
struct regmap *regmap;
struct mutex cmd_execute_mutex;
u32 clk;
u16 i2c_wr_max;
u8 ts_mode;
bool spec_inv;
u8 pll_multiplier;
u8 tuner_i2c_addr;
u8 meas_count;
u32 dvbv3_ber;
enum fe_status fe_status;
enum fe_delivery_system delivery_system;
bool warm; /* FW running */
u64 post_bit_error;
u64 block_error;
};
static struct tda10071_modcod {
enum fe_delivery_system delivery_system;
enum fe_modulation modulation;
enum fe_code_rate fec;
u8 val;
} TDA10071_MODCOD[] = {
/* NBC-QPSK */
{ SYS_DVBS2, QPSK, FEC_AUTO, 0x00 },
{ SYS_DVBS2, QPSK, FEC_1_2, 0x04 },
{ SYS_DVBS2, QPSK, FEC_3_5, 0x05 },
{ SYS_DVBS2, QPSK, FEC_2_3, 0x06 },
{ SYS_DVBS2, QPSK, FEC_3_4, 0x07 },
{ SYS_DVBS2, QPSK, FEC_4_5, 0x08 },
{ SYS_DVBS2, QPSK, FEC_5_6, 0x09 },
{ SYS_DVBS2, QPSK, FEC_8_9, 0x0a },
{ SYS_DVBS2, QPSK, FEC_9_10, 0x0b },
/* 8PSK */
{ SYS_DVBS2, PSK_8, FEC_AUTO, 0x00 },
{ SYS_DVBS2, PSK_8, FEC_3_5, 0x0c },
{ SYS_DVBS2, PSK_8, FEC_2_3, 0x0d },
{ SYS_DVBS2, PSK_8, FEC_3_4, 0x0e },
{ SYS_DVBS2, PSK_8, FEC_5_6, 0x0f },
{ SYS_DVBS2, PSK_8, FEC_8_9, 0x10 },
{ SYS_DVBS2, PSK_8, FEC_9_10, 0x11 },
/* QPSK */
{ SYS_DVBS, QPSK, FEC_AUTO, 0x2d },
{ SYS_DVBS, QPSK, FEC_1_2, 0x2e },
{ SYS_DVBS, QPSK, FEC_2_3, 0x2f },
{ SYS_DVBS, QPSK, FEC_3_4, 0x30 },
{ SYS_DVBS, QPSK, FEC_5_6, 0x31 },
{ SYS_DVBS, QPSK, FEC_7_8, 0x32 },
};
struct tda10071_reg_val_mask {
u8 reg;
u8 val;
u8 mask;
};
/* firmware filename */
#define TDA10071_FIRMWARE "dvb-fe-tda10071.fw"
/* firmware commands */
#define CMD_DEMOD_INIT 0x10
#define CMD_CHANGE_CHANNEL 0x11
#define CMD_MPEG_CONFIG 0x13
#define CMD_TUNER_INIT 0x15
#define CMD_GET_AGCACC 0x1a
#define CMD_LNB_CONFIG 0x20
#define CMD_LNB_SEND_DISEQC 0x21
#define CMD_LNB_SET_DC_LEVEL 0x22
#define CMD_LNB_PCB_CONFIG 0x23
#define CMD_LNB_SEND_TONEBURST 0x24
#define CMD_LNB_UPDATE_REPLY 0x25
#define CMD_GET_FW_VERSION 0x35
#define CMD_SET_SLEEP_MODE 0x36
#define CMD_BER_CONTROL 0x3e
#define CMD_BER_UPDATE_COUNTERS 0x3f
/* firmware command struct */
#define TDA10071_ARGLEN 30
struct tda10071_cmd {
u8 args[TDA10071_ARGLEN];
u8 len;
};
Annotation
- Immediate include surface: `media/dvb_frontend.h`, `tda10071.h`, `linux/firmware.h`, `linux/regmap.h`.
- Detected declarations: `struct tda10071_dev`, `struct tda10071_reg_val_mask`, `struct tda10071_cmd`.
- 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.