Blame view
include/asm-powerpc/backlight.h
1.05 KB
1da177e4c
|
1 2 3 |
/* * Routines for handling backlight control on PowerBooks * |
508c40227
|
4 |
* For now, implementation resides in |
5474c120a
|
5 |
* arch/powerpc/platforms/powermac/backlight.c |
1da177e4c
|
6 7 |
* */ |
508c40227
|
8 9 |
#ifndef __ASM_POWERPC_BACKLIGHT_H #define __ASM_POWERPC_BACKLIGHT_H |
1da177e4c
|
10 |
#ifdef __KERNEL__ |
1da177e4c
|
11 |
|
5474c120a
|
12 13 |
#include <linux/fb.h> #include <linux/mutex.h> |
1da177e4c
|
14 |
|
5474c120a
|
15 16 17 |
/* For locking instructions, see the implementation file */ extern struct backlight_device *pmac_backlight; extern struct mutex pmac_backlight_mutex; |
1da177e4c
|
18 |
|
5474c120a
|
19 |
extern int pmac_backlight_curve_lookup(struct fb_info *info, int value); |
1da177e4c
|
20 |
|
5474c120a
|
21 |
extern int pmac_has_backlight_type(const char *type); |
e01af0384
|
22 23 24 25 26 27 28 29 30 |
extern void pmac_backlight_key(int direction); static inline void pmac_backlight_key_up(void) { pmac_backlight_key(0); } static inline void pmac_backlight_key_down(void) { pmac_backlight_key(1); } |
5474c120a
|
31 |
|
4b755999d
|
32 |
extern void pmac_backlight_set_legacy_brightness_pmu(int brightness); |
5474c120a
|
33 34 |
extern int pmac_backlight_set_legacy_brightness(int brightness); extern int pmac_backlight_get_legacy_brightness(void); |
1da177e4c
|
35 |
|
4b755999d
|
36 37 |
extern void pmac_backlight_enable(void); extern void pmac_backlight_disable(void); |
1da177e4c
|
38 |
#endif /* __KERNEL__ */ |
508c40227
|
39 |
#endif |