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 DEBUG(x)
 
#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_led_net1_green
 
struct crisv32_iopin crisv32_led_net1_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 DEBUG (   x)

Definition at line 19 of file io.c.

#define NBR_OF_PORTS   ARRAY_SIZE(crisv32_ioports)

Definition at line 55 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 133 of file io.c.

int crisv32_io_get_name ( struct crisv32_iopin iopin,
const char name 
)

Definition at line 154 of file io.c.

Variable Documentation

struct crisv32_ioport crisv32_ioports[]

Definition at line 22 of file io.c.

struct crisv32_iopin crisv32_led2_green

Definition at line 61 of file io.c.

struct crisv32_iopin crisv32_led2_red

Definition at line 62 of file io.c.

struct crisv32_iopin crisv32_led3_green

Definition at line 63 of file io.c.

struct crisv32_iopin crisv32_led3_red

Definition at line 64 of file io.c.

struct crisv32_iopin crisv32_led_net0_green

Definition at line 57 of file io.c.

struct crisv32_iopin crisv32_led_net0_red

Definition at line 58 of file io.c.

struct crisv32_iopin crisv32_led_net1_green

Definition at line 59 of file io.c.

struct crisv32_iopin crisv32_led_net1_red

Definition at line 60 of file io.c.