Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
io_interface_mux.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/init.h>
#include <arch/svinto.h>
#include <asm/io.h>
#include <arch/io_interface_mux.h>
#include <arch/system.h>

Go to the source code of this file.

Data Structures

struct  watcher
 
struct  if_group
 
interface  interface
 

Macros

#define DBG(s)
 
#define SETS(var, reg, field, val)
 

Enumerations

enum  io_if_group {
  group_a = (1<<0), group_b = (1<<1), group_c = (1<<2), group_d = (1<<3),
  group_e = (1<<4), group_f = (1<<5)
}
 

Functions

int cris_request_io_interface (enum cris_io_interface ioif, const char *device_id)
 
void cris_free_io_interface (enum cris_io_interface ioif)
 
int cris_io_interface_allocate_pins (const enum cris_io_interface ioif, const char port, const unsigned start_bit, const unsigned stop_bit)
 
int cris_io_interface_free_pins (const enum cris_io_interface ioif, const char port, const unsigned start_bit, const unsigned stop_bit)
 
int cris_io_interface_register_watcher (void(*notify)(const unsigned int gpio_in_available, const unsigned int gpio_out_available, const unsigned char pa_available, const unsigned char pb_available))
 
void cris_io_interface_delete_watcher (void(*notify)(const unsigned int gpio_in_available, const unsigned int gpio_out_available, const unsigned char pa_available, const unsigned char pb_available))
 
 module_init (cris_io_interface_init)
 
 EXPORT_SYMBOL (cris_request_io_interface)
 
 EXPORT_SYMBOL (cris_free_io_interface)
 
 EXPORT_SYMBOL (cris_io_interface_allocate_pins)
 
 EXPORT_SYMBOL (cris_io_interface_free_pins)
 
 EXPORT_SYMBOL (cris_io_interface_register_watcher)
 
 EXPORT_SYMBOL (cris_io_interface_delete_watcher)
 

Macro Definition Documentation

#define DBG (   s)

Definition at line 20 of file io_interface_mux.c.

#define SETS (   var,
  reg,
  field,
  val 
)
Value:
var = (var & ~IO_MASK_(reg##_, field##_)) | \
IO_STATE_(reg##_, field##_, _##val)

Definition at line 23 of file io_interface_mux.c.

Enumeration Type Documentation

Enumerator:
group_a 
group_b 
group_c 
group_d 
group_e 
group_f 

Definition at line 26 of file io_interface_mux.c.

Function Documentation

void cris_free_io_interface ( enum cris_io_interface  ioif)

Definition at line 851 of file io_interface_mux.c.

int cris_io_interface_allocate_pins ( const enum cris_io_interface  ioif,
const char  port,
const unsigned  start_bit,
const unsigned  stop_bit 
)

Definition at line 939 of file io_interface_mux.c.

void cris_io_interface_delete_watcher ( void(*)(const unsigned int gpio_in_available, const unsigned int gpio_out_available, const unsigned char pa_available, const unsigned char pb_available)  notify)

Definition at line 1126 of file io_interface_mux.c.

int cris_io_interface_free_pins ( const enum cris_io_interface  ioif,
const char  port,
const unsigned  start_bit,
const unsigned  stop_bit 
)

Definition at line 1013 of file io_interface_mux.c.

int cris_io_interface_register_watcher ( void(*)(const unsigned int gpio_in_available, const unsigned int gpio_out_available, const unsigned char pa_available, const unsigned char pb_available)  notify)

Definition at line 1098 of file io_interface_mux.c.

int cris_request_io_interface ( enum cris_io_interface  ioif,
const char device_id 
)

Definition at line 593 of file io_interface_mux.c.

EXPORT_SYMBOL ( cris_request_io_interface  )
EXPORT_SYMBOL ( cris_free_io_interface  )
EXPORT_SYMBOL ( cris_io_interface_allocate_pins  )
EXPORT_SYMBOL ( cris_io_interface_free_pins  )
EXPORT_SYMBOL ( cris_io_interface_delete_watcher  )
module_init ( cris_io_interface_init  )