memory.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  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.  * User space: 26MB
  19.  */
  20. #define TASK_SIZE (0x01a00000UL)
  21. #define TASK_SIZE_26 (0x01a00000UL)
  22. /*
  23.  * This decides where the kernel will search for a free chunk of vm
  24.  * space during mmap's.
  25.  */
  26. #define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
  27. /*
  28.  * Page offset: 32MB
  29.  */
  30. #define PAGE_OFFSET (0x02000000UL)
  31. #define PHYS_OFFSET (0x02000000UL)
  32. #define __virt_to_phys__is_a_macro
  33. #define __virt_to_phys(vpage) vpage
  34. #define __phys_to_virt__is_a_macro
  35. #define __phys_to_virt(ppage) ppage
  36. /*
  37.  * Virtual view <-> DMA view memory address translations
  38.  * virt_to_bus: Used to translate the virtual address to an
  39.  *              address suitable to be passed to set_dma_addr
  40.  * bus_to_virt: Used to convert an address for DMA operations
  41.  *              to an address that the kernel can use.
  42.  */
  43. #define __virt_to_bus__is_a_macro
  44. #define __virt_to_bus(x) (x)
  45. #define __bus_to_virt__is_a_macro
  46. #define __bus_to_virt(x) (x)
  47. #define PHYS_TO_NID(addr) (0)
  48. #endif