Go to the documentation of this file. 1 #ifndef _ASM_SCORE_FIXMAP_H
2 #define _ASM_SCORE_FIXMAP_H
6 #define PHY_RAM_BASE 0x00000000
7 #define PHY_IO_BASE 0x10000000
9 #define VIRTUAL_RAM_BASE 0xa0000000
10 #define VIRTUAL_IO_BASE 0xb0000000
12 #define RAM_SPACE_SIZE 0x10000000
13 #define IO_SPACE_SIZE 0x10000000
16 #define KSEG1 0xa0000000
44 #define FIX_N_COLOURS 8
57 #define FIXADDR_TOP ((unsigned long)(long)(int)0xfefe0000)
58 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
59 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
61 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
62 #define __virt_to_fix(x) \
63 ((FIXADDR_TOP - ((x) & PAGE_MASK)) >> PAGE_SHIFT)
72 static inline unsigned long fix_to_virt(
const unsigned int idx)
77 static inline unsigned long virt_to_fix(
const unsigned long vaddr)