2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* Routines for handling backlight control on PowerBooks
|
|
|
|
*
|
2005-10-11 01:26:48 +02:00
|
|
|
* For now, implementation resides in
|
|
|
|
* arch/powerpc/platforms/powermac/pmac_support.c
|
2005-04-17 00:20:36 +02:00
|
|
|
*
|
|
|
|
*/
|
2005-10-11 01:26:48 +02:00
|
|
|
#ifndef __ASM_POWERPC_BACKLIGHT_H
|
|
|
|
#define __ASM_POWERPC_BACKLIGHT_H
|
2005-04-17 00:20:36 +02:00
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
|
|
/* 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 /* __KERNEL__ */
|
2005-10-11 01:26:48 +02:00
|
|
|
#endif
|