drivers/gpu/drm/tiny/cirrus-qemu.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/tiny/cirrus-qemu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/tiny/cirrus-qemu.c- Extension
.c- Size
- 17840 bytes
- Lines
- 676
- 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/iosys-map.hlinux/module.hlinux/pci.hvideo/cirrus.hvideo/vga.hdrm/clients/drm_client_setup.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_atomic_state_helper.hdrm/drm_connector.hdrm/drm_damage_helper.hdrm/drm_drv.hdrm/drm_edid.hdrm/drm_fbdev_shmem.hdrm/drm_file.hdrm/drm_format_helper.hdrm/drm_fourcc.hdrm/drm_framebuffer.hdrm/drm_gem_atomic_helper.hdrm/drm_gem_framebuffer_helper.hdrm/drm_gem_shmem_helper.hdrm/drm_ioctl.hdrm/drm_managed.hdrm/drm_modeset_helper_vtables.hdrm/drm_module.hdrm/drm_print.hdrm/drm_probe_helper.hdrm/drm_vblank.hdrm/drm_vblank_helper.h
Detected Declarations
struct cirrus_devicefunction rreg_seqfunction wreg_seqfunction rreg_crtfunction wreg_crtfunction wreg_gfxfunction wreg_hdrfunction cirrus_set_start_addressfunction cirrus_mode_setfunction cirrus_format_setfunction cirrus_pitch_setfunction cirrus_primary_plane_helper_atomic_checkfunction cirrus_primary_plane_helper_atomic_updatefunction cirrus_crtc_helper_atomic_checkfunction cirrus_crtc_helper_atomic_enablefunction cirrus_connector_helper_get_modesfunction cirrus_pipe_initfunction cirrus_mode_config_mode_validfunction cirrus_mode_config_initfunction cirrus_pci_probefunction cirrus_pci_removefunction cirrus_pci_shutdown
Annotated Snippet
static struct pci_driver cirrus_pci_driver = {
.name = DRIVER_NAME,
.id_table = pciidlist,
.probe = cirrus_pci_probe,
.remove = cirrus_pci_remove,
.shutdown = cirrus_pci_shutdown,
};
drm_module_pci_driver(cirrus_pci_driver)
MODULE_DEVICE_TABLE(pci, pciidlist);
MODULE_DESCRIPTION("Cirrus driver for QEMU emulated device");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/iosys-map.h`, `linux/module.h`, `linux/pci.h`, `video/cirrus.h`, `video/vga.h`, `drm/clients/drm_client_setup.h`, `drm/drm_atomic.h`.
- Detected declarations: `struct cirrus_device`, `function rreg_seq`, `function wreg_seq`, `function rreg_crt`, `function wreg_crt`, `function wreg_gfx`, `function wreg_hdr`, `function cirrus_set_start_address`, `function cirrus_mode_set`, `function cirrus_format_set`.
- 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.