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>
#include <hwregs/clkgen_defs.h>

Go to the source code of this file.

Macros

#define PINS   80
 
#define PORT_PINS   32
 
#define PORTS   3
 

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 PINS   80

Definition at line 22 of file pinmux.c.

#define PORT_PINS   32

Definition at line 23 of file pinmux.c.

#define PORTS   3

Definition at line 24 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 48 of file pinmux.c.

int crisv32_pinmux_alloc_fixed ( enum fixed_function  function)

Definition at line 83 of file pinmux.c.

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

Definition at line 239 of file pinmux.c.

int crisv32_pinmux_dealloc_fixed ( enum fixed_function  function)

Definition at line 261 of file pinmux.c.

void crisv32_pinmux_dump ( void  )

Definition at line 372 of file pinmux.c.

int crisv32_pinmux_init ( void  )

Definition at line 32 of file pinmux.c.