1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __ASM_ARCH_OMAP_GPIO_SWITCH_H
13 #define __ASM_ARCH_OMAP_GPIO_SWITCH_H
14 
15 #include <linux/types.h>
16 
17 #define OMAP_GPIO_SWITCH_TYPE_COVER 0x0000
18 #define OMAP_GPIO_SWITCH_TYPE_CONNECTION 0x0001
19 #define OMAP_GPIO_SWITCH_TYPE_ACTIVITY 0x0002
20 #define OMAP_GPIO_SWITCH_FLAG_INVERTED 0x0001
21 #define OMAP_GPIO_SWITCH_FLAG_OUTPUT 0x0002
22 
23 struct omap_gpio_switch {
24  const char *name;
25  s16 gpio;
26  unsigned flags:4;
27  unsigned type:4;
28 
29  u16 debounce_rising;
30 
31  u16 debounce_falling;
32 
33  void (* notify)(void *data, int state);
34  void *notify_data;
35 };
36 
37 #endif
38