drivers/usb/host/ehci-pci.c
Source file repositories/reference/linux-study-clean/drivers/usb/host/ehci-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/host/ehci-pci.c- Extension
.c- Size
- 12640 bytes
- Lines
- 447
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/pci.hlinux/usb.hlinux/usb/hcd.hehci.hpci-quirks.h
Detected Declarations
function is_intel_quark_x1000function is_bypassed_idfunction ehci_pci_reinitfunction ehci_pci_setupfunction dev_warnfunction ehci_pci_resumefunction ehci_pci_probefunction ehci_pci_removefunction ehci_pci_initfunction ehci_pci_cleanupmodule init ehci_pci_init
Annotated Snippet
static struct pci_driver ehci_pci_driver = {
.name = hcd_name,
.id_table = pci_ids,
.probe = ehci_pci_probe,
.remove = ehci_pci_remove,
.shutdown = usb_hcd_pci_shutdown,
.driver = {
#ifdef CONFIG_PM
.pm = &usb_hcd_pci_pm_ops,
#endif
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
},
};
static int __init ehci_pci_init(void)
{
if (usb_disabled())
return -ENODEV;
ehci_init_driver(&ehci_pci_hc_driver, &pci_overrides);
/* Entries for the PCI suspend/resume callbacks are special */
ehci_pci_hc_driver.pci_suspend = ehci_suspend;
ehci_pci_hc_driver.pci_resume = ehci_pci_resume;
return pci_register_driver(&ehci_pci_driver);
}
module_init(ehci_pci_init);
static void __exit ehci_pci_cleanup(void)
{
pci_unregister_driver(&ehci_pci_driver);
}
module_exit(ehci_pci_cleanup);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_AUTHOR("David Brownell");
MODULE_AUTHOR("Alan Stern");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/usb.h`, `linux/usb/hcd.h`, `ehci.h`, `pci-quirks.h`.
- Detected declarations: `function is_intel_quark_x1000`, `function is_bypassed_id`, `function ehci_pci_reinit`, `function ehci_pci_setup`, `function dev_warn`, `function ehci_pci_resume`, `function ehci_pci_probe`, `function ehci_pci_remove`, `function ehci_pci_init`, `function ehci_pci_cleanup`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: pattern implementation candidate.
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.