The x86 timer interrupt handler is the only handler not traced in the
[linux-2.6/next.git] / arch / mips / include / asm / pmc-sierra / msp71xx / gpio.h
blobebdbab973e41f2605b1a8a059c4e867a4e5de2b5
1 /*
2 * include/asm-mips/pmc-sierra/msp71xx/gpio.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * @author Patrick Glass <patrickglass@gmail.com>
9 */
11 #ifndef __PMC_MSP71XX_GPIO_H
12 #define __PMC_MSP71XX_GPIO_H
14 /* Max number of gpio's is 28 on chip plus 3 banks of I2C IO Expanders */
15 #define ARCH_NR_GPIOS (28 + (3 * 8))
17 /* new generic GPIO API - see Documentation/gpio.txt */
18 #include <asm-generic/gpio.h>
20 #define gpio_get_value __gpio_get_value
21 #define gpio_set_value __gpio_set_value
22 #define gpio_cansleep __gpio_cansleep
24 /* Setup calls for the gpio and gpio extended */
25 extern void msp71xx_init_gpio(void);
26 extern void msp71xx_init_gpio_extended(void);
27 extern int msp71xx_set_output_drive(unsigned gpio, int value);
29 /* Custom output drive functionss */
30 static inline int gpio_set_output_drive(unsigned gpio, int value)
32 return msp71xx_set_output_drive(gpio, value);
35 /* IRQ's are not supported for gpio lines */
36 static inline int gpio_to_irq(unsigned gpio)
38 return -EINVAL;
41 static inline int irq_to_gpio(unsigned irq)
43 return -EINVAL;
46 #endif /* __PMC_MSP71XX_GPIO_H */