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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-arc/] [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-arc/memory.h
3
 *
4
 *  Copyright (C) 1996-1999 Russell King.
5
 *
6
 * This program is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License version 2 as
8
 * published by the Free Software Foundation.
9
 *
10
 * Changelog:
11
 *  22-Nov-1996 RMK     Created
12
 *  21-Mar-1999 RMK     Renamed to memory.h
13
 *              RMK     Moved PAGE_OFFSET and TASK_SIZE here
14
 */
15
#ifndef __ASM_ARCH_MEMORY_H
16
#define __ASM_ARCH_MEMORY_H
17
 
18
/*
19
 * User space: 26MB
20
 */
21
#define TASK_SIZE       (0x01a00000UL)
22
#define TASK_SIZE_26    (0x01a00000UL)
23
 
24
/*
25
 * This decides where the kernel will search for a free chunk of vm
26
 * space during mmap's.
27
 */
28
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
29
 
30
/*
31
 * Page offset: 32MB
32
 */
33
#define PAGE_OFFSET     (0x02000000UL)
34
#define PHYS_OFFSET     (0x02000000UL)
35
 
36
#define __virt_to_phys__is_a_macro
37
#define __virt_to_phys(vpage) vpage
38
#define __phys_to_virt__is_a_macro
39
#define __phys_to_virt(ppage) ppage
40
 
41
/*
42
 * Virtual view <-> DMA view memory address translations
43
 * virt_to_bus: Used to translate the virtual address to an
44
 *              address suitable to be passed to set_dma_addr
45
 * bus_to_virt: Used to convert an address for DMA operations
46
 *              to an address that the kernel can use.
47
 */
48
#define __virt_to_bus__is_a_macro
49
#define __virt_to_bus(x)        (x)
50
#define __bus_to_virt__is_a_macro
51
#define __bus_to_virt(x)        (x)
52
 
53
#endif

powered by: WebSVN 2.1.0

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