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

Go to the source code of this file.

Macros

#define MPP_NUM(x)   ((x) & 0xff)
 
#define MPP_SEL(x)   (((x) >> 8) & 0xf)
 
#define GENERIC_MPP(_num, _sel, _in, _out)
 
#define MPP_INPUT_MASK   GENERIC_MPP(0, 0x0, 1, 0)
 
#define MPP_OUTPUT_MASK   GENERIC_MPP(0, 0x0, 0, 1)
 

Functions

void __init orion_mpp_conf (unsigned int *mpp_list, unsigned int variant_mask, unsigned int mpp_max, void __iomem *dev_bus)
 

Macro Definition Documentation

#define GENERIC_MPP (   _num,
  _sel,
  _in,
  _out 
)
Value:
( \
/* MPP number */ ((_num) & 0xff) | \
/* MPP select value */ (((_sel) & 0xf) << 8) | \
/* may be input signal */ ((!!(_in)) << 12) | \
/* may be output signal */ ((!!(_out)) << 13))

Definition at line 22 of file mpp.h.

#define MPP_INPUT_MASK   GENERIC_MPP(0, 0x0, 1, 0)

Definition at line 28 of file mpp.h.

#define MPP_NUM (   x)    ((x) & 0xff)

Definition at line 14 of file mpp.h.

#define MPP_OUTPUT_MASK   GENERIC_MPP(0, 0x0, 0, 1)

Definition at line 29 of file mpp.h.

#define MPP_SEL (   x)    (((x) >> 8) & 0xf)

Definition at line 15 of file mpp.h.

Function Documentation

void __init orion_mpp_conf ( unsigned int mpp_list,
unsigned int  variant_mask,
unsigned int  mpp_max,
void __iomem dev_bus 
)

Definition at line 28 of file mpp.c.