drivers/usb/host/ohci-at91.c
Source file repositories/reference/linux-study-clean/drivers/usb/host/ohci-at91.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/host/ohci-at91.c- Extension
.c- Size
- 18319 bytes
- Lines
- 729
- Domain
- Driver Families
- Bucket
- drivers/usb
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/arm-smccc.hlinux/clk.hlinux/dma-mapping.hlinux/gpio/consumer.hlinux/platform_device.hlinux/platform_data/atmel.hlinux/io.hlinux/kernel.hlinux/module.hlinux/mfd/syscon.hlinux/of.hlinux/regmap.hlinux/usb.hlinux/usb/hcd.hsoc/at91/atmel-sfr.hohci.h
Detected Declarations
struct at91_usbh_datastruct ohci_at91_privfunction at91_start_clockfunction at91_stop_clockfunction at91_start_hcfunction at91_stop_hcfunction at91_dt_suspend_smcfunction startfunction usb_hcd_at91_probefunction ohci_at91_usb_set_powerfunction ohci_at91_usb_get_powerfunction ohci_at91_hub_status_datafunction at91_for_each_portfunction ohci_at91_port_suspendfunction ohci_at91_hub_controlfunction ohci_hcd_at91_overcurrent_irqfunction ohci_hcd_at91_drv_probefunction at91_for_each_portfunction at91_for_each_portfunction ohci_hcd_at91_drv_removefunction ohci_hcd_at91_drv_suspendfunction ohci_hcd_at91_drv_resumefunction ohci_at91_initfunction ohci_at91_cleanupmodule init ohci_at91_init
Annotated Snippet
module_init(ohci_at91_init);
static void __exit ohci_at91_cleanup(void)
{
platform_driver_unregister(&ohci_hcd_at91_driver);
}
module_exit(ohci_at91_cleanup);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:at91_ohci");
Annotation
- Immediate include surface: `linux/arm-smccc.h`, `linux/clk.h`, `linux/dma-mapping.h`, `linux/gpio/consumer.h`, `linux/platform_device.h`, `linux/platform_data/atmel.h`, `linux/io.h`, `linux/kernel.h`.
- Detected declarations: `struct at91_usbh_data`, `struct ohci_at91_priv`, `function at91_start_clock`, `function at91_stop_clock`, `function at91_start_hc`, `function at91_stop_hc`, `function at91_dt_suspend_smc`, `function start`, `function usb_hcd_at91_probe`, `function ohci_at91_usb_set_power`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: integration 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.