drivers/gpu/drm/pl111/pl111_drm.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/pl111/pl111_drm.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/pl111/pl111_drm.h- Extension
.h- Size
- 4689 bytes
- Lines
- 163
- 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.
- 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/clk-provider.hlinux/interrupt.hdrm/drm_bridge.hdrm/drm_connector.hdrm/drm_encoder.hdrm/drm_gem.hdrm/drm_panel.hdrm/drm_simple_kms_helper.h
Detected Declarations
struct drm_minorstruct pl111_variant_datastruct pl111_drm_dev_private
Annotated Snippet
struct pl111_variant_data {
const char *name;
bool is_pl110;
bool is_lcdc;
bool external_bgr;
bool broken_clockdivider;
bool broken_vblank;
bool st_bitmux_control;
const u32 *formats;
unsigned int nformats;
unsigned int fb_depth;
};
struct pl111_drm_dev_private {
struct drm_device *drm;
struct drm_connector *connector;
struct drm_panel *panel;
struct drm_bridge *bridge;
struct drm_simple_display_pipe pipe;
void *regs;
u32 memory_bw;
u32 ienb;
u32 ctrl;
/* The pixel clock (a reference to our clock divider off of CLCDCLK). */
struct clk *clk;
/* pl111's internal clock divider. */
struct clk_hw clk_div;
/* Lock to sync access to CLCD_TIM2 between the common clock
* subsystem and pl111_display_enable().
*/
spinlock_t tim2_lock;
const struct pl111_variant_data *variant;
void (*variant_display_enable) (struct drm_device *drm, u32 format);
void (*variant_display_disable) (struct drm_device *drm);
bool use_device_memory;
};
int pl111_display_init(struct drm_device *dev);
irqreturn_t pl111_irq(int irq, void *data);
void pl111_debugfs_init(struct drm_minor *minor);
#endif /* _PL111_DRM_H_ */
Annotation
- Immediate include surface: `linux/clk-provider.h`, `linux/interrupt.h`, `drm/drm_bridge.h`, `drm/drm_connector.h`, `drm/drm_encoder.h`, `drm/drm_gem.h`, `drm/drm_panel.h`, `drm/drm_simple_kms_helper.h`.
- Detected declarations: `struct drm_minor`, `struct pl111_variant_data`, `struct pl111_drm_dev_private`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- 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.