Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
io.c File Reference
#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 <mach/pinmux.h>
#include <hwregs/gio_defs.h>

Go to the source code of this file.

Macros

#define NBR_OF_PORTS   ARRAY_SIZE(crisv32_ioports)
 

Functions

 __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

struct crisv32_ioport crisv32_ioports []
 
struct crisv32_iopin crisv32_led_net0_green
 
struct crisv32_iopin crisv32_led_net0_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
 

Macro Definition Documentation

#define NBR_OF_PORTS   ARRAY_SIZE(crisv32_ioports)

Definition at line 39 of file io.c.

Function Documentation

__initcall ( crisv32_io_init  )
int crisv32_io_get ( struct crisv32_iopin iopin,
unsigned int  port,
unsigned int  pin 
)

Definition at line 100 of file io.c.

int crisv32_io_get_name ( struct crisv32_iopin iopin,
const char name 
)

Definition at line 117 of file io.c.

Variable Documentation

struct crisv32_ioport crisv32_ioports[]
Initial value:
= {
{
(unsigned long *)REG_ADDR(gio, regi_gio, rw_pa_oe),
(unsigned long *)REG_ADDR(gio, regi_gio, rw_pa_dout),
(unsigned long *)REG_ADDR(gio, regi_gio, r_pa_din),
32
},
{
(unsigned long *)REG_ADDR(gio, regi_gio, rw_pb_oe),
(unsigned long *)REG_ADDR(gio, regi_gio, rw_pb_dout),
(unsigned long *)REG_ADDR(gio, regi_gio, r_pb_din),
32
},
{
(unsigned long *)REG_ADDR(gio, regi_gio, rw_pc_oe),
(unsigned long *)REG_ADDR(gio, regi_gio, rw_pc_dout),
(unsigned long *)REG_ADDR(gio, regi_gio, r_pc_din),
16
},
}

Definition at line 18 of file io.c.

struct crisv32_iopin crisv32_led2_green

Definition at line 43 of file io.c.

struct crisv32_iopin crisv32_led2_red

Definition at line 44 of file io.c.

struct crisv32_iopin crisv32_led3_green

Definition at line 45 of file io.c.

struct crisv32_iopin crisv32_led3_red

Definition at line 46 of file io.c.

struct crisv32_iopin crisv32_led_net0_green

Definition at line 41 of file io.c.

struct crisv32_iopin crisv32_led_net0_red

Definition at line 42 of file io.c.