From 6fef05d93bae4445cb2032aaae908a4897770cd8 Mon Sep 17 00:00:00 2001 From: Atsushi Nemoto Date: Fri, 22 Jun 2007 23:20:23 +0900 Subject: [PATCH] --- yaml --- r: 58627 b: refs/heads/master c: 82b8d2250c4b606e190853db9505b54b9fb71aa5 h: refs/heads/master i: 58625: 5f37d8993cc67c958677dd0a9e0832d5f699ece0 58623: 0637571dd4a02ce61ea0b943dc0f66a0502e8b02 v: v3 --- [refs] | 2 +- trunk/include/asm-mips/mach-generic/gpio.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 trunk/include/asm-mips/mach-generic/gpio.h diff --git a/[refs] b/[refs] index ed136b98bafa..a5a85c430413 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 096633358c907d9b50b00caf989816c2edfefe24 +refs/heads/master: 82b8d2250c4b606e190853db9505b54b9fb71aa5 diff --git a/trunk/include/asm-mips/mach-generic/gpio.h b/trunk/include/asm-mips/mach-generic/gpio.h new file mode 100644 index 000000000000..6eaf5efedf3a --- /dev/null +++ b/trunk/include/asm-mips/mach-generic/gpio.h @@ -0,0 +1,15 @@ +#ifndef __ASM_MACH_GENERIC_GPIO_H +#define __ASM_MACH_GENERIC_GPIO_H + +int gpio_request(unsigned gpio, const char *label); +void gpio_free(unsigned gpio); +int gpio_direction_input(unsigned gpio); +int gpio_direction_output(unsigned gpio, int value); +int gpio_get_value(unsigned gpio); +void gpio_set_value(unsigned gpio, int value); +int gpio_to_irq(unsigned gpio); +int irq_to_gpio(unsigned irq); + +#include /* cansleep wrappers */ + +#endif /* __ASM_MACH_GENERIC_GPIO_H */