873bffe302dbc7531b353eecd34c755141b6171c
1 #ifndef _ASM_X86_MACH_RDC321X_GPIO_H
2 #define _ASM_X86_MACH_RDC321X_GPIO_H
4 #include <linux/kernel.h>
6 extern int rdc_gpio_get_value(unsigned gpio
);
7 extern void rdc_gpio_set_value(unsigned gpio
, int value
);
8 extern int rdc_gpio_direction_input(unsigned gpio
);
9 extern int rdc_gpio_direction_output(unsigned gpio
, int value
);
10 extern int rdc_gpio_request(unsigned gpio
, const char *label
);
11 extern void rdc_gpio_free(unsigned gpio
);
13 /* Wrappers for the arch-neutral GPIO API */
15 static inline int gpio_request(unsigned gpio
, const char *label
)
17 return rdc_gpio_request(gpio
, label
);
20 static inline void gpio_free(unsigned gpio
)
26 static inline int gpio_direction_input(unsigned gpio
)
28 return rdc_gpio_direction_input(gpio
);
31 static inline int gpio_direction_output(unsigned gpio
, int value
)
33 return rdc_gpio_direction_output(gpio
, value
);
36 static inline int gpio_get_value(unsigned gpio
)
38 return rdc_gpio_get_value(gpio
);
41 static inline void gpio_set_value(unsigned gpio
, int value
)
43 rdc_gpio_set_value(gpio
, value
);
46 static inline int gpio_to_irq(unsigned gpio
)
51 static inline int irq_to_gpio(unsigned irq
)
57 #include <asm-generic/gpio.h>
59 #endif /* _ASM_X86_MACH_RDC321X_GPIO_H */
This page took 0.043184 seconds and 3 git commands to generate.