Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hardware.h File Reference
#include <mach/addr-map.h>
#include <asm/cputype.h>

Go to the source code of this file.

Macros

#define UNCACHED_PHYS_0   0xff000000
 
#define UNCACHED_ADDR   UNCACHED_PHYS_0
 
#define io_v2p(x)   (0x3c000000 + ((x) & 0x01ffffff) + (((x) & 0x0e000000) << 1))
 
#define io_p2v(x)   IOMEM(0xf2000000 + ((x) & 0x01ffffff) + (((x) & 0x1c000000) >> 1))
 
#define __REG(x)   (*((volatile u32 __iomem *)io_p2v(x)))
 
#define __REG2(x, y)   (*(volatile u32 __iomem*)((u32)&__REG(x) + (y)))
 
#define __PREG(x)   (io_v2p((u32)&(x)))
 
#define __cpu_is_pxa210(id)   (0)
 
#define __cpu_is_pxa250(id)   (0)
 
#define __cpu_is_pxa255(id)   (0)
 
#define __cpu_is_pxa25x(id)   (0)
 
#define __cpu_is_pxa27x(id)   (0)
 
#define __cpu_is_pxa300(id)   (0)
 
#define __cpu_is_pxa310(id)   (0)
 
#define __cpu_is_pxa320(id)   (0)
 
#define __cpu_is_pxa930(id)   (0)
 
#define __cpu_is_pxa935(id)   (0)
 
#define __cpu_is_pxa955(id)   (0)
 
#define cpu_is_pxa210()
 
#define cpu_is_pxa250()
 
#define cpu_is_pxa255()
 
#define cpu_is_pxa25x()
 
#define cpu_is_pxa27x()
 
#define cpu_is_pxa300()
 
#define cpu_is_pxa310()
 
#define cpu_is_pxa320()
 
#define cpu_is_pxa930()
 
#define cpu_is_pxa935()
 
#define cpu_is_pxa955()
 
#define __cpu_is_pxa2xx(id)   (0)
 
#define __cpu_is_pxa3xx(id)   (0)
 
#define __cpu_is_pxa93x(id)   (0)
 
#define __cpu_is_pxa95x(id)   (0)
 
#define cpu_is_pxa2xx()
 
#define cpu_is_pxa3xx()
 
#define cpu_is_pxa93x()
 
#define cpu_is_pxa95x()
 

Functions

unsigned int get_memclk_frequency_10khz (void)
 
unsigned long get_clock_tick_rate (void)
 

Macro Definition Documentation

#define __cpu_is_pxa210 (   id)    (0)

Definition at line 131 of file hardware.h.

#define __cpu_is_pxa250 (   id)    (0)

Definition at line 132 of file hardware.h.

#define __cpu_is_pxa255 (   id)    (0)

Definition at line 133 of file hardware.h.

#define __cpu_is_pxa25x (   id)    (0)

Definition at line 134 of file hardware.h.

#define __cpu_is_pxa27x (   id)    (0)

Definition at line 144 of file hardware.h.

#define __cpu_is_pxa2xx (   id)    (0)

Definition at line 275 of file hardware.h.

#define __cpu_is_pxa300 (   id)    (0)

Definition at line 154 of file hardware.h.

#define __cpu_is_pxa310 (   id)    (0)

Definition at line 164 of file hardware.h.

#define __cpu_is_pxa320 (   id)    (0)

Definition at line 174 of file hardware.h.

#define __cpu_is_pxa3xx (   id)    (0)

Definition at line 287 of file hardware.h.

#define __cpu_is_pxa930 (   id)    (0)

Definition at line 184 of file hardware.h.

#define __cpu_is_pxa935 (   id)    (0)

Definition at line 194 of file hardware.h.

#define __cpu_is_pxa93x (   id)    (0)

Definition at line 297 of file hardware.h.

#define __cpu_is_pxa955 (   id)    (0)

