diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 19:26:48 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 19:59:38 -0400 |
commit | 508c40227caee4cef0e963e61a3a5172a108b455 (patch) | |
tree | 2cec3435f5fec2f088d41d0d3f07dea54b278646 /include/asm-powerpc/backlight.h | |
parent | 20f629549b30a1154c8b5e830cb10a0c0faa875f (diff) |
powerpc: Merged asm/backlight.h
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/backlight.h')
-rw-r--r-- | include/asm-powerpc/backlight.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/asm-powerpc/backlight.h b/include/asm-powerpc/backlight.h new file mode 100644 index 000000000000..1ba1f27a0b63 --- /dev/null +++ b/include/asm-powerpc/backlight.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Routines for handling backlight control on PowerBooks | ||
3 | * | ||
4 | * For now, implementation resides in | ||
5 | * arch/powerpc/platforms/powermac/pmac_support.c | ||
6 | * | ||
7 | */ | ||
8 | #ifndef __ASM_POWERPC_BACKLIGHT_H | ||
9 | #define __ASM_POWERPC_BACKLIGHT_H | ||
10 | #ifdef __KERNEL__ | ||
11 | |||
12 | /* Abstract values */ | ||
13 | #define BACKLIGHT_OFF 0 | ||
14 | #define BACKLIGHT_MIN 1 | ||
15 | #define BACKLIGHT_MAX 0xf | ||
16 | |||
17 | struct backlight_controller { | ||
18 | int (*set_enable)(int enable, int level, void *data); | ||
19 | int (*set_level)(int level, void *data); | ||
20 | }; | ||
21 | |||
22 | extern void register_backlight_controller(struct backlight_controller *ctrler, void *data, char *type); | ||
23 | extern void unregister_backlight_controller(struct backlight_controller *ctrler, void *data); | ||
24 | |||
25 | extern int set_backlight_enable(int enable); | ||
26 | extern int get_backlight_enable(void); | ||
27 | extern int set_backlight_level(int level); | ||
28 | extern int get_backlight_level(void); | ||
29 | |||
30 | #endif /* __KERNEL__ */ | ||
31 | #endif | ||