drivers/media/pci/cx23885/cx23885-core.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx23885/cx23885-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx23885/cx23885-core.c- Extension
.c- Size
- 64747 bytes
- Lines
- 2322
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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
cx23885.hlinux/init.hlinux/list.hlinux/module.hlinux/moduleparam.hlinux/kmod.hlinux/kernel.hlinux/pci.hlinux/slab.hlinux/interrupt.hlinux/delay.hasm/div64.hlinux/firmware.hcimax2.haltera-ci.hcx23888-ir.hcx23885-ir.hcx23885-av.hcx23885-input.h
Detected Declarations
function cx23885_irq_addfunction cx23885_irq_add_enablefunction cx23885_irq_enablefunction cx23885_irq_enable_allfunction cx23885_irq_disablefunction cx23885_irq_disable_allfunction cx23885_irq_removefunction cx23885_irq_get_maskfunction cx23885_risc_decodefunction cx23885_wakeupfunction cx23885_sram_channel_setupfunction cx23885_sram_channel_dumpfunction cx23885_risc_disasmfunction cx23885_clear_bridge_errorfunction cx23885_shutdownfunction cx23885_resetfunction cx23885_pci_quirksfunction get_resourcesfunction cx23885_init_tsportfunction cx23885_dev_checkrevisionfunction cx23885_dev_setupfunction cx23885_dev_unregisterfunction cx23885_risc_bufferfunction cx23885_risc_databufferfunction cx23885_risc_vbibufferfunction cx23885_free_bufferfunction cx23885_tsport_reg_dumpfunction cx23885_start_dmafunction cx23885_stop_dmafunction cx23885_buf_preparefunction cx23885_buf_queuefunction do_cancel_buffersfunction cx23885_cancel_buffersfunction cx23885_irq_417function cx23885_irq_tsfunction cx23885_irqfunction cx23885_v4l2_dev_notifyfunction cx23885_v4l2_dev_notify_initfunction encoder_on_portbfunction encoder_on_portcfunction configurationfunction cx23885_gpio_clearfunction cx23885_gpio_getfunction cx23885_gpio_enablefunction cx23885_does_need_dma_resetfunction cx23885_initdevfunction cx23885_finidevfunction cx23885_suspend
Annotated Snippet
static struct pci_driver cx23885_pci_driver = {
.name = "cx23885",
.id_table = cx23885_pci_tbl,
.probe = cx23885_initdev,
.remove = cx23885_finidev,
.driver.pm = &cx23885_pm_ops,
};
static int __init cx23885_init(void)
{
pr_info("cx23885 driver version %s loaded\n",
CX23885_VERSION);
return pci_register_driver(&cx23885_pci_driver);
}
static void __exit cx23885_fini(void)
{
pci_unregister_driver(&cx23885_pci_driver);
}
module_init(cx23885_init);
module_exit(cx23885_fini);
Annotation
- Immediate include surface: `cx23885.h`, `linux/init.h`, `linux/list.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/kmod.h`, `linux/kernel.h`, `linux/pci.h`.
- Detected declarations: `function cx23885_irq_add`, `function cx23885_irq_add_enable`, `function cx23885_irq_enable`, `function cx23885_irq_enable_all`, `function cx23885_irq_disable`, `function cx23885_irq_disable_all`, `function cx23885_irq_remove`, `function cx23885_irq_get_mask`, `function cx23885_risc_decode`, `function cx23885_wakeup`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.