blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / mips / include / asm / mach-bcm63xx / bcm63xx_gpio.h
blob565ff36a11195d993b4b3315e8f7536cc1830d7e
1 #ifndef BCM63XX_GPIO_H
2 #define BCM63XX_GPIO_H
4 #include <linux/init.h>
5 #include <bcm63xx_cpu.h>
7 int __init bcm63xx_gpio_init(void);
9 static inline unsigned long bcm63xx_gpio_count(void)
11 switch (bcm63xx_get_cpu_id()) {
12 case BCM6328_CPU_ID:
13 return 32;
14 case BCM3368_CPU_ID:
15 case BCM6358_CPU_ID:
16 return 40;
17 case BCM6338_CPU_ID:
18 return 8;
19 case BCM6345_CPU_ID:
20 return 16;
21 case BCM6362_CPU_ID:
22 return 48;
23 case BCM6368_CPU_ID:
24 return 38;
25 case BCM6348_CPU_ID:
26 default:
27 return 37;
31 #define BCM63XX_GPIO_DIR_OUT 0x0
32 #define BCM63XX_GPIO_DIR_IN 0x1
34 #endif /* !BCM63XX_GPIO_H */