Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ilsel.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bitmap.h>
#include <linux/io.h>
#include <mach/ilsel.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define ILSEL_BASE   0xb8100004
 
#define ILSEL_LEVELS   15
 

Functions

int ilsel_enable (ilsel_source_t set)
 
 EXPORT_SYMBOL_GPL (ilsel_enable)
 
int ilsel_enable_fixed (ilsel_source_t set, unsigned int level)
 
 EXPORT_SYMBOL_GPL (ilsel_enable_fixed)
 
void ilsel_disable (unsigned int irq)
 
 EXPORT_SYMBOL_GPL (ilsel_disable)
 

Macro Definition Documentation

#define ILSEL_BASE   0xb8100004

Definition at line 31 of file ilsel.c.

#define ILSEL_LEVELS   15

Definition at line 32 of file ilsel.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file ilsel.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ilsel_enable  )
EXPORT_SYMBOL_GPL ( ilsel_enable_fixed  )
EXPORT_SYMBOL_GPL ( ilsel_disable  )
void ilsel_disable ( unsigned int  irq)

ilsel_disable - Disable an ILSEL set : Bit position for ILSEL set value (retval from enable routines)

Disable a previously enabled ILSEL set.

Definition at line 144 of file ilsel.c.

int ilsel_enable ( ilsel_source_t  set)

ilsel_enable - Enable an ILSEL set. : ILSEL source (see ilsel_source_t enum in include/asm-sh/ilsel.h).

Enables a given non-aliased ILSEL source (<= ILSEL_KEY) at the highest available interrupt level. Callers should take care to order callsites noting descending interrupt levels. Aliasing FPGA and external board IRQs need to use ilsel_enable_fixed().

The return value is an IRQ number that can later be taken down with ilsel_disable().

Definition at line 95 of file ilsel.c.

int ilsel_enable_fixed ( ilsel_source_t  set,
unsigned int  level 
)

ilsel_enable_fixed - Enable an ILSEL set at a fixed interrupt level : ILSEL source (see ilsel_source_t enum in include/asm-sh/ilsel.h). : Interrupt level (1 - 15)

Enables a given ILSEL source at a fixed interrupt level. Necessary both for level reservation as well as for aliased sources that only exist on special ILSEL::s.

Returns an IRQ number (as ilsel_enable()).

Definition at line 125 of file ilsel.c.