Go to the documentation of this file.
10 #ifndef __ASM_SH_ADDRSPACE_H
11 #define __ASM_SH_ADDRSPACE_H
15 #include <cpu/addrspace.h>
29 #define PXSEG(a) (((unsigned long)(a)) & 0xe0000000)
35 #define P1SEGADDR(a) \
36 ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P1SEG))
37 #define P2SEGADDR(a) \
38 ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P2SEG))
39 #define P3SEGADDR(a) \
40 ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P3SEG))
41 #define P4SEGADDR(a) \
42 ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P4SEG))
47 #define P1SEGADDR(a) ({ (void)(a); BUG(); NULL; })
48 #define P2SEGADDR(a) ({ (void)(a); BUG(); NULL; })
49 #define P3SEGADDR(a) ({ (void)(a); BUG(); NULL; })
50 #define P4SEGADDR(a) ({ (void)(a); BUG(); NULL; })
55 #define IS_29BIT(a) (((unsigned long)(a)) < 0x20000000)
57 #ifdef CONFIG_SH_STORE_QUEUES
63 #define P3_ADDR_MAX (P4SEG_STORE_QUE + 0x04000000)
65 #define P3_ADDR_MAX P4SEG