drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h
Extension
.h
Size
1090 bytes
Lines
53
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct shmob_drm_config {
	enum shmob_drm_clk_source clk_source;
	unsigned int clk_div;
};

struct shmob_drm_device {
	struct device *dev;
	const struct shmob_drm_platform_data *pdata;
	struct shmob_drm_config config;

	void __iomem *mmio;
	struct clk *clock;
	u32 lddckr;

	unsigned int irq;
	spinlock_t irq_lock;		/* Protects hardware LDINTR register */

	struct drm_device ddev;

	struct shmob_drm_crtc crtc;
	struct drm_encoder encoder;
	struct drm_connector *connector;
};

static inline struct shmob_drm_device *to_shmob_device(struct drm_device *dev)
{
	return container_of(dev, struct shmob_drm_device, ddev);
}

#endif /* __SHMOB_DRM_DRV_H__ */

Annotation

Implementation Notes