drivers/usb/host/xhci-tegra.c
Source file repositories/reference/linux-study-clean/drivers/usb/host/xhci-tegra.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/host/xhci-tegra.c- Extension
.c- Size
- 73135 bytes
- Lines
- 2877
- 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.
- 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/clk.hlinux/delay.hlinux/dma-mapping.hlinux/firmware.hlinux/interrupt.hlinux/iopoll.hlinux/kernel.hlinux/module.hlinux/of.hlinux/of_irq.hlinux/phy/phy.hlinux/phy/tegra/xusb.hlinux/platform_device.hlinux/usb/ch9.hlinux/pm.hlinux/pm_domain.hlinux/pm_runtime.hlinux/regulator/consumer.hlinux/reset.hlinux/slab.hlinux/string_choices.hlinux/usb/otg.hlinux/usb/phy.hlinux/usb/role.hsoc/tegra/pmc.hxhci.h
Detected Declarations
struct tegra_xusb_fw_headerstruct tegra_xusb_phy_typestruct tegra_xusb_mbox_regsstruct tegra_xusb_context_socstruct tegra_xusbstruct tegra_xusb_soc_opsstruct tegra_xusb_socstruct tegra_xusb_contextstruct tegra_xusbstruct tegra_xusb_mbox_msgenum tegra_xusb_mbox_cmdfunction fpci_readlfunction fpci_writelfunction ipfs_readlfunction ipfs_writelfunction bar2_readlfunction bar2_writelfunction csb_readlfunction csb_writelfunction fpci_csb_readlfunction fpci_csb_writelfunction bar2_csb_readlfunction bar2_csb_writelfunction tegra_xusb_set_ss_clkfunction extract_fieldfunction tegra_xusb_mbox_packfunction tegra_xusb_mbox_unpackfunction tegra_xusb_mbox_cmd_requires_ackfunction tegra_xusb_mbox_sendfunction tegra_xusb_mbox_irqfunction tegra_xusb_mbox_handlefunction for_each_set_bitfunction for_each_set_bitfunction tegra_xusb_mbox_threadfunction tegra_xusb_configfunction tegra_xusb_clk_enablefunction tegra_xusb_clk_disablefunction tegra_xusb_phy_enablefunction tegra_xusb_phy_disablefunction tegra_xusb_init_contextfunction tegra_xusb_init_contextfunction tegra_xusb_request_firmwarefunction tegra_xusb_wait_for_falconfunction tegra_xusb_load_firmware_romfunction tegra_xusb_read_firmware_headerfunction tegra_xusb_init_ifr_firmwarefunction tegra_xusb_load_firmwarefunction tegra_xusb_powerdomain_remove
Annotated Snippet
module_init(tegra_xusb_init);
static void __exit tegra_xusb_exit(void)
{
platform_driver_unregister(&tegra_xusb_driver);
}
module_exit(tegra_xusb_exit);
MODULE_AUTHOR("Andrew Bresticker <abrestic@chromium.org>");
MODULE_DESCRIPTION("NVIDIA Tegra XUSB xHCI host-controller driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/delay.h`, `linux/dma-mapping.h`, `linux/firmware.h`, `linux/interrupt.h`, `linux/iopoll.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `struct tegra_xusb_fw_header`, `struct tegra_xusb_phy_type`, `struct tegra_xusb_mbox_regs`, `struct tegra_xusb_context_soc`, `struct tegra_xusb`, `struct tegra_xusb_soc_ops`, `struct tegra_xusb_soc`, `struct tegra_xusb_context`, `struct tegra_xusb`, `struct tegra_xusb_mbox_msg`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: integration 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.