From 0b33d9982e68991efb5035d126516391113b0baa Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Tue, 23 Aug 2011 10:29:30 -0400 Subject: [PATCH] Add linux/leds-an30259a.h Change-Id: I9144b58bdc522d6ec22466adc459a40be648592f Signed-off-by: Mike Lockwood --- libc/kernel/common/linux/leds-an30259a.h | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 libc/kernel/common/linux/leds-an30259a.h diff --git a/libc/kernel/common/linux/leds-an30259a.h b/libc/kernel/common/linux/leds-an30259a.h new file mode 100644 index 000000000..cae8f458f --- /dev/null +++ b/libc/kernel/common/linux/leds-an30259a.h @@ -0,0 +1,48 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _LEDS_AN30259A_H +#define _LEDS_AN30259A_H +#include +#include +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define LED_LIGHT_OFF 0 +#define LED_LIGHT_ON 1 +#define LED_LIGHT_PULSE 2 +#define LED_LIGHT_SLOPE 3 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct an30259a_pr_control { + __u32 color; + __u32 state; + __u16 start_delay; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u16 time_slope_up_1; + __u16 time_slope_up_2; + __u16 time_on; + __u16 time_slope_down_1; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u16 time_slope_down_2; + __u16 time_off; + __u8 mid_brightness; +} __packed; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define AN30259A_PR_SET_LED _IOW('S', 42, struct an30259a_pr_control) +#define AN30259A_PR_SET_LEDS _IOW('S', 43, struct an30259a_pr_control[3]) +#define AN30259A_PR_SET_IMAX _IOW('S', 44, __u8) +#endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */