OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-tbox/] [memory.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * linux/include/asm-arm/arch-tbox/memory.h
3
 *
4
 * Copyright (c) 1996-1999 Russell King.
5
 * Copyright (c) 1998-1999 Phil Blundell
6
 */
7
#ifndef __ASM_ARCH_MEMORY_H
8
#define __ASM_ARCH_MEMORY_H
9
 
10
/*
11
 * Task size: 3GB
12
 */
13
#define TASK_SIZE       (0xc0000000UL)
14
#define TASK_SIZE_26    (0x04000000UL)
15
 
16
/*
17
 * This decides where the kernel will search for a free chunk of vm
18
 * space during mmap's.
19
 */
20
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
21
 
22
/*
23
 * Page offset: 3GB
24
 */
25
#define PAGE_OFFSET             (0xc0000000UL)
26
#define PHYS_OFFSET             (0x80000000UL)
27
 
28
/*
29
 * DRAM is contiguous
30
 */
31
#define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + PHYS_OFFSET)
32
#define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - PHYS_OFFSET)
33
#define __virt_to_phys__is_a_macro
34
#define __phys_to_virt__is_a_macro
35
 
36
/*
37
 * Bus view is the same as physical view
38
 */
39
#define __virt_to_bus__is_a_macro
40
#define __virt_to_bus(x)        __virt_to_phys(x)
41
#define __bus_to_virt__is_a_macro
42
#define __bus_to_virt(x)        __phys_to_virt(x)
43
 
44
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.