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

Go to the source code of this file.

Enumerations

enum  ilsel_source_t {
  ILSEL_NONE, ILSEL_LAN, ILSEL_USBH_I, ILSEL_USBH_S,
  ILSEL_USBH_V, ILSEL_RTC, ILSEL_USBP_I, ILSEL_USBP_S,
  ILSEL_USBP_V, ILSEL_KEY, ILSEL_FPGA0, ILSEL_FPGA1,
  ILSEL_EX1, ILSEL_EX2, ILSEL_EX3, ILSEL_EX4,
  ILSEL_FPGA2 = ILSEL_FPGA0, ILSEL_FPGA3 = ILSEL_FPGA1, ILSEL_EX5 = ILSEL_EX1, ILSEL_EX6 = ILSEL_EX2,
  ILSEL_EX7 = ILSEL_EX3, ILSEL_EX8 = ILSEL_EX4
}
 

Functions

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

Enumeration Type Documentation

Enumerator:
ILSEL_NONE 
ILSEL_LAN 
ILSEL_USBH_I 
ILSEL_USBH_S 
ILSEL_USBH_V 
ILSEL_RTC 
ILSEL_USBP_I 
ILSEL_USBP_S 
ILSEL_USBP_V 
ILSEL_KEY 
ILSEL_FPGA0 
ILSEL_FPGA1 
ILSEL_EX1 
ILSEL_EX2 
ILSEL_EX3 
ILSEL_EX4 
ILSEL_FPGA2 
ILSEL_FPGA3 
ILSEL_EX5 
ILSEL_EX6 
ILSEL_EX7 
ILSEL_EX8 

Definition at line 4 of file ilsel.h.

Function Documentation

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.