Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
hardware.h File Reference
#include <asm/sizes.h>
#include <mach/mxc.h>
#include <mach/mx6q.h>
#include <mach/mx50.h>
#include <mach/mx51.h>
#include <mach/mx53.h>
#include <mach/mx3x.h>
#include <mach/mx31.h>
#include <mach/mx35.h>
#include <mach/mx2x.h>
#include <mach/mx21.h>
#include <mach/mx27.h>
#include <mach/mx1.h>
#include <mach/mx25.h>

Go to the source code of this file.

Macros

#define addr_in_module(addr, mod)   ((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE)
 
#define IMX_IO_P2V_MODULE(addr, module)
 
#define IMX_IO_P2V(x)
 
#define IMX_IO_ADDRESS(x)   IOMEM(IMX_IO_P2V(x))
 
#define imx_map_entry(soc, name, _type)
 
#define IMX_GPIO_NR(bank, nr)   (((bank) - 1) * 32 + (nr))
 

Macro Definition Documentation

#define addr_in_module (   addr,
  mod 
)    ((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE)

Definition at line 25 of file hardware.h.

#define IMX_GPIO_NR (   bank,
  nr 
)    (((bank) - 1) * 32 + (nr))

Definition at line 132 of file hardware.h.

#define IMX_IO_ADDRESS (   x)    IOMEM(IMX_IO_P2V(x))

Definition at line 106 of file hardware.h.

#define IMX_IO_P2V (   x)
Value:
( \
(((x) & 0x80000000) >> 7) | \
(0xf4000000 + \
(((x) & 0x50000000) >> 6) + \
(((x) & 0x0b000000) >> 4) + \
(((x) & 0x000fffff))))

Definition at line 99 of file hardware.h.

#define IMX_IO_P2V_MODULE (   addr,
  module 
)
Value:
(((addr) - module ## _BASE_ADDR) < module ## _SIZE ? \
(addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0)

Definition at line 28 of file hardware.h.

#define imx_map_entry (   soc,
  name,
  _type 
)
Value:
{ \
.virtual = soc ## _IO_P2V(soc ## _ ## name ## _BASE_ADDR), \
.pfn = __phys_to_pfn(soc ## _ ## name ## _BASE_ADDR), \
.length = soc ## _ ## name ## _SIZE, \
.type = _type, \
}

Definition at line 123 of file hardware.h.