memory.h 965 Bytes
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/*
 *  linux/include/asm-arm/arch-anakin/memory.h
 *
 *  Copyright (C) 2001 Aleph One Ltd. for Acunia N.V.
 *
 * 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:
 *   09-Apr-2001 TTC	Created
 */

#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H

#define TASK_SIZE		(3u * 1024 * 1024 * 1024)
#define TASK_SIZE_26		(64u * 1024 * 1024)
#define TASK_UNMAPPED_BASE	(1u * 1024 * 1024 * 1024)

#define PAGE_OFFSET		0xc0000000
#define PHYS_OFFSET		0x20000000

#define __virt_to_phys(a)	((a) - PAGE_OFFSET + PHYS_OFFSET)
#define __phys_to_virt(a)	((a) + PAGE_OFFSET - PHYS_OFFSET)
#define __virt_to_bus(a)	__virt_to_phys(a)
#define __bus_to_virt(a)	__phys_to_virt(a)

#define __virt_to_phys__is_a_macro
#define __phys_to_virt__is_a_macro
#define __virt_to_bus__is_a_macro
#define __bus_to_virt__is_a_macro

#endif