1 /* 2 * File : mipscfg.h 3 * This file is part of RT-Thread RTOS 4 * COPYRIGHT (C) 2010, RT-Thread Development Team 5 * 6 * The license and distribution terms for this file may be 7 * found in the file LICENSE in this distribution or at 8 * http://www.rt-thread.org/license/LICENSE 9 * 10 * Change Logs: 11 * Date Author Notes 12 * 2010-05-27 swkyer first version 13 */ 14 #ifndef __MIPSCFG_H__ 15 #define __MIPSCFG_H__ 16 17 18 typedef struct mips32_core_cfg 19 { 20 rt_uint16_t icache_line_size; 21 rt_uint16_t icache_lines_per_way; 22 rt_uint16_t icache_ways; 23 rt_uint16_t dcache_line_size; 24 rt_uint16_t dcache_lines_per_way; 25 rt_uint16_t dcache_ways; 26 27 rt_uint16_t max_tlb_entries; /* number of tlb entry */ 28 } mips32_core_cfg_t; 29 30 extern mips32_core_cfg_t g_mips_core; 31 32 #endif /* end of __MIPSCFG_H__ */ 33