gpio.h 613 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __ASM_SPARC_GPIO_H
  2. #define __ASM_SPARC_GPIO_H
  3. #include <linux/errno.h>
  4. #include <asm-generic/gpio.h>
  5. #ifdef CONFIG_GPIOLIB
  6. static inline int gpio_get_value(unsigned int gpio)
  7. {
  8. return __gpio_get_value(gpio);
  9. }
  10. static inline void gpio_set_value(unsigned int gpio, int value)
  11. {
  12. __gpio_set_value(gpio, value);
  13. }
  14. static inline int gpio_cansleep(unsigned int gpio)
  15. {
  16. return __gpio_cansleep(gpio);
  17. }
  18. static inline int gpio_to_irq(unsigned int gpio)
  19. {
  20. return -ENOSYS;
  21. }
  22. static inline int irq_to_gpio(unsigned int irq)
  23. {
  24. return -EINVAL;
  25. }
  26. #endif /* CONFIG_GPIOLIB */
  27. #endif /* __ASM_SPARC_GPIO_H */