#include <linux/spinlock.h>
#include <asm/arch/hwregs/reg_map.h>
#include <asm/arch/hwregs/reg_rdwr.h>
#include <asm/arch/hwregs/gio_defs.h>
Include dependency graph for io.h:
Go to the source code of this file.
#define LED_ACTIVE_SET_G | ( | x | ) |
#define LED_ACTIVE_SET_R | ( | x | ) |
#define LED_DISK_READ | ( | x | ) |
Definition at line 97 of file io.h.
Referenced by cris_atapi_input_bytes(), cris_atapi_output_bytes(), cris_dma_intr(), and cris_dma_start().
#define LED_DISK_WRITE | ( | x | ) |
Definition at line 96 of file io.h.
Referenced by cris_atapi_output_bytes(), cris_dma_intr(), and cris_dma_start().
#define LED_OFF 0x00 |
enum crisv32_io_dir |
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 crisv32_io_rd | ( | struct crisv32_iopin * | iopin | ) | [inline, static] |
Definition at line 72 of file io.h.
References crisv32_iopin::bit, crisv32_ioport::data_in, and crisv32_iopin::port.
static void crisv32_io_set | ( | struct crisv32_iopin * | iopin, | |
int | val | |||
) | [inline, static] |
Definition at line 44 of file io.h.
References crisv32_iopin::bit, crisv32_ioport::data, flags, crisv32_ioport::lock, and crisv32_iopin::port.
static void crisv32_io_set_dir | ( | struct crisv32_iopin * | iopin, | |
enum crisv32_io_dir | dir | |||
) | [inline, static] |
Definition at line 58 of file io.h.
References crisv32_iopin::bit, crisv32_io_dir_in, flags, crisv32_ioport::lock, crisv32_ioport::oe, and crisv32_iopin::port.
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_led1_green |
struct crisv32_iopin crisv32_led1_red |
struct crisv32_iopin crisv32_led2_green |
struct crisv32_iopin crisv32_led2_red |
struct crisv32_iopin crisv32_led3_green |
struct crisv32_iopin crisv32_led3_red |