Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pinmux.c File Reference
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <hwregs/reg_map.h>
#include <hwregs/reg_rdwr.h>
#include <pinmux.h>
#include <hwregs/pinmux_defs.h>

Go to the source code of this file.

Macros

#define PORT_PINS   18
 
#define PORTS   4
 

Functions

int crisv32_pinmux_init (void)
 
int crisv32_pinmux_alloc (int port, int first_pin, int last_pin, enum pin_mode mode)
 
int crisv32_pinmux_alloc_fixed (enum fixed_function function)
 
int crisv32_pinmux_dealloc (int port, int first_pin, int last_pin)
 
int crisv32_pinmux_dealloc_fixed (enum fixed_function function)
 
void crisv32_pinmux_dump (void)
 
 __initcall (crisv32_pinmux_init)
 

Macro Definition Documentation

#define PORT_PINS   18

Definition at line 21 of file pinmux.c.

#define PORTS   4

Definition at line 22 of file pinmux.c.

Function Documentation

__initcall ( crisv32_pinmux_init  )
int crisv32_pinmux_alloc ( int  port,
int  first_pin,
int  last_pin,
enum pin_mode  mode 
)

Definition at line 50 of file pinmux.c.

int crisv32_pinmux_alloc_fixed ( enum fixed_function  function)

Definition at line 84 of file pinmux.c.

int crisv32_pinmux_dealloc ( int  port,
int  first_pin,
int  last_pin 
)

Definition at line 191 of file pinmux.c.

int crisv32_pinmux_dealloc_fixed ( enum fixed_function  function)

Definition at line 212 of file pinmux.c.

void crisv32_pinmux_dump ( void  )

Definition at line 296 of file pinmux.c.

int crisv32_pinmux_init ( void  )

Definition at line 29 of file pinmux.c.