2017-11-08 19:47:45 +08:00
|
|
|
/*
|
2021-03-24 15:46:51 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2017-11-08 19:47:45 +08:00
|
|
|
*
|
2021-03-24 15:46:51 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-11-08 19:47:45 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2019-12-07 00:54:03 +08:00
|
|
|
* 2016-09-07 Urey the first version
|
2017-11-08 19:47:45 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MIPS_CFG_H_
|
|
|
|
#define _MIPS_CFG_H_
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct mips32_core_cfg
|
|
|
|
{
|
|
|
|
uint16_t icache_line_size;
|
2019-12-07 00:54:03 +08:00
|
|
|
uint16_t icache_lines_per_way;
|
|
|
|
uint16_t icache_ways;
|
2017-11-08 19:47:45 +08:00
|
|
|
uint16_t icache_size;
|
|
|
|
uint16_t dcache_line_size;
|
2019-12-07 00:54:03 +08:00
|
|
|
uint16_t dcache_lines_per_way;
|
|
|
|
uint16_t dcache_ways;
|
2017-11-08 19:47:45 +08:00
|
|
|
uint16_t dcache_size;
|
|
|
|
|
2021-03-27 17:51:56 +08:00
|
|
|
uint16_t max_tlb_entries; /* number of tlb entry */
|
2017-11-08 19:47:45 +08:00
|
|
|
} mips32_core_cfg_t;
|
|
|
|
|
|
|
|
extern mips32_core_cfg_t g_mips_core;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#endif /* _MIPS_CFG_H_ */
|