drivers/gpu/host1x/dev.c
Source file repositories/reference/linux-study-clean/drivers/gpu/host1x/dev.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/host1x/dev.c- Extension
.c- Size
- 24297 bytes
- Lines
- 832
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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/clk.hlinux/delay.hlinux/dma-mapping.hlinux/io.hlinux/list.hlinux/module.hlinux/of.hlinux/of_platform.hlinux/platform_device.hlinux/pm_runtime.hlinux/slab.hsoc/tegra/common.htrace/events/host1x.hasm/dma-iommu.hbus.hchannel.hcontext.hdebug.hdev.hintr.hhw/host1x01.hhw/host1x02.hhw/host1x04.hhw/host1x05.hhw/host1x06.hhw/host1x07.hhw/host1x08.h
Detected Declarations
function Copyrightfunction host1x_hypervisor_writelfunction host1x_hypervisor_readlfunction host1x_sync_writelfunction host1x_sync_readlfunction host1x_sync_readqfunction host1x_ch_writelfunction host1x_ch_readlfunction host1x_setup_virtualization_tablesfunction host1x_wants_iommufunction Tegra186function host1x_iommu_initfunction host1x_iommu_exitfunction host1x_get_resetsfunction host1x_probefunction host1x_removefunction host1x_runtime_suspendfunction host1x_runtime_resumefunction tegra_host1x_initfunction tegra_host1x_exitfunction host1x_get_dma_maskmodule init tegra_host1x_initexport host1x_get_dma_mask
Annotated Snippet
module_init(tegra_host1x_init);
static void __exit tegra_host1x_exit(void)
{
platform_unregister_drivers(drivers, ARRAY_SIZE(drivers));
bus_unregister(&host1x_bus_type);
}
module_exit(tegra_host1x_exit);
/**
* host1x_get_dma_mask() - query the supported DMA mask for host1x
* @host1x: host1x instance
*
* Note that this returns the supported DMA mask for host1x, which can be
* different from the applicable DMA mask under certain circumstances.
*/
u64 host1x_get_dma_mask(struct host1x *host1x)
{
return host1x->info->dma_mask;
}
EXPORT_SYMBOL(host1x_get_dma_mask);
MODULE_SOFTDEP("post: tegra-drm");
MODULE_AUTHOR("Thierry Reding <thierry.reding@avionic-design.de>");
MODULE_AUTHOR("Terje Bergstrom <tbergstrom@nvidia.com>");
MODULE_DESCRIPTION("Host1x driver for Tegra products");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/delay.h`, `linux/dma-mapping.h`, `linux/io.h`, `linux/list.h`, `linux/module.h`, `linux/of.h`, `linux/of_platform.h`.
- Detected declarations: `function Copyright`, `function host1x_hypervisor_writel`, `function host1x_hypervisor_readl`, `function host1x_sync_writel`, `function host1x_sync_readl`, `function host1x_sync_readq`, `function host1x_ch_writel`, `function host1x_ch_readl`, `function host1x_setup_virtualization_tables`, `function host1x_wants_iommu`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.