drivers/gpu/drm/nouveau/nouveau_led.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nouveau_led.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nouveau_led.h
Extension
.h
Size
2003 bytes
Lines
58
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 nouveau_led {
	struct drm_device *dev;

	struct led_classdev led;
};

static inline struct nouveau_led *
nouveau_led(struct drm_device *dev)
{
	return nouveau_drm(dev)->led;
}

/* nouveau_led.c */
#if IS_REACHABLE(CONFIG_LEDS_CLASS)
int  nouveau_led_init(struct drm_device *dev);
void nouveau_led_suspend(struct drm_device *dev);
void nouveau_led_resume(struct drm_device *dev);
void nouveau_led_fini(struct drm_device *dev);
#else
static inline int  nouveau_led_init(struct drm_device *dev) { return 0; };
static inline void nouveau_led_suspend(struct drm_device *dev) { };
static inline void nouveau_led_resume(struct drm_device *dev) { };
static inline void nouveau_led_fini(struct drm_device *dev) { };
#endif

#endif

Annotation

Implementation Notes