mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Matthieu Simon](/assets/img/avatar_default.png)
POKE32 and PEEK32 have been replaced by inlined functions poke32 and peek32. Having inline functions instead of macros help to get the correct type-checking and avoid the possible precedence issues reported by checkpatch. Signed-off-by: Matthieu Simon <gmatthsim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
42 lines
840 B
C
42 lines
840 B
C
#ifndef DDK750_POWER_H__
|
|
#define DDK750_POWER_H__
|
|
|
|
typedef enum _DPMS_t {
|
|
crtDPMS_ON = 0x0,
|
|
crtDPMS_STANDBY = 0x1,
|
|
crtDPMS_SUSPEND = 0x2,
|
|
crtDPMS_OFF = 0x3,
|
|
}
|
|
DPMS_t;
|
|
|
|
#define setDAC(off) { \
|
|
poke32(MISC_CTRL, \
|
|
(peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
|
|
}
|
|
|
|
void ddk750_set_dpms(DPMS_t);
|
|
void sm750_set_power_mode(unsigned int powerMode);
|
|
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
|