drivers/gpu/drm/ast/ast_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/ast/ast_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/ast/ast_drv.c- Extension
.c- Size
- 14732 bytes
- Lines
- 617
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/aperture.hlinux/module.hlinux/of.hlinux/pci.hdrm/clients/drm_client_setup.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_fbdev_shmem.hdrm/drm_gem_shmem_helper.hdrm/drm_module.hdrm/drm_print.hdrm/drm_probe_helper.hast_drv.h
Detected Declarations
function __ast_selsegfunction __ast_rdseg32function __ast_wrseg32function __ast_mindwmfunction __ast_moutdwmfunction ast_mindwmfunction ast_moutdwmfunction ast_moutdwm_pollfunction ast_device_initfunction __ast_device_set_tx_chipfunction ast_is_vga_enabledfunction ast_enable_vgafunction ast_enable_mmio_releasefunction ast_enable_mmiofunction ast_open_keyfunction ast_detect_chipfunction ast_pci_probefunction ast_pci_removefunction ast_pci_shutdownfunction ast_drm_freezefunction ast_drm_thawfunction ast_drm_resumefunction ast_pm_suspendfunction ast_pm_resumefunction ast_pm_freezefunction ast_pm_thawfunction ast_pm_poweroff
Annotated Snippet
static struct pci_driver ast_pci_driver = {
.name = DRIVER_NAME,
.id_table = ast_pciidlist,
.probe = ast_pci_probe,
.remove = ast_pci_remove,
.shutdown = ast_pci_shutdown,
.driver.pm = &ast_pm_ops,
};
drm_module_pci_driver_if_modeset(ast_pci_driver, ast_modeset);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/module.h`, `linux/of.h`, `linux/pci.h`, `drm/clients/drm_client_setup.h`, `drm/drm_atomic_helper.h`, `drm/drm_drv.h`, `drm/drm_fbdev_shmem.h`.
- Detected declarations: `function __ast_selseg`, `function __ast_rdseg32`, `function __ast_wrseg32`, `function __ast_mindwm`, `function __ast_moutdwm`, `function ast_mindwm`, `function ast_moutdwm`, `function ast_moutdwm_poll`, `function ast_device_init`, `function __ast_device_set_tx_chip`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.