drivers/mmc/host/toshsd.c
Source file repositories/reference/linux-study-clean/drivers/mmc/host/toshsd.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mmc/host/toshsd.c- Extension
.c- Size
- 17656 bytes
- Lines
- 704
- Domain
- Driver Families
- Bucket
- drivers/mmc
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/device.hlinux/module.hlinux/pci.hlinux/scatterlist.hlinux/interrupt.hlinux/io.hlinux/pm.hlinux/pm_runtime.hlinux/mmc/host.hlinux/mmc/mmc.htoshsd.h
Detected Declarations
function toshsd_initfunction __toshsd_set_iosfunction toshsd_set_ledfunction toshsd_finish_requestfunction toshsd_thread_irqfunction toshsd_cmd_irqfunction toshsd_data_end_irqfunction toshsd_irqfunction toshsd_start_cmdfunction toshsd_start_datafunction toshsd_requestfunction toshsd_set_iosfunction toshsd_get_rofunction toshsd_get_cdfunction toshsd_powerdownfunction toshsd_pm_suspendfunction toshsd_pm_resumefunction toshsd_probefunction toshsd_remove
Annotated Snippet
static struct pci_driver toshsd_driver = {
.name = DRIVER_NAME,
.id_table = pci_ids,
.probe = toshsd_probe,
.remove = toshsd_remove,
.driver.pm = pm_sleep_ptr(&toshsd_pm_ops),
};
module_pci_driver(toshsd_driver);
MODULE_AUTHOR("Ondrej Zary, Richard Betts");
MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/device.h`, `linux/module.h`, `linux/pci.h`, `linux/scatterlist.h`, `linux/interrupt.h`, `linux/io.h`, `linux/pm.h`.
- Detected declarations: `function toshsd_init`, `function __toshsd_set_ios`, `function toshsd_set_led`, `function toshsd_finish_request`, `function toshsd_thread_irq`, `function toshsd_cmd_irq`, `function toshsd_data_end_irq`, `function toshsd_irq`, `function toshsd_start_cmd`, `function toshsd_start_data`.
- Atlas domain: Driver Families / drivers/mmc.
- 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.