drivers/media/pci/smipcie/smipcie-main.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/smipcie/smipcie-main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/smipcie/smipcie-main.c- Extension
.c- Size
- 29510 bytes
- Lines
- 1125
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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
smipcie.hm88ds3103.hts2020.hm88rs6000t.hsi2168.hsi2157.h
Detected Declarations
function smi_hw_initfunction smi_i2c_cfgfunction smi_i2c_setsdafunction smi_i2c_setsclfunction smi_i2c_getsdafunction smi_i2c_getsclfunction smi_i2c0_setsdafunction smi_i2c0_setsclfunction smi_i2c0_getsdafunction smi_i2c0_getsclfunction smi_i2c1_setsdafunction smi_i2c1_setsclfunction smi_i2c1_getsdafunction smi_i2c1_getsclfunction smi_i2c_initfunction smi_i2c_exitfunction smi_read_eepromfunction smi_port_disableInterruptfunction smi_port_enableInterruptfunction smi_port_clearInterruptfunction smi_dma_xferfunction smi_port_dma_freefunction smi_port_initfunction smi_port_exitfunction smi_port_irqfunction smi_irq_handlerfunction smi_del_i2c_clientfunction smi_dvbsky_m88ds3103_fe_attachfunction smi_dvbsky_m88rs6000_fe_attachfunction smi_dvbsky_sit2_fe_attachfunction smi_fe_initfunction smi_fe_exitfunction my_dvb_dmx_ts_card_initfunction my_dvb_dmxdev_ts_card_initfunction smi_config_DMAfunction smi_start_feedfunction smi_stop_feedfunction smi_dvb_initfunction smi_dvb_exitfunction smi_port_attachfunction smi_port_detachfunction smi_probefunction smi_remove
Annotated Snippet
static struct pci_driver smipcie_driver = {
.name = "SMI PCIe driver",
.id_table = smi_id_table,
.probe = smi_probe,
.remove = smi_remove,
};
module_pci_driver(smipcie_driver);
MODULE_AUTHOR("Max nibble <nibble.max@gmail.com>");
MODULE_DESCRIPTION("SMI PCIe driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `smipcie.h`, `m88ds3103.h`, `ts2020.h`, `m88rs6000t.h`, `si2168.h`, `si2157.h`.
- Detected declarations: `function smi_hw_init`, `function smi_i2c_cfg`, `function smi_i2c_setsda`, `function smi_i2c_setscl`, `function smi_i2c_getsda`, `function smi_i2c_getscl`, `function smi_i2c0_setsda`, `function smi_i2c0_setscl`, `function smi_i2c0_getsda`, `function smi_i2c0_getscl`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: pattern 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.