drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c- Extension
.c- Size
- 10834 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/module.hlinux/pci.hdrm/clients/drm_client_setup.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_fbdev_ttm.hdrm/drm_gem_framebuffer_helper.hdrm/drm_gem_vram_helper.hdrm/drm_managed.hdrm/drm_module.hdrm/drm_vblank.hdrm/drm_probe_helper.hhibmc_drm_drv.hhibmc_drm_regs.hdp/dp_reg.h
Detected Declarations
function hibmc_interruptfunction hibmc_dp_interruptfunction hibmc_dumb_createfunction hibmc_pm_suspendfunction hibmc_pm_resumefunction hibmc_kms_initfunction hibmc_set_power_modefunction hibmc_set_current_gatefunction hibmc_display_ctrlfunction hibmc_hw_configfunction hibmc_hw_mapfunction hibmc_hw_initfunction hibmc_unloadfunction hibmc_msi_initfunction hibmc_loadfunction hibmc_pci_probefunction hibmc_pci_removefunction hibmc_pci_shutdown
Annotated Snippet
static struct pci_driver hibmc_pci_driver = {
.name = "hibmc-drm",
.id_table = hibmc_pci_table,
.probe = hibmc_pci_probe,
.remove = hibmc_pci_remove,
.shutdown = hibmc_pci_shutdown,
.driver.pm = &hibmc_pm_ops,
};
drm_module_pci_driver(hibmc_pci_driver);
MODULE_DEVICE_TABLE(pci, hibmc_pci_table);
MODULE_AUTHOR("RongrongZou <zourongrong@huawei.com>");
MODULE_DESCRIPTION("DRM Driver for Hisilicon Hibmc");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/module.h`, `linux/pci.h`, `drm/clients/drm_client_setup.h`, `drm/drm_atomic_helper.h`, `drm/drm_drv.h`, `drm/drm_fbdev_ttm.h`, `drm/drm_gem_framebuffer_helper.h`.
- Detected declarations: `function hibmc_interrupt`, `function hibmc_dp_interrupt`, `function hibmc_dumb_create`, `function hibmc_pm_suspend`, `function hibmc_pm_resume`, `function hibmc_kms_init`, `function hibmc_set_power_mode`, `function hibmc_set_current_gate`, `function hibmc_display_ctrl`, `function hibmc_hw_config`.
- 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.