12 #include <linux/module.h>
14 #include <mach/hardware.h>
15 #include <mach/irqs.h>
17 static int sa1100_gpio_get(
struct gpio_chip *
chip,
unsigned offset)
22 static void sa1100_gpio_set(
struct gpio_chip *
chip,
unsigned offset,
int value)
30 static int sa1100_direction_input(
struct gpio_chip *chip,
unsigned offset)
40 static int sa1100_direction_output(
struct gpio_chip *chip,
unsigned offset,
int value)
45 sa1100_gpio_set(chip, offset, value);
51 static int sa1100_to_irq(
struct gpio_chip *chip,
unsigned offset)
56 static struct gpio_chip sa1100_gpio_chip = {
58 .direction_input = sa1100_direction_input,
59 .direction_output = sa1100_direction_output,
60 .set = sa1100_gpio_set,
61 .get = sa1100_gpio_get,
62 .to_irq = sa1100_to_irq,