diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2009-03-23 09:50:03 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-03-23 16:20:20 -0400 |
| commit | 80c5520811d3805adcb15c570ea5e2d489fa5d0b (patch) | |
| tree | ae797a7f4af39f80e77526533d06ac23b439f0ab /arch/x86/include/asm/mach-rdc321x/gpio.h | |
| parent | b3e3b302cf6dc8d60b67f0e84d1fa5648889c038 (diff) | |
| parent | 8c083f081d0014057901c68a0a3e0f8ca7ac8d23 (diff) | |
Merge branch 'cpus4096' into irq/threaded
Conflicts:
arch/parisc/kernel/irq.c
kernel/irq/handle.c
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/mach-rdc321x/gpio.h')
| -rw-r--r-- | arch/x86/include/asm/mach-rdc321x/gpio.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/arch/x86/include/asm/mach-rdc321x/gpio.h b/arch/x86/include/asm/mach-rdc321x/gpio.h deleted file mode 100644 index c210ab5788b..00000000000 --- a/arch/x86/include/asm/mach-rdc321x/gpio.h +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | #ifndef _ASM_X86_MACH_RDC321X_GPIO_H | ||
| 2 | #define _ASM_X86_MACH_RDC321X_GPIO_H | ||
| 3 | |||
| 4 | #include <linux/kernel.h> | ||
| 5 | |||
| 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); | ||
| 13 | |||
| 14 | /* Wrappers for the arch-neutral GPIO API */ | ||
| 15 | |||
| 16 | static inline int gpio_request(unsigned gpio, const char *label) | ||
| 17 | { | ||
| 18 | return rdc_gpio_request(gpio, label); | ||
| 19 | } | ||
| 20 | |||
| 21 | static inline void gpio_free(unsigned gpio) | ||
| 22 | { | ||
| 23 | might_sleep(); | ||
| 24 | rdc_gpio_free(gpio); | ||
| 25 | } | ||
| 26 | |||
| 27 | static inline int gpio_direction_input(unsigned gpio) | ||
| 28 | { | ||
| 29 | return rdc_gpio_direction_input(gpio); | ||
| 30 | } | ||
| 31 | |||
| 32 | static inline int gpio_direction_output(unsigned gpio, int value) | ||
| 33 | { | ||
| 34 | return rdc_gpio_direction_output(gpio, value); | ||
| 35 | } | ||
| 36 | |||
| 37 | static inline int gpio_get_value(unsigned gpio) | ||
| 38 | { | ||
| 39 | return rdc_gpio_get_value(gpio); | ||
| 40 | } | ||
| 41 | |||
| 42 | static inline void gpio_set_value(unsigned gpio, int value) | ||
| 43 | { | ||
| 44 | rdc_gpio_set_value(gpio, value); | ||
| 45 | } | ||
| 46 | |||
| 47 | static inline int gpio_to_irq(unsigned gpio) | ||
| 48 | { | ||
| 49 | return gpio; | ||
| 50 | } | ||
| 51 | |||
| 52 | static inline int irq_to_gpio(unsigned irq) | ||
| 53 | { | ||
| 54 | return irq; | ||
| 55 | } | ||
| 56 | |||
| 57 | /* For cansleep */ | ||
| 58 | #include <asm-generic/gpio.h> | ||
| 59 | |||
| 60 | #endif /* _ASM_X86_MACH_RDC321X_GPIO_H */ | ||
