USB: mos7720: remove bogus no termios change check
[linux-2.6/pdupreez.git] / include / asm-avr32 / addrspace.h
blob366794858ec7d563866d292b528c46e7def559c8
1 /*
2 * Defitions for the address spaces of the AVR32 CPUs. Heavily based on
3 * include/asm-sh/addrspace.h
5 * Copyright (C) 2004-2006 Atmel Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 #ifndef __ASM_AVR32_ADDRSPACE_H
12 #define __ASM_AVR32_ADDRSPACE_H
14 #ifdef CONFIG_MMU
16 /* Memory segments when segmentation is enabled */
17 #define P0SEG 0x00000000
18 #define P1SEG 0x80000000
19 #define P2SEG 0xa0000000
20 #define P3SEG 0xc0000000
21 #define P4SEG 0xe0000000
23 /* Returns the privileged segment base of a given address */
24 #define PXSEG(a) (((unsigned long)(a)) & 0xe0000000)
26 /* Returns the physical address of a PnSEG (n=1,2) address */
27 #define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff)
30 * Map an address to a certain privileged segment
32 #define P1SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) \
33 | P1SEG))
34 #define P2SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) \
35 | P2SEG))
36 #define P3SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) \
37 | P3SEG))
38 #define P4SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) \
39 | P4SEG))
41 #endif /* CONFIG_MMU */
43 #endif /* __ASM_AVR32_ADDRSPACE_H */