drivers/gpu/drm/i915/display/intel_dmc_wl.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_dmc_wl.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/display/intel_dmc_wl.h
Extension
.h
Size
1261 bytes
Lines
42
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 intel_dmc_wl {
	spinlock_t lock; /* protects enabled, taken, dc_state and refcount */
	bool enabled;
	bool taken;
	refcount_t refcount;
	/*
	 * We are keeping a copy of the enabled DC state because
	 * intel_display.power.domains is protected by a mutex and we do
	 * not want call mutex_lock() in atomic context, where some of
	 * the tracked MMIO operations happen.
	 */
	u32 dc_state;
	struct delayed_work work;
};

void intel_dmc_wl_init(struct intel_display *display);
void intel_dmc_wl_enable(struct intel_display *display, u32 dc_state);
void intel_dmc_wl_disable(struct intel_display *display);
void intel_dmc_wl_flush_release_work(struct intel_display *display);
void intel_dmc_wl_get(struct intel_display *display, intel_reg_t reg);
void intel_dmc_wl_put(struct intel_display *display, intel_reg_t reg);
void intel_dmc_wl_get_noreg(struct intel_display *display);
void intel_dmc_wl_put_noreg(struct intel_display *display);

#endif /* __INTEL_WAKELOCK_H__ */

Annotation

Implementation Notes