drivers/media/pci/cx23885/altera-ci.h
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx23885/altera-ci.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx23885/altera-ci.h- Extension
.h- Size
- 2120 bytes
- Lines
- 86
- 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 altera_ci_configfunction altera_ci_initfunction altera_ci_releasefunction altera_ci_irqfunction altera_ci_tuner_resetfunction altera_hw_filt_initfunction altera_hw_filt_releasefunction altera_pid_feed_control
Annotated Snippet
struct altera_ci_config {
void *dev;/* main dev, for example cx23885_dev */
void *adapter;/* for CI to connect to */
struct dvb_demux *demux;/* for hardware PID filter to connect to */
int (*fpga_rw) (void *dev, int ad_rg, int val, int rw);
};
#if IS_REACHABLE(CONFIG_MEDIA_ALTERA_CI)
extern int altera_ci_init(struct altera_ci_config *config, int ci_nr);
extern void altera_ci_release(void *dev, int ci_nr);
extern int altera_ci_irq(void *dev);
extern int altera_ci_tuner_reset(void *dev, int ci_nr);
#else
static inline int altera_ci_init(struct altera_ci_config *config, int ci_nr)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
return 0;
}
static inline void altera_ci_release(void *dev, int ci_nr)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
}
static inline int altera_ci_irq(void *dev)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
return 0;
}
static inline int altera_ci_tuner_reset(void *dev, int ci_nr)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
return 0;
}
#endif
#if 0
static inline int altera_hw_filt_init(struct altera_ci_config *config,
int hw_filt_nr)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
return 0;
}
static inline void altera_hw_filt_release(void *dev, int filt_nr)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
}
static inline int altera_pid_feed_control(void *dev, int filt_nr,
struct dvb_demux_feed *dvbdmxfeed, int onoff)
{
pr_warn("%s: driver disabled by Kconfig\n", __func__);
return 0;
}
#endif /* CONFIG_MEDIA_ALTERA_CI */
#endif /* __ALTERA_CI_H */
Annotation
- Detected declarations: `struct altera_ci_config`, `function altera_ci_init`, `function altera_ci_release`, `function altera_ci_irq`, `function altera_ci_tuner_reset`, `function altera_hw_filt_init`, `function altera_hw_filt_release`, `function altera_pid_feed_control`.
- 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.