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
);
12 extern void __init
rdc321x_gpio_setup(void);
14 /* Wrappers for the arch-neutral GPIO API */
16 static inline int gpio_request(unsigned gpio
, const char *label
)
18 return rdc_gpio_request(gpio
, label
);
21 static inline void gpio_free(unsigned gpio
)
27 static inline int gpio_direction_input(unsigned gpio
)
29 return rdc_gpio_direction_input(gpio
);
32 static inline int gpio_direction_output(unsigned gpio
, int value
)
34 return rdc_gpio_direction_output(gpio
, value
);
37 static inline int gpio_get_value(unsigned gpio
)
39 return rdc_gpio_get_value(gpio
);
42 static inline void gpio_set_value(unsigned gpio
, int value
)
44 rdc_gpio_set_value(gpio
, value
);
47 static inline int gpio_to_irq(unsigned gpio
)
52 static inline int irq_to_gpio(unsigned irq
)
58 #include <asm-generic/gpio.h>
60 #endif /* _ASM_X86_MACH_RDC321X__GPIO_H */
This page took 0.04482 seconds and 5 git commands to generate.