Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
memory.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 2k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * linux/include/asm-arm/arch-ebsa285/memory.h
- *
- * Copyright (C) 1996-1999 Russell King.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Changelog:
- * 20-Oct-1996 RMK Created
- * 31-Dec-1997 RMK Fixed definitions to reduce warnings.
- * 17-May-1998 DAG Added __virt_to_bus and __bus_to_virt functions.
- * 21-Nov-1998 RMK Changed __virt_to_bus and __bus_to_virt to macros.
- * 21-Mar-1999 RMK Added PAGE_OFFSET for co285 architecture.
- * Renamed to memory.h
- * Moved PAGE_OFFSET and TASK_SIZE here
- */
- #ifndef __ASM_ARCH_MMU_H
- #define __ASM_ARCH_MMU_H
- #include <linux/config.h>
- #if defined(CONFIG_FOOTBRIDGE_ADDIN)
- /*
- * If we may be using add-in footbridge mode, then we must
- * use the out-of-line translation that makes use of the
- * PCI BAR
- */
- #ifndef __ASSEMBLY__
- extern unsigned long __virt_to_bus(unsigned long);
- extern unsigned long __bus_to_virt(unsigned long);
- #endif
- #elif defined(CONFIG_FOOTBRIDGE_HOST)
- #define __virt_to_bus__is_a_macro
- #define __virt_to_bus(x) ((x) - 0xe0000000)
- #define __bus_to_virt__is_a_macro
- #define __bus_to_virt(x) ((x) + 0xe0000000)
- #else
- #error "Undefined footbridge mode"
- #endif
- #if defined(CONFIG_ARCH_FOOTBRIDGE)
- /* Task size and page offset at 3GB */
- #define TASK_SIZE (0xc0000000UL)
- #define PAGE_OFFSET (0xc0000000UL)
- #elif defined(CONFIG_ARCH_CO285)
- /* Task size and page offset at 1.5GB */
- #define TASK_SIZE (0x60000000UL)
- #define PAGE_OFFSET (0x60000000UL)
- #else
- #error "Undefined footbridge architecture"
- #endif
- #define TASK_SIZE_26 (0x04000000UL)
- #define PHYS_OFFSET (0x00000000UL)
- /*
- * This decides where the kernel will search for a free chunk of vm
- * space during mmap's.
- */
- #define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
- /*
- * The DRAM is always contiguous.
- */
- #define __virt_to_phys__is_a_macro
- #define __virt_to_phys(vpage) ((unsigned long)(vpage) - PAGE_OFFSET)
- #define __phys_to_virt__is_a_macro
- #define __phys_to_virt(ppage) ((unsigned long)(ppage) + PAGE_OFFSET)
- #define PHYS_TO_NID(addr) (0)
- #endif