Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
mips
include
asm
mach-bcm63xx
bcm63xx_gpio.h
Go to the documentation of this file.
1
#ifndef BCM63XX_GPIO_H
2
#define BCM63XX_GPIO_H
3
4
#include <
linux/init.h
>
5
#include <
bcm63xx_cpu.h
>
6
7
int
__init
bcm63xx_gpio_init
(
void
);
8
9
static
inline
unsigned
long
bcm63xx_gpio_count(
void
)
10
{
11
switch
(bcm63xx_get_cpu_id()) {
12
case
BCM6328_CPU_ID
:
13
return
32;
14
case
BCM6358_CPU_ID
:
15
return
40;
16
case
BCM6338_CPU_ID
:
17
return
8;
18
case
BCM6345_CPU_ID
:
19
return
16;
20
case
BCM6368_CPU_ID
:
21
return
38;
22
case
BCM6348_CPU_ID
:
23
default
:
24
return
37;
25
}
26
}
27
28
#define BCM63XX_GPIO_DIR_OUT 0x0
29
#define BCM63XX_GPIO_DIR_IN 0x1
30
31
#endif
/* !BCM63XX_GPIO_H */
Generated on Thu Jan 10 2013 13:09:44 for Linux Kernel by
1.8.2