Go to the documentation of this file.
10 #ifndef __ASM_M32R_ADDRSPACE_H
11 #define __ASM_M32R_ADDRSPACE_H
16 #define KUSEG 0x00000000
17 #define KSEG0 0x80000000
18 #define KSEG1 0xa0000000
19 #define KSEG2 0xc0000000
20 #define KSEG3 0xe0000000
28 #define KSEGX(a) (((unsigned long)(a)) & 0xe0000000)
30 #define KSEGX(a) ((a) & 0xe0000000)
37 #define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff)
39 #define PHYSADDR(a) ((a) & 0x1fffffff)
46 #define KSEG0ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG0))
47 #define KSEG1ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG1))
48 #define KSEG2ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG2))
49 #define KSEG3ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG3))
51 #define KSEG0ADDR(a) (((a) & 0x1fffffff) | KSEG0)
52 #define KSEG1ADDR(a) (((a) & 0x1fffffff) | KSEG1)
53 #define KSEG2ADDR(a) (((a) & 0x1fffffff) | KSEG2)
54 #define KSEG3ADDR(a) (((a) & 0x1fffffff) | KSEG3)