~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/mach-generic/spaces.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * This file is subject to the terms and conditions of the GNU General Public
  3  * License.  See the file "COPYING" in the main directory of this archive
  4  * for more details.
  5  *
  6  * Copyright (C) 1994 - 1999, 2000, 03, 04 Ralf Baechle
  7  * Copyright (C) 2000, 2002  Maciej W. Rozycki
  8  * Copyright (C) 1990, 1999, 2000 Silicon Graphics, Inc.
  9  */
 10 #ifndef _ASM_MACH_GENERIC_SPACES_H
 11 #define _ASM_MACH_GENERIC_SPACES_H
 12 
 13 #include <linux/const.h>
 14 
 15 #include <asm/mipsregs.h>
 16 
 17 #ifndef IO_SPACE_LIMIT
 18 #define IO_SPACE_LIMIT 0xffff
 19 #endif
 20 
 21 /*
 22  * This gives the physical RAM offset.
 23  */
 24 #ifndef __ASSEMBLY__
 25 # if defined(CONFIG_MIPS_AUTO_PFN_OFFSET)
 26 #  define PHYS_OFFSET           ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET))
 27 # elif !defined(PHYS_OFFSET)
 28 #  define PHYS_OFFSET           _AC(0, UL)
 29 # endif
 30 #endif /* __ASSEMBLY__ */
 31 
 32 #ifdef CONFIG_32BIT
 33 #define CAC_BASE                _AC(0x80000000, UL)
 34 #ifndef IO_BASE
 35 #define IO_BASE                 _AC(0xa0000000, UL)
 36 #endif
 37 #ifndef UNCAC_BASE
 38 #define UNCAC_BASE              _AC(0xa0000000, UL)
 39 #endif
 40 
 41 #ifndef MAP_BASE
 42 #define MAP_BASE                _AC(0xc0000000, UL)
 43 #endif
 44 
 45 /*
 46  * Memory above this physical address will be considered highmem.
 47  */
 48 #ifndef HIGHMEM_START
 49 #define HIGHMEM_START           _AC(0x20000000, UL)
 50 #endif
 51 
 52 #define CKSEG0ADDR_OR_64BIT(x)  CKSEG0ADDR(x)
 53 #define CKSEG1ADDR_OR_64BIT(x)  CKSEG1ADDR(x)
 54 #endif /* CONFIG_32BIT */
 55 
 56 #ifdef CONFIG_64BIT
 57 
 58 #ifndef CAC_BASE
 59 #define CAC_BASE        PHYS_TO_XKPHYS(read_c0_config() & CONF_CM_CMASK, 0)
 60 #endif
 61 
 62 #ifndef IO_BASE
 63 #define IO_BASE                 _AC(0x9000000000000000, UL)
 64 #endif
 65 
 66 #ifndef UNCAC_BASE
 67 #define UNCAC_BASE              _AC(0x9000000000000000, UL)
 68 #endif
 69 
 70 #ifndef MAP_BASE
 71 #define MAP_BASE                _AC(0xc000000000000000, UL)
 72 #endif
 73 
 74 /*
 75  * Memory above this physical address will be considered highmem.
 76  * Fixme: 59 bits is a fictive number and makes assumptions about processors
 77  * in the distant future.  Nobody will care for a few years :-)
 78  */
 79 #ifndef HIGHMEM_START
 80 #define HIGHMEM_START           (_AC(1, UL) << _AC(59, UL))
 81 #endif
 82 
 83 #define TO_PHYS(x)              (             ((x) & TO_PHYS_MASK))
 84 #define TO_CAC(x)               (CAC_BASE   | ((x) & TO_PHYS_MASK))
 85 #define TO_UNCAC(x)             (UNCAC_BASE | ((x) & TO_PHYS_MASK))
 86 
 87 #define CKSEG0ADDR_OR_64BIT(x)  TO_CAC(x)
 88 #define CKSEG1ADDR_OR_64BIT(x)  TO_UNCAC(x)
 89 #endif /* CONFIG_64BIT */
 90 
 91 /*
 92  * This handles the memory map.
 93  */
 94 #ifndef PAGE_OFFSET
 95 #define PAGE_OFFSET             (CAC_BASE + PHYS_OFFSET)
 96 #endif
 97 
 98 #ifndef FIXADDR_TOP
 99 #define FIXADDR_TOP             ((unsigned long)(long)(int)0xfffe0000)
100 #endif
101 
102 #endif /* __ASM_MACH_GENERIC_SPACES_H */
103 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php