Linux-2.6.12-rc2
[linux-2.6/next.git] / include / asm-ppc / backlight.h
blob3a1c3dede2a0db70f9ff78f2f4c58874c0a392ac
1 /*
2 * Routines for handling backlight control on PowerBooks
4 * For now, implementation resides in arch/ppc/kernel/pmac_support.c
6 */
7 #ifdef __KERNEL__
8 #ifndef __ASM_PPC_BACKLIGHT_H
9 #define __ASM_PPC_BACKLIGHT_H
11 /* Abstract values */
12 #define BACKLIGHT_OFF 0
13 #define BACKLIGHT_MIN 1
14 #define BACKLIGHT_MAX 0xf
16 struct backlight_controller {
17 int (*set_enable)(int enable, int level, void *data);
18 int (*set_level)(int level, void *data);
21 extern void register_backlight_controller(struct backlight_controller *ctrler, void *data, char *type);
22 extern void unregister_backlight_controller(struct backlight_controller *ctrler, void *data);
24 extern int set_backlight_enable(int enable);
25 extern int get_backlight_enable(void);
26 extern int set_backlight_level(int level);
27 extern int get_backlight_level(void);
29 #endif
30 #endif /* __KERNEL__ */