drivers/media/dvb-frontends/stv0900_reg.h

Source file repositories/reference/linux-study-clean/drivers/media/dvb-frontends/stv0900_reg.h

File Facts

System
Linux kernel
Corpus path
drivers/media/dvb-frontends/stv0900_reg.h
Extension
.h
Size
106891 bytes
Lines
3971
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef STV0900_REG_H
#define STV0900_REG_H

extern s32 shiftx(s32 x, int demod, s32 shift);

#define REGx(x) shiftx(x, demod, 0x200)
#define FLDx(x) shiftx(x, demod, 0x2000000)

/*MID*/
#define R0900_MID 0xf100
#define F0900_MCHIP_IDENT 0xf10000f0
#define F0900_MRELEASE 0xf100000f

/*DACR1*/
#define R0900_DACR1 0xf113
#define F0900_DAC_MODE 0xf11300e0
#define F0900_DAC_VALUE1 0xf113000f

/*DACR2*/
#define R0900_DACR2 0xf114
#define F0900_DAC_VALUE0 0xf11400ff

/*OUTCFG*/
#define R0900_OUTCFG 0xf11c
#define F0900_OUTSERRS1_HZ 0xf11c0040
#define F0900_OUTSERRS2_HZ 0xf11c0020
#define F0900_OUTSERRS3_HZ 0xf11c0010
#define F0900_OUTPARRS3_HZ 0xf11c0008

/*IRQSTATUS3*/
#define R0900_IRQSTATUS3 0xf120
#define F0900_SPLL_LOCK 0xf1200020
#define F0900_SSTREAM_LCK_3 0xf1200010
#define F0900_SSTREAM_LCK_2 0xf1200008
#define F0900_SSTREAM_LCK_1 0xf1200004
#define F0900_SDVBS1_PRF_2 0xf1200002
#define F0900_SDVBS1_PRF_1 0xf1200001

/*IRQSTATUS2*/
#define R0900_IRQSTATUS2 0xf121
#define F0900_SSPY_ENDSIM_3 0xf1210080
#define F0900_SSPY_ENDSIM_2 0xf1210040
#define F0900_SSPY_ENDSIM_1 0xf1210020
#define F0900_SPKTDEL_ERROR_2 0xf1210010
#define F0900_SPKTDEL_LOCKB_2 0xf1210008
#define F0900_SPKTDEL_LOCK_2 0xf1210004
#define F0900_SPKTDEL_ERROR_1 0xf1210002
#define F0900_SPKTDEL_LOCKB_1 0xf1210001

/*IRQSTATUS1*/
#define R0900_IRQSTATUS1 0xf122
#define F0900_SPKTDEL_LOCK_1 0xf1220080
#define F0900_SDEMOD_LOCKB_2 0xf1220004
#define F0900_SDEMOD_LOCK_2 0xf1220002
#define F0900_SDEMOD_IRQ_2 0xf1220001

/*IRQSTATUS0*/
#define R0900_IRQSTATUS0 0xf123
#define F0900_SDEMOD_LOCKB_1 0xf1230080
#define F0900_SDEMOD_LOCK_1 0xf1230040
#define F0900_SDEMOD_IRQ_1 0xf1230020
#define F0900_SBCH_ERRFLAG 0xf1230010
#define F0900_SDISEQC2RX_IRQ 0xf1230008
#define F0900_SDISEQC2TX_IRQ 0xf1230004
#define F0900_SDISEQC1RX_IRQ 0xf1230002
#define F0900_SDISEQC1TX_IRQ 0xf1230001

/*IRQMASK3*/
#define R0900_IRQMASK3 0xf124
#define F0900_MPLL_LOCK 0xf1240020
#define F0900_MSTREAM_LCK_3 0xf1240010
#define F0900_MSTREAM_LCK_2 0xf1240008
#define F0900_MSTREAM_LCK_1 0xf1240004
#define F0900_MDVBS1_PRF_2 0xf1240002
#define F0900_MDVBS1_PRF_1 0xf1240001

/*IRQMASK2*/
#define R0900_IRQMASK2 0xf125
#define F0900_MSPY_ENDSIM_3 0xf1250080
#define F0900_MSPY_ENDSIM_2 0xf1250040
#define F0900_MSPY_ENDSIM_1 0xf1250020
#define F0900_MPKTDEL_ERROR_2 0xf1250010
#define F0900_MPKTDEL_LOCKB_2 0xf1250008
#define F0900_MPKTDEL_LOCK_2 0xf1250004
#define F0900_MPKTDEL_ERROR_1 0xf1250002
#define F0900_MPKTDEL_LOCKB_1 0xf1250001

/*IRQMASK1*/
#define R0900_IRQMASK1 0xf126
#define F0900_MPKTDEL_LOCK_1 0xf1260080

Annotation

Implementation Notes