| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 15 | #include <linux/types.h> | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 16 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 22 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 23 | struct omap_gpio_switch { | 
 | 24 |  const char *name; | 
 | 25 |  s16 gpio; | 
 | 26 |  unsigned flags:4; | 
 | 27 |  unsigned type:4; | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 28 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 29 |  u16 debounce_rising; | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 30 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 31 |  u16 debounce_falling; | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 32 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 33 |  void (* notify)(void *data, int state); | 
 | 34 |  void *notify_data; | 
 | 35 | }; | 
| Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 36 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 37 | #endif |