1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef __ASM_ARCH_OMAP_GPIO_SWITCH_H
13 #define __ASM_ARCH_OMAP_GPIO_SWITCH_H
15 #include <linux/types.h>
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
23 struct omap_gpio_switch {
33 void (* notify)(void *data, int state);