drivers/staging/sm750fb/ddk750_power.h

Source file repositories/reference/linux-study-clean/drivers/staging/sm750fb/ddk750_power.h

File Facts

System
Linux kernel
Corpus path
drivers/staging/sm750fb/ddk750_power.h
Extension
.h
Size
869 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/staging
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 DDK750_POWER_H__
#define DDK750_POWER_H__

enum dpms {
	CRT_DPMS_ON = 0x0,
	CRT_DPMS_STANDBY = 0x1,
	CRT_DPMS_SUSPEND = 0x2,
	CRT_DPMS_OFF = 0x3,
};

#define set_DAC(off) {							\
	poke32(MISC_CTRL,						\
	       (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
}

void ddk750_set_dpms(enum dpms state);
void sm750_set_power_mode(unsigned int mode);
void sm750_set_current_gate(unsigned int gate);

/*
 * This function enable/disable the 2D engine.
 */
void sm750_enable_2d_engine(unsigned int enable);

/*
 * This function enable/disable the DMA Engine
 */
void sm750_enable_dma(unsigned int enable);

/*
 * This function enable/disable the GPIO Engine
 */
void sm750_enable_gpio(unsigned int enable);

/*
 * This function enable/disable the I2C Engine
 */
void sm750_enable_i2c(unsigned int enable);

#endif

Annotation

Implementation Notes