#include <linux/types.h>#include <linux/errno.h>#include <linux/init.h>#include <linux/string.h>#include <linux/ctype.h>#include <linux/kernel.h>#include <linux/module.h>#include <asm/io.h>#include <asm/delay.h>#include <asm/arch/pinmux.h>#include <asm/arch/hwregs/gio_defs.h>#include <asm/arch/hwregs/pinmux_defs.h>#include <asm/arch/hwregs/iop/iop_sw_cfg_defs.h>Include dependency graph for io.c:

Go to the source code of this file.
Defines | |
| #define | DEBUG(x) |
| #define | NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport) |
Functions | |
| EXPORT_SYMBOL (_353_io_board_present) | |
| void | _353_configure (void) |
| static int __init | crisv32_io_init (void) |
| __initcall (crisv32_io_init) | |
| int | crisv32_io_get (struct crisv32_iopin *iopin, unsigned int port, unsigned int pin) |
| int | crisv32_io_get_name (struct crisv32_iopin *iopin, const char *name) |
Variables | |
| crisv32_ioport | crisv32_ioports [] |
| crisv32_iopin | crisv32_led_net0_green |
| crisv32_iopin | crisv32_led_net0_red |
| crisv32_iopin | crisv32_led_net1_green |
| crisv32_iopin | crisv32_led_net1_red |
| crisv32_iopin | crisv32_led2_green |
| crisv32_iopin | crisv32_led2_red |
| crisv32_iopin | crisv32_led3_green |
| crisv32_iopin | crisv32_led3_red |
| static unsigned long | io_dummy |
| static struct crisv32_ioport | dummy_port |
| static struct crisv32_iopin | dummy_led |
| int | _353_io_board_present = 1 |
| #define DEBUG | ( | x | ) |
Definition at line 22 of file io.c.
Referenced by createDefaultConfig(), crisv32_eth_receive_packet(), crisv32_io_get(), crisv32_io_get_name(), nand_do_read_ecc(), nand_do_read_oob(), nand_do_write_oob(), nand_erase_nand(), nand_isbad_bbt(), nand_read_oob(), nand_read_raw(), nand_sync(), nand_wait(), nand_write_oob(), and showUsage().
| #define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport) |
| void _353_configure | ( | void | ) |
Definition at line 88 of file io.c.
References _353_io_board_present, printk, and udelay.
Referenced by crisv32_io_init().
| __initcall | ( | crisv32_io_init | ) |
| int crisv32_io_get | ( | struct crisv32_iopin * | iopin, | |
| unsigned int | port, | |||
| unsigned int | pin | |||
| ) |
Definition at line 209 of file io.c.
References crisv32_iopin::bit, crisv32_ioports, DEBUG, NBR_OF_PORTS, crisv32_iopin::port, and printk.
| int crisv32_io_get_name | ( | struct crisv32_iopin * | iopin, | |
| const char * | name | |||
| ) |
Definition at line 229 of file io.c.
References crisv32_iopin::bit, crisv32_ioports, DEBUG, crisv32_iopin::port, and printk.
| static int __init crisv32_io_init | ( | void | ) | [static] |
Definition at line 156 of file io.c.
References _353_configure(), crisv32_ioports, crisv32_led_net0_red, crisv32_led_net1_red, dummy_led, dummy_port, crisv32_ioport::lock, and spin_lock_init.
| EXPORT_SYMBOL | ( | _353_io_board_present | ) |
| int _353_io_board_present = 1 |
| struct crisv32_ioport crisv32_ioports[] |
Definition at line 25 of file io.c.
Referenced by crisv32_io_get(), crisv32_io_get_name(), and crisv32_io_init().
| struct crisv32_iopin crisv32_led2_green |
| struct crisv32_iopin crisv32_led2_red |
| struct crisv32_iopin crisv32_led3_green |
| struct crisv32_iopin crisv32_led3_red |
struct crisv32_iopin dummy_led [static] |
Initial value:
{
&dummy_port,
0
}
Definition at line 79 of file io.c.
Referenced by crisv32_io_init().
struct crisv32_ioport dummy_port [static] |
1.5.1