memory.h
来自「arm_uclinux_tools用于安装linux的编译器」· C头文件 代码 · 共 36 行
H
36 行
/* * linux/include/asm-arm/memory.h * * Copyright (C) 2000 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. * * Note: this file should not be included by non-asm/.h files * * Modifications: */#ifndef __ASM_ARM_MEMORY_H#define __ASM_ARM_MEMORY_H#include <asm/arch/memory.h>static inline unsigned long virt_to_phys(volatile void *x){ return __virt_to_phys((unsigned long)(x));}static inline void *phys_to_virt(unsigned long x){ return (void *)(__phys_to_virt((unsigned long)(x)));}/* * Virtual <-> DMA view memory address translations */#define virt_to_bus(x) (__virt_to_bus((unsigned long)(x)))#define bus_to_virt(x) ((void *)(__bus_to_virt((unsigned long)(x))))#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?