linux-old/include/asm-arm/arch-anakin/memory.h
<<
>>
Prefs
   1/*
   2 *  linux/include/asm-arm/arch-anakin/memory.h
   3 *
   4 *  Copyright (C) 2001 Aleph One Ltd. for Acunia N.V.
   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 *   09-Apr-2001 TTC    Created
  12 */
  13
  14#ifndef __ASM_ARCH_MEMORY_H
  15#define __ASM_ARCH_MEMORY_H
  16
  17#define TASK_SIZE               (3u * 1024 * 1024 * 1024)
  18#define TASK_SIZE_26            (64u * 1024 * 1024)
  19#define TASK_UNMAPPED_BASE      (1u * 1024 * 1024 * 1024)
  20
  21#define PAGE_OFFSET             0xc0000000
  22#define PHYS_OFFSET             0x20000000
  23
  24#define __virt_to_phys(a)       ((a) - PAGE_OFFSET + PHYS_OFFSET)
  25#define __phys_to_virt(a)       ((a) + PAGE_OFFSET - PHYS_OFFSET)
  26#define __virt_to_bus(a)        __virt_to_phys(a)
  27#define __bus_to_virt(a)        __phys_to_virt(a)
  28
  29#define __virt_to_phys__is_a_macro
  30#define __phys_to_virt__is_a_macro
  31#define __virt_to_bus__is_a_macro
  32#define __bus_to_virt__is_a_macro
  33
  34#endif
  35
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.