drivers/media/pci/ddbridge/ddbridge.h
Source file repositories/reference/linux-study-clean/drivers/media/pci/ddbridge/ddbridge.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/ddbridge/ddbridge.h- Extension
.h- Size
- 9969 bytes
- Lines
- 374
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/clk.hlinux/completion.hlinux/delay.hlinux/device.hlinux/dvb/ca.hlinux/gpio.hlinux/i2c.hlinux/init.hlinux/interrupt.hlinux/io.hlinux/kthread.hlinux/module.hlinux/mutex.hlinux/pci.hlinux/platform_device.hlinux/poll.hlinux/sched.hlinux/slab.hlinux/socket.hlinux/spi/spi.hlinux/swab.hlinux/timer.hlinux/types.hlinux/uaccess.hlinux/vmalloc.hlinux/workqueue.hasm/dma.hasm/irq.hmedia/dmxdev.hmedia/dvb_ca_en50221.hmedia/dvb_demux.hmedia/dvbdev.h
Detected Declarations
struct ddb_regsetstruct ddb_regmapstruct ddb_idsstruct ddb_infostruct ddbstruct ddb_portstruct ddb_dmastruct ddb_dvbstruct ddb_cistruct ddb_iostruct ddb_i2cstruct ddb_portstruct ddb_lnbstruct ddb_irqstruct ddb_linkstruct ddb
Annotated Snippet
struct ddb_regset {
u32 base;
u32 num;
u32 size;
};
struct ddb_regmap {
u32 irq_base_i2c;
u32 irq_base_idma;
u32 irq_base_odma;
const struct ddb_regset *i2c;
const struct ddb_regset *i2c_buf;
const struct ddb_regset *idma;
const struct ddb_regset *idma_buf;
const struct ddb_regset *odma;
const struct ddb_regset *odma_buf;
const struct ddb_regset *input;
const struct ddb_regset *output;
const struct ddb_regset *channel;
};
struct ddb_ids {
u16 vendor;
u16 device;
u16 subvendor;
u16 subdevice;
u32 hwid;
u32 regmapid;
u32 devid;
u32 mac;
};
struct ddb_info {
int type;
#define DDB_NONE 0
#define DDB_OCTOPUS 1
#define DDB_OCTOPUS_CI 2
#define DDB_OCTOPUS_MAX 5
#define DDB_OCTOPUS_MAX_CT 6
#define DDB_OCTOPUS_MCI 9
char *name;
u32 i2c_mask;
u32 board_control;
u32 board_control_2;
u8 port_num;
u8 led_num;
u8 fan_num;
u8 temp_num;
u8 temp_bus;
u8 con_clock; /* use a continuous clock */
u8 ts_quirks;
#define TS_QUIRK_SERIAL 1
#define TS_QUIRK_REVERSED 2
#define TS_QUIRK_ALT_OSC 8
u8 mci_ports;
u8 mci_type;
u32 tempmon_irq;
const struct ddb_regmap *regmap;
};
#define DMA_MAX_BUFS 32 /* hardware table limit */
struct ddb;
struct ddb_port;
struct ddb_dma {
void *io;
u32 regs;
u32 bufregs;
dma_addr_t pbuf[DMA_MAX_BUFS];
u8 *vbuf[DMA_MAX_BUFS];
u32 num;
u32 size;
u32 div;
u32 bufval;
struct work_struct work;
spinlock_t lock; /* DMA lock */
wait_queue_head_t wq;
int running;
u32 stat;
u32 ctrl;
u32 cbuf;
Annotation
- Immediate include surface: `linux/clk.h`, `linux/completion.h`, `linux/delay.h`, `linux/device.h`, `linux/dvb/ca.h`, `linux/gpio.h`, `linux/i2c.h`, `linux/init.h`.
- Detected declarations: `struct ddb_regset`, `struct ddb_regmap`, `struct ddb_ids`, `struct ddb_info`, `struct ddb`, `struct ddb_port`, `struct ddb_dma`, `struct ddb_dvb`, `struct ddb_ci`, `struct ddb_io`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.