1 --- bl.c.orig 2004-12-23 00:15:06.000000000 +0100
2 +++ bl.c 2004-12-23 00:22:59.000000000 +0100
6 #include <linux/ioctl.h>
7 -#include <linux/h3600_ts.h>
11 + FLITE_AUTO_MODE = 1, /* for reference only */
12 + FLITE_MANUAL_MODE = 2, /* Use this normally? */
13 + FLITE_GET_LIGHT_SENSOR = 3 /* Returns light reading in "brightness" field */
20 +typedef struct h3600_ts_flite {
23 + unsigned char brightness;
26 +/*************************** Updated "universal" structures *******************/
28 +/* Sets backlight for both H3100 and H3600 models - technically "frontlight" for H3600 */
29 +struct h3600_ts_backlight {
30 +enum flite_pwr power; /* 0 = off, 1 = on */
31 +unsigned char brightness; /* 0 - 255 */
34 +/* Use 'f' as magic number */
35 +#define IOC_H3600_TS_MAGIC 'f'
37 +#define TS_GET_BACKLIGHT _IOR(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)
38 +#define TS_SET_BACKLIGHT _IOW(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)
39 +#define FLITE_ON _IOW(IOC_H3600_TS_MAGIC, 7, struct h3600_ts_flite)
41 /* The ioctl can be called from a ts, tsraw or key file descriptor */
42 #define DEV_NODE "/dev/touchscreen/0"