Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Routines for handling backlight control on PowerBooks |
| 3 | * |
Paul Mackerras | 508c402 | 2005-10-11 09:26:48 +1000 | [diff] [blame] | 4 | * For now, implementation resides in |
| 5 | * arch/powerpc/platforms/powermac/pmac_support.c |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * |
| 7 | */ |
Paul Mackerras | 508c402 | 2005-10-11 09:26:48 +1000 | [diff] [blame] | 8 | #ifndef __ASM_POWERPC_BACKLIGHT_H |
| 9 | #define __ASM_POWERPC_BACKLIGHT_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #ifdef __KERNEL__ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #endif /* __KERNEL__ */ |
Paul Mackerras | 508c402 | 2005-10-11 09:26:48 +1000 | [diff] [blame] | 31 | #endif |