GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / sparc / include / asm / vaddrs.h
bloba8d7aba955f4d995e691797c753156d286cd7194
1 #ifndef _SPARC_VADDRS_H
2 #define _SPARC_VADDRS_H
4 #include <asm/head.h>
6 /*
7 * asm/vaddrs.h: Here we define the virtual addresses at
8 * which important things will be mapped.
10 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
11 * Copyright (C) 2000 Anton Blanchard (anton@samba.org)
14 #define SRMMU_MAXMEM 0x0c000000
16 #define SRMMU_NOCACHE_VADDR (KERNBASE + SRMMU_MAXMEM)
17 /* = 0x0fc000000 */
18 #define SRMMU_MIN_NOCACHE_PAGES (550)
19 #define SRMMU_MAX_NOCACHE_PAGES (1280)
21 /* The following constant is used in mm/srmmu.c::srmmu_nocache_calcsize()
22 * to determine the amount of memory that will be reserved as nocache:
24 * 256 pages will be taken as nocache per each
25 * SRMMU_NOCACHE_ALCRATIO MB of system memory.
27 * limits enforced: nocache minimum = 256 pages
28 * nocache maximum = 1280 pages
30 #define SRMMU_NOCACHE_ALCRATIO 64 /* 256 pages per 64MB of system RAM */
32 #define SUN4M_IOBASE_VADDR 0xfd000000 /* Base for mapping pages */
33 #define IOBASE_VADDR 0xfe000000
34 #define IOBASE_END 0xfe600000
37 * On the sun4/4c we need a place
38 * to reliably map locked down kernel data. This includes the
39 * task_struct and kernel stack pages of each process plus the
40 * scsi buffers during dvma IO transfers, also the floppy buffers
41 * during pseudo dma which runs with traps off (no faults allowed).
42 * Some quick calculations yield:
43 * NR_TASKS <512> * (3 * PAGE_SIZE) == 0x600000
44 * Subtract this from 0xc00000 and you get 0x927C0 of vm left
45 * over to map SCSI dvma + floppy pseudo-dma buffers. So be
46 * careful if you change NR_TASKS or else there won't be enough
47 * room for it all.
49 #define SUN4C_LOCK_VADDR 0xff000000
50 #define SUN4C_LOCK_END 0xffc00000
52 #define KADB_DEBUGGER_BEGVM 0xffc00000 /* Where kern debugger is in virt-mem */
53 #define KADB_DEBUGGER_ENDVM 0xffd00000
54 #define DEBUG_FIRSTVADDR KADB_DEBUGGER_BEGVM
55 #define DEBUG_LASTVADDR KADB_DEBUGGER_ENDVM
57 #define LINUX_OPPROM_BEGVM 0xffd00000
58 #define LINUX_OPPROM_ENDVM 0xfff00000
60 #define DVMA_VADDR 0xfff00000 /* Base area of the DVMA on suns */
61 #define DVMA_END 0xfffc0000
63 #endif /* !(_SPARC_VADDRS_H) */