Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
io_interface_mux.h File Reference

Go to the source code of this file.

Enumerations

enum  cris_io_interface {
  if_eth = 0, if_serial_0, if_serial_1, if_serial_2,
  if_serial_3, if_sync_serial_1, if_sync_serial_3, if_shared_ram,
  if_shared_ram_w, if_par_0, if_par_1, if_par_w,
  if_scsi8_0, if_scsi8_1, if_scsi_w, if_ata,
  if_csp, if_i2c, if_usb_1, if_usb_2,
  if_gpio_grp_a, if_gpio_grp_b, if_gpio_grp_c, if_gpio_grp_d,
  if_gpio_grp_e, if_gpio_grp_f, if_max_interfaces, if_unclaimed
}
 

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))
 

Enumeration Type Documentation

Enumerator:
if_eth 
if_serial_0 
if_serial_1 
if_serial_2 
if_serial_3 
if_sync_serial_1 
if_sync_serial_3 
if_shared_ram 
if_shared_ram_w 
if_par_0 
if_par_1 
if_par_w 
if_scsi8_0 
if_scsi8_1 
if_scsi_w 
if_ata 
if_csp 
if_i2c 
if_usb_1 
if_usb_2 
if_gpio_grp_a 
if_gpio_grp_b 
if_gpio_grp_c 
if_gpio_grp_d 
if_gpio_grp_e 
if_gpio_grp_f 
if_max_interfaces 
if_unclaimed 

Definition at line 15 of file io_interface_mux.h.

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.