os/linux-2.6-tag--devboard-R2_10-4/include/asm-cris/arch-v32/io.h File Reference

#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.

Data Structures

struct  crisv32_ioport
struct  crisv32_iopin

Defines

#define LED_OFF   0x00
#define LED_GREEN   0x01
#define LED_RED   0x02
#define LED_ORANGE   (LED_GREEN | LED_RED)
#define LED_NETWORK_GRP0_SET(x)
#define LED_NETWORK_GRP0_SET_G(x)
#define LED_NETWORK_GRP0_SET_R(x)
#define LED_NETWORK_GRP0_SET(x)
#define LED_NETWORK_GRP1_SET_G(x)
#define LED_NETWORK_GRP1_SET_R(x)
#define LED_ACTIVE_SET(x)
#define LED_ACTIVE_SET_G(x)
#define LED_ACTIVE_SET_R(x)
#define LED_DISK_WRITE(x)
#define LED_DISK_READ(x)

Enumerations

enum  crisv32_io_dir { crisv32_io_dir_in = 0, crisv32_io_dir_out = 1 }

Functions

static void crisv32_io_set (struct crisv32_iopin *iopin, int val)
static void crisv32_io_set_dir (struct crisv32_iopin *iopin, enum crisv32_io_dir dir)
static int crisv32_io_rd (struct crisv32_iopin *iopin)
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_led1_green
crisv32_iopin crisv32_led1_red
crisv32_iopin crisv32_led2_green
crisv32_iopin crisv32_led2_red
crisv32_iopin crisv32_led3_green
crisv32_iopin crisv32_led3_red
crisv32_iopin crisv32_led_net0_green
crisv32_iopin crisv32_led_net0_red
crisv32_iopin crisv32_led_net1_green
crisv32_iopin crisv32_led_net1_red


Define Documentation

#define LED_ACTIVE_SET ( x   ) 

Definition at line 93 of file io.h.

#define LED_ACTIVE_SET_G ( x   ) 

Definition at line 94 of file io.h.

Referenced by gpio_leds_ioctl().

#define LED_ACTIVE_SET_R ( x   ) 

Definition at line 95 of file io.h.

Referenced by gpio_leds_ioctl().

#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_GREEN   0x01

Definition at line 83 of file io.h.

#define LED_NETWORK_GRP0_SET ( x   ) 

Definition at line 90 of file io.h.

#define LED_NETWORK_GRP0_SET ( x   ) 

Definition at line 90 of file io.h.

#define LED_NETWORK_GRP0_SET_G ( x   ) 

Definition at line 88 of file io.h.

#define LED_NETWORK_GRP0_SET_R ( x   ) 

Definition at line 89 of file io.h.

#define LED_NETWORK_GRP1_SET_G ( x   ) 

Definition at line 91 of file io.h.

#define LED_NETWORK_GRP1_SET_R ( x   ) 

Definition at line 92 of file io.h.

#define LED_OFF   0x00

Definition at line 82 of file io.h.

Referenced by nand_wait(), and nand_wait_ready().

#define LED_ORANGE   (LED_GREEN | LED_RED)

Definition at line 85 of file io.h.

#define LED_RED   0x02

Definition at line 84 of file io.h.


Enumeration Type Documentation

enum crisv32_io_dir

Enumerator:
crisv32_io_dir_in 
crisv32_io_dir_out 

Definition at line 9 of file io.h.


Function Documentation

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.


Variable Documentation

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

Definition at line 65 of file io.c.

struct crisv32_iopin crisv32_led2_red

Definition at line 66 of file io.c.

struct crisv32_iopin crisv32_led3_green

Definition at line 67 of file io.c.

struct crisv32_iopin crisv32_led3_red

Definition at line 68 of file io.c.

struct crisv32_iopin crisv32_led_net0_green

Definition at line 61 of file io.c.

struct crisv32_iopin crisv32_led_net0_red

Definition at line 62 of file io.c.

Referenced by crisv32_io_init().

struct crisv32_iopin crisv32_led_net1_green

Definition at line 63 of file io.c.

struct crisv32_iopin crisv32_led_net1_red

Definition at line 64 of file io.c.

Referenced by crisv32_io_init().


Generated on Fri Nov 28 00:08:27 2008 for elphel by  doxygen 1.5.1