Definition at line 205 of file hardware.h.

#define __cpu_is_pxa95x (   id)    (0)

Definition at line 306 of file hardware.h.

#define __PREG (   x)    (io_v2p((u32)&(x)))

Definition at line 50 of file hardware.h.

#define __REG (   x)    (*((volatile u32 __iomem *)io_p2v(x)))

Definition at line 43 of file hardware.h.

#define __REG2 (   x,
  y 
)    (*(volatile u32 __iomem*)((u32)&__REG(x) + (y)))

Definition at line 47 of file hardware.h.

#define cpu_is_pxa210 ( )
Value:
({ \
__cpu_is_pxa210(read_cpuid_id()); \
})

Definition at line 208 of file hardware.h.

#define cpu_is_pxa250 ( )
Value:
({ \
__cpu_is_pxa250(read_cpuid_id()); \
})

Definition at line 213 of file hardware.h.

#define cpu_is_pxa255 ( )
Value:
({ \
__cpu_is_pxa255(read_cpuid_id()); \
})

Definition at line 218 of file hardware.h.

#define cpu_is_pxa25x ( )
Value:
({ \
__cpu_is_pxa25x(read_cpuid_id()); \
})

Definition at line 223 of file hardware.h.

#define cpu_is_pxa27x ( )
Value:
({ \
__cpu_is_pxa27x(read_cpuid_id()); \
})

Definition at line 228 of file hardware.h.

#define cpu_is_pxa2xx ( )
Value:
({ \
__cpu_is_pxa2xx(read_cpuid_id()); \
})

Definition at line 309 of file hardware.h.

#define cpu_is_pxa300 ( )
Value:
({ \
__cpu_is_pxa300(read_cpuid_id()); \
})

Definition at line 233 of file hardware.h.

#define cpu_is_pxa310 ( )
Value:
({ \
__cpu_is_pxa310(read_cpuid_id()); \
})

Definition at line 238 of file hardware.h.

#define cpu_is_pxa320 ( )
Value:
({ \
__cpu_is_pxa320(read_cpuid_id()); \
})

Definition at line 243 of file hardware.h.

#define cpu_is_pxa3xx ( )
Value:
({ \
__cpu_is_pxa3xx(read_cpuid_id()); \
})

Definition at line 314 of file hardware.h.

#define cpu_is_pxa930 ( )
Value:
({ \
__cpu_is_pxa930(read_cpuid_id()); \
})

Definition at line 248 of file hardware.h.

#define cpu_is_pxa935 ( )
Value:
({ \
__cpu_is_pxa935(read_cpuid_id()); \
})

Definition at line 253 of file hardware.h.

#define cpu_is_pxa93x ( )
Value:
({ \
__cpu_is_pxa93x(read_cpuid_id()); \
})

Definition at line 319 of file hardware.h.

#define cpu_is_pxa955 ( )
Value:
({ \
__cpu_is_pxa955(read_cpuid_id()); \
})

Definition at line 258 of file hardware.h.

#define cpu_is_pxa95x ( )
Value:
({ \
__cpu_is_pxa95x(read_cpuid_id()); \
})

Definition at line 324 of file hardware.h.

#define io_p2v (   x)    IOMEM(0xf2000000 + ((x) & 0x01ffffff) + (((x) & 0x1c000000) >> 1))

Definition at line 40 of file hardware.h.

#define io_v2p (   x)    (0x3c000000 + ((x) & 0x01ffffff) + (((x) & 0x0e000000) << 1))

Definition at line 39 of file hardware.h.

#define UNCACHED_ADDR   UNCACHED_PHYS_0

Definition at line 23 of file hardware.h.

#define UNCACHED_PHYS_0   0xff000000

Definition at line 22 of file hardware.h.

Function Documentation

unsigned long get_clock_tick_rate ( void  )

Definition at line 44 of file generic.c.

unsigned int get_memclk_frequency_10khz ( void  )