mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 11:06:58 +07:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
31 lines
842 B
C
31 lines
842 B
C
/*
|
|
* Routines for handling backlight control on PowerBooks
|
|
*
|
|
* For now, implementation resides in arch/ppc/kernel/pmac_support.c
|
|
*
|
|
*/
|
|
#ifdef __KERNEL__
|
|
#ifndef __ASM_PPC_BACKLIGHT_H
|
|
#define __ASM_PPC_BACKLIGHT_H
|
|
|
|
/* Abstract values */
|
|
#define BACKLIGHT_OFF 0
|
|
#define BACKLIGHT_MIN 1
|
|
#define BACKLIGHT_MAX 0xf
|
|
|
|
struct backlight_controller {
|
|
int (*set_enable)(int enable, int level, void *data);
|
|
int (*set_level)(int level, void *data);
|
|
};
|
|
|
|
extern void register_backlight_controller(struct backlight_controller *ctrler, void *data, char *type);
|
|
extern void unregister_backlight_controller(struct backlight_controller *ctrler, void *data);
|
|
|
|
extern int set_backlight_enable(int enable);
|
|
extern int get_backlight_enable(void);
|
|
extern int set_backlight_level(int level);
|
|
extern int get_backlight_level(void);
|
|
|
|
#endif
|
|
#endif /* __KERNEL__ */
|