drivers/gpu/drm/verisilicon/vs_drm.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/verisilicon/vs_drm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/verisilicon/vs_drm.c- Extension
.c- Size
- 4321 bytes
- Lines
- 183
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- 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/dma-mapping.hlinux/platform_device.hlinux/module.hlinux/regmap.hlinux/console.hdrm/clients/drm_client_setup.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_dumb_buffers.hdrm/drm_fbdev_dma.hdrm/drm_gem_dma_helper.hdrm/drm_gem_framebuffer_helper.hdrm/drm_of.hdrm/drm_print.hdrm/drm_probe_helper.hdrm/drm_vblank.hvs_bridge.hvs_crtc.hvs_dc.hvs_dc_top_regs.hvs_drm.h
Detected Declarations
function Copyrightfunction vs_mode_config_initfunction vs_drm_initializefunction vs_drm_finalizefunction vs_drm_shutdown_handlerfunction vs_drm_handle_irq
Annotated Snippet
if (irqs & VSDC_TOP_IRQ_VSYNC(i)) {
irqs &= ~VSDC_TOP_IRQ_VSYNC(i);
if (dc->drm_dev->crtcs[i])
drm_crtc_handle_vblank(&dc->drm_dev->crtcs[i]->base);
}
}
if (irqs)
drm_warn_once(&dc->drm_dev->base,
"Unknown Verisilicon DC interrupt 0x%x fired!\n",
irqs);
}
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/dma-mapping.h`, `linux/platform_device.h`, `linux/module.h`, `linux/regmap.h`, `linux/console.h`, `drm/clients/drm_client_setup.h`, `drm/drm_atomic_helper.h`.
- Detected declarations: `function Copyright`, `function vs_mode_config_init`, `function vs_drm_initialize`, `function vs_drm_finalize`, `function vs_drm_shutdown_handler`, `function vs_drm_handle_irq`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source 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.