drivers/usb/host/xhci-mtk.c
Source file repositories/reference/linux-study-clean/drivers/usb/host/xhci-mtk.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/host/xhci-mtk.c- Extension
.c- Size
- 22182 bytes
- Lines
- 879
- 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.
- 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/bitfield.hlinux/dma-mapping.hlinux/iopoll.hlinux/kernel.hlinux/mfd/syscon.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/pm_runtime.hlinux/pm_wakeirq.hlinux/regmap.hlinux/regulator/consumer.hlinux/reset.hxhci.hxhci-mtk.h
Detected Declarations
enum ssusb_uwk_versfunction xhci_mtk_set_frame_intervalfunction xhci_mtk_rxfifo_depth_setfunction xhci_mtk_init_quirkfunction xhci_mtk_host_enablefunction xhci_mtk_host_disablefunction xhci_mtk_ssusb_configfunction usb_wakeup_ip_sleep_setfunction usb_wakeup_of_property_parsefunction usb_wakeup_setfunction xhci_mtk_clks_getfunction xhci_mtk_vregs_getfunction xhci_mtk_quirksfunction xhci_mtk_setupfunction xhci_mtk_probefunction xhci_mtk_removefunction xhci_mtk_suspendfunction xhci_mtk_resumefunction xhci_mtk_runtime_suspendfunction xhci_mtk_runtime_resumefunction xhci_mtk_initfunction xhci_mtk_exitmodule init xhci_mtk_init
Annotated Snippet
module_init(xhci_mtk_init);
static void __exit xhci_mtk_exit(void)
{
platform_driver_unregister(&mtk_xhci_driver);
}
module_exit(xhci_mtk_exit);
MODULE_AUTHOR("Chunfeng Yun <chunfeng.yun@mediatek.com>");
MODULE_DESCRIPTION("MediaTek xHCI Host Controller Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/dma-mapping.h`, `linux/iopoll.h`, `linux/kernel.h`, `linux/mfd/syscon.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`.
- Detected declarations: `enum ssusb_uwk_vers`, `function xhci_mtk_set_frame_interval`, `function xhci_mtk_rxfifo_depth_set`, `function xhci_mtk_init_quirk`, `function xhci_mtk_host_enable`, `function xhci_mtk_host_disable`, `function xhci_mtk_ssusb_config`, `function usb_wakeup_ip_sleep_set`, `function usb_wakeup_of_property_parse`, `function usb_wakeup_set`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: integration 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.