Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.32-rc7 48 lines 1.5 kB view raw
1#ifndef __LIS3LV02D_H_ 2#define __LIS3LV02D_H_ 3 4struct lis3lv02d_platform_data { 5 /* please note: the 'click' feature is only supported for 6 * LIS[32]02DL variants of the chip and will be ignored for 7 * others */ 8#define LIS3_CLICK_SINGLE_X (1 << 0) 9#define LIS3_CLICK_DOUBLE_X (1 << 1) 10#define LIS3_CLICK_SINGLE_Y (1 << 2) 11#define LIS3_CLICK_DOUBLE_Y (1 << 3) 12#define LIS3_CLICK_SINGLE_Z (1 << 4) 13#define LIS3_CLICK_DOUBLE_Z (1 << 5) 14 unsigned char click_flags; 15 unsigned char click_thresh_x; 16 unsigned char click_thresh_y; 17 unsigned char click_thresh_z; 18 unsigned char click_time_limit; 19 unsigned char click_latency; 20 unsigned char click_window; 21 22#define LIS3_IRQ1_DISABLE (0 << 0) 23#define LIS3_IRQ1_FF_WU_1 (1 << 0) 24#define LIS3_IRQ1_FF_WU_2 (2 << 0) 25#define LIS3_IRQ1_FF_WU_12 (3 << 0) 26#define LIS3_IRQ1_DATA_READY (4 << 0) 27#define LIS3_IRQ1_CLICK (7 << 0) 28#define LIS3_IRQ2_DISABLE (0 << 3) 29#define LIS3_IRQ2_FF_WU_1 (1 << 3) 30#define LIS3_IRQ2_FF_WU_2 (2 << 3) 31#define LIS3_IRQ2_FF_WU_12 (3 << 3) 32#define LIS3_IRQ2_DATA_READY (4 << 3) 33#define LIS3_IRQ2_CLICK (7 << 3) 34#define LIS3_IRQ_OPEN_DRAIN (1 << 6) 35#define LIS3_IRQ_ACTIVE_LOW (1 << 7) 36 unsigned char irq_cfg; 37 38#define LIS3_WAKEUP_X_LO (1 << 0) 39#define LIS3_WAKEUP_X_HI (1 << 1) 40#define LIS3_WAKEUP_Y_LO (1 << 2) 41#define LIS3_WAKEUP_Y_HI (1 << 3) 42#define LIS3_WAKEUP_Z_LO (1 << 4) 43#define LIS3_WAKEUP_Z_HI (1 << 5) 44 unsigned char wakeup_flags; 45 unsigned char wakeup_thresh; 46}; 47 48#endif /* __LIS3LV02D_H_ */