drivers/rapidio/devices/tsi721.c
Source file repositories/reference/linux-study-clean/drivers/rapidio/devices/tsi721.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/rapidio/devices/tsi721.c- Extension
.c- Size
- 83666 bytes
- Lines
- 3039
- Domain
- Driver Families
- Bucket
- drivers/rapidio
- 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
linux/io.hlinux/errno.hlinux/init.hlinux/ioport.hlinux/kernel.hlinux/module.hlinux/pci.hlinux/rio.hlinux/rio_drv.hlinux/dma-mapping.hlinux/interrupt.hlinux/kfifo.hlinux/delay.htsi721.h
Detected Declarations
function tsi721_lcreadfunction tsi721_lcwritefunction transactionfunction tsi721_cread_dmafunction tsi721_cwrite_dmafunction tsi721_pw_handlerfunction tsi721_pw_dpcfunction tsi721_pw_enablefunction tsi721_dsendfunction tsi721_dbell_handlerfunction tsi721_db_dpcfunction list_for_each_entryfunction tsi721_irqhandlerfunction tsi721_interrupts_initfunction tsi721_omsg_msixfunction tsi721_imsg_msixfunction tsi721_srio_msixfunction tsi721_sr2pc_ch_msixfunction tsi721_request_msixfunction tsi721_enable_msixfunction tsi721_request_irqfunction tsi721_free_irqfunction tsi721_obw_allocfunction tsi721_map_outb_winfunction tsi721_unmap_outb_winfunction tsi721_init_pc2sr_mappingfunction tsi721_rio_map_inb_memfunction tsi721_rio_unmap_inb_memfunction list_for_each_entryfunction tsi721_init_sr2pc_mappingfunction tsi721_close_sr2pc_mappingfunction tsi721_port_write_initfunction tsi721_port_write_freefunction tsi721_doorbell_initfunction tsi721_doorbell_freefunction tsi721_bdma_maint_initfunction tsi721_bdma_maint_freefunction tsi721_imsg_interrupt_enablefunction tsi721_imsg_interrupt_disablefunction tsi721_omsg_interrupt_enablefunction tsi721_omsg_interrupt_disablefunction tsi721_add_outb_messagefunction tsi721_omsg_handlerfunction Descriptorfunction tsi721_open_outb_mboxfunction tsi721_close_outb_mboxfunction tsi721_imsg_handlerfunction tsi721_open_inb_mbox
Annotated Snippet
static struct pci_driver tsi721_driver = {
.name = "tsi721",
.id_table = tsi721_pci_tbl,
.probe = tsi721_probe,
.remove = tsi721_remove,
.shutdown = tsi721_shutdown,
};
module_pci_driver(tsi721_driver);
MODULE_DESCRIPTION("IDT Tsi721 PCIExpress-to-SRIO bridge driver");
MODULE_AUTHOR("Integrated Device Technology, Inc.");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/io.h`, `linux/errno.h`, `linux/init.h`, `linux/ioport.h`, `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/rio.h`.
- Detected declarations: `function tsi721_lcread`, `function tsi721_lcwrite`, `function transaction`, `function tsi721_cread_dma`, `function tsi721_cwrite_dma`, `function tsi721_pw_handler`, `function tsi721_pw_dpc`, `function tsi721_pw_enable`, `function tsi721_dsend`, `function tsi721_dbell_handler`.
- Atlas domain: Driver Families / drivers/rapidio.
- 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.