drivers/gpu/drm/armada/armada_drm.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/armada/armada_drm.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/armada/armada_drm.h- Extension
.h- Size
- 2387 bytes
- Lines
- 94
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kfifo.hlinux/io.hlinux/workqueue.hdrm/drm_device.hdrm/drm_mm.h
Detected Declarations
struct armada_crtcstruct armada_gem_objectstruct clkstruct drm_display_modestruct drm_fb_helperstruct drm_fb_helper_surface_sizestruct armada_privatestruct armada_variantstruct armada_privatefunction armada_updatelfunction armada_pitch
Annotated Snippet
struct armada_variant {
bool has_spu_adv_reg;
int (*init)(struct armada_crtc *, struct device *);
int (*compute_clock)(struct armada_crtc *,
const struct drm_display_mode *,
uint32_t *);
void (*disable)(struct armada_crtc *);
void (*enable)(struct armada_crtc *, const struct drm_display_mode *);
};
/* Variant ops */
extern const struct armada_variant armada510_ops;
struct armada_private {
struct drm_device drm;
struct armada_crtc *dcrtc[2];
struct drm_mm linear; /* protected by linear_lock */
struct mutex linear_lock;
struct drm_property *colorkey_prop;
struct drm_property *colorkey_min_prop;
struct drm_property *colorkey_max_prop;
struct drm_property *colorkey_val_prop;
struct drm_property *colorkey_alpha_prop;
struct drm_property *colorkey_mode_prop;
struct drm_property *brightness_prop;
struct drm_property *contrast_prop;
struct drm_property *saturation_prop;
#ifdef CONFIG_DEBUG_FS
struct dentry *de;
#endif
};
#define drm_to_armada_dev(dev) container_of(dev, struct armada_private, drm)
#if defined(CONFIG_DRM_FBDEV_EMULATION)
int armada_fbdev_driver_fbdev_probe(struct drm_fb_helper *fbh,
struct drm_fb_helper_surface_size *sizes);
#define ARMADA_FBDEV_DRIVER_OPS \
.fbdev_probe = armada_fbdev_driver_fbdev_probe
#else
#define ARMADA_FBDEV_DRIVER_OPS \
.fbdev_probe = NULL
#endif
int armada_overlay_plane_create(struct drm_device *, unsigned long);
void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc);
int armada_drm_debugfs_init(struct drm_minor *);
#endif
Annotation
- Immediate include surface: `linux/kfifo.h`, `linux/io.h`, `linux/workqueue.h`, `drm/drm_device.h`, `drm/drm_mm.h`.
- Detected declarations: `struct armada_crtc`, `struct armada_gem_object`, `struct clk`, `struct drm_display_mode`, `struct drm_fb_helper`, `struct drm_fb_helper_surface_size`, `struct armada_private`, `struct armada_variant`, `struct armada_private`, `function armada_updatel`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
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.