drivers/gpu/drm/loongson/lsdc_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/loongson/lsdc_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/loongson/lsdc_drv.c- Extension
.c- Size
- 10926 bytes
- Lines
- 465
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/aperture.hlinux/pci.hlinux/vgaarb.hdrm/clients/drm_client_setup.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_fbdev_ttm.hdrm/drm_gem_framebuffer_helper.hdrm/drm_gem_ttm_helper.hdrm/drm_ioctl.hdrm/drm_modeset_helper.hdrm/drm_print.hdrm/drm_probe_helper.hdrm/drm_vblank.hloongson_module.hlsdc_drv.hlsdc_gem.hlsdc_ttm.h
Detected Declarations
function lsdc_modeset_initfunction lsdc_mode_config_initfunction lsdc_get_dedicated_vramfunction lsdc_create_devicefunction lsdc_vga_set_decodefunction lsdc_pci_probefunction lsdc_pci_removefunction lsdc_pci_shutdownfunction lsdc_drm_freezefunction lsdc_drm_resumefunction lsdc_pm_freezefunction lsdc_pm_thawfunction lsdc_pm_suspendfunction lsdc_pm_resume
Annotated Snippet
struct pci_driver lsdc_pci_driver = {
.name = DRIVER_NAME,
.id_table = lsdc_pciid_list,
.probe = lsdc_pci_probe,
.remove = lsdc_pci_remove,
.shutdown = lsdc_pci_shutdown,
.driver.pm = &lsdc_pm_ops,
};
MODULE_DEVICE_TABLE(pci, lsdc_pciid_list);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/pci.h`, `linux/vgaarb.h`, `drm/clients/drm_client_setup.h`, `drm/drm_atomic.h`, `drm/drm_atomic_helper.h`, `drm/drm_drv.h`, `drm/drm_fbdev_ttm.h`.
- Detected declarations: `function lsdc_modeset_init`, `function lsdc_mode_config_init`, `function lsdc_get_dedicated_vram`, `function lsdc_create_device`, `function lsdc_vga_set_decode`, `function lsdc_pci_probe`, `function lsdc_pci_remove`, `function lsdc_pci_shutdown`, `function lsdc_drm_freeze`, `function lsdc_drm_resume`.
- 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.
- 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.