memory.h
来自「Linux内核源代码 为压缩文件 是<<Linux内核>>」· C头文件 代码 · 共 52 行
H
52 行
/* * linux/include/asm-arm/arch-sa1100/memory.h * * Copyright (c) 1999 Nicolas Pitre <nico@cam.org> */#ifndef __ASM_ARCH_MEMORY_H#define __ASM_ARCH_MEMORY_H/* * Task size: 3GB */#define TASK_SIZE (0xc0000000UL)#define TASK_SIZE_26 (0x04000000UL)/* * Page offset: 3GB */#define PAGE_OFFSET (0xc0000000UL)/* * Physical DRAM offset is 0xc0000000 on the SA1100 */#define PHYS_OFFSET (0xc0000000UL)/* * We take advantage of the fact that physical and virtual address can be the * same. The NUMA code is handling the large holes that might exist between * all memory banks. */#define __virt_to_phys__is_a_macro#define __phys_to_virt__is_a_macro#define __virt_to_phys(x) (x)#define __phys_to_virt(x) (x)/* * Virtual view <-> DMA view memory address translations * virt_to_bus: Used to translate the virtual address to an * address suitable to be passed to set_dma_addr * bus_to_virt: Used to convert an address for DMA operations * to an address that the kernel can use. * * On the SA1100, bus addresses are equivalent to physical addresses. */#define __virt_to_bus__is_a_macro#define __bus_to_virt__is_a_macro#define __virt_to_bus(x) __virt_to_phys(x)#define __bus_to_virt(x) __phys_to_virt(x)#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?