mmu.h
来自「SMDK2440 boot code, base on vivi」· C头文件 代码 · 共 57 行
H
57 行
/* * History * * 2002-01-26: Janghoon Lyu <nandy@mizi.com> * - Initial code */#ifndef _VIVI_MMU_H_#define _VIVI_MMU_H_/* * MMU Level 1 Page Table Constants * Section descriptor */ #define MMU_FULL_ACCESS (3 << 10) /* access permission bits */#define MMU_DOMAIN (0 << 5) /* domain control bits */#define MMU_SPECIAL (1 << 4) /* must be 1 */#define MMU_CACHEABLE (1 << 3) /* cacheable */#define MMU_BUFFERABLE (1 << 2) /* bufferable */#define MMU_SECTION (2) /* indicates that this is a section descriptor */#define MMU_SECDESC (MMU_FULL_ACCESS | MMU_DOMAIN | \ MMU_SPECIAL | MMU_SECTION)#define MMU_SECTION_SIZE 0x00100000void cache_clean_invalidate(void);void tlb_invalidate(void);void mmu_init(void);void mem_map_init(int);/* FIXME: Nandy can't determine a proper location for below definitions. */enum { BOOT_TYPE_UNKNOWN = 0, BOOT_TYPE_RAM, /* Booting from (system) RAM */ BOOT_TYPE_NOR, /* Booting from NOR flash memory */ BOOT_TYPE_S3C2410, /* Booting from NAND flash memory */ BOOT_TYPE_MDOCP, /* Booting from Mobile DiskOnChip */ BOOT_TYPE_S3C24XX,};#ifdef CONFIG_BOOT_TYPE_RAM# define DEFAULT_BOOT_TYPE BOOT_TYPE_RAM#elif defined(CONFIG_BOOT_TYPE_NOR)# define DEFAULT_BOOT_TYPE BOOT_TYPE_NOR#elif defined(CONFIG_BOOT_TYPE_S3C2410)# define DEFAULT_BOOT_TYPE BOOT_TYPE_S3C2410#elif defined(CONFIG_BOOT_TYPE_MDOCP)# define DEFAULT_BOOT_TYPE BOOT_TYPE_MDOCP#elif defined(CONFIG_BOOT_TYPE_S3C24XX)# define DEFAULT_BOOT_TYPE BOOT_TYPE_S3C24XX#else# define DEFAULT_BOOT_TYPE BOOT_TYPE_UNKNOWN#endif#endif /* _VIVI_MMU_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?