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

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

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/display/g4x_dp.h
Extension
.h
Size
978 bytes
Lines
46
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

#ifndef _G4X_DP_H_
#define _G4X_DP_H_

#include <linux/types.h>

#include "intel_display_reg_defs.h"

enum pipe;
enum port;
struct intel_crtc_state;
struct intel_display;
struct intel_dp;
struct intel_encoder;

#ifdef I915
const struct dpll *vlv_get_dpll(struct intel_display *display);
bool g4x_dp_port_enabled(struct intel_display *display,
			 intel_reg_t dp_reg, enum port port,
			 enum pipe *pipe);
bool g4x_dp_init(struct intel_display *display,
		 intel_reg_t output_reg, enum port port);
#else
static inline const struct dpll *vlv_get_dpll(struct intel_display *display)
{
	return NULL;
}
static inline bool g4x_dp_port_enabled(struct intel_display *display,
				       intel_reg_t dp_reg, int port,
				       enum pipe *pipe)
{
	return false;
}
static inline bool g4x_dp_init(struct intel_display *display,
			       intel_reg_t output_reg, int port)
{
	return false;
}
#endif

#endif

Annotation

Implementation Notes