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

Go to the source code of this file.

Macros

#define mr32(reg)   readl(regs + reg)
 
#define mw32(reg, val)   writel((val), regs + reg)
 
#define mw32_f(reg, val)
 
#define iow32(reg, val)   outl(val, (unsigned long)(regs + reg))
 
#define ior32(reg)   inl((unsigned long)(regs + reg))
 
#define iow16(reg, val)   outw((unsigned long)(val, regs + reg))
 
#define ior16(reg)   inw((unsigned long)(regs + reg))
 
#define iow8(reg, val)   outb((unsigned long)(val, regs + reg))
 
#define ior8(reg)   inb((unsigned long)(regs + reg))
 

Macro Definition Documentation

#define ior16 (   reg)    inw((unsigned long)(regs + reg))

Definition at line 40 of file mv_chips.h.

#define ior32 (   reg)    inl((unsigned long)(regs + reg))

Definition at line 38 of file mv_chips.h.

#define ior8 (   reg)    inb((unsigned long)(regs + reg))

Definition at line 42 of file mv_chips.h.

#define iow16 (   reg,
  val 
)    outw((unsigned long)(val, regs + reg))

Definition at line 39 of file mv_chips.h.

#define iow32 (   reg,
  val 
)    outl(val, (unsigned long)(regs + reg))

Definition at line 37 of file mv_chips.h.

#define iow8 (   reg,
  val 
)    outb((unsigned long)(val, regs + reg))

Definition at line 41 of file mv_chips.h.

#define mr32 (   reg)    readl(regs + reg)

Definition at line 30 of file mv_chips.h.

#define mw32 (   reg,
  val 
)    writel((val), regs + reg)

Definition at line 31 of file mv_chips.h.

#define mw32_f (   reg,
  val 
)
Value:
do { \
mw32(reg, val); \
mr32(reg); \
} while (0)

Definition at line 32 of file mv_chips.h.