summaryrefslogtreecommitdiff
path: root/libcpu/mips/common/mipscfg.h
blob: b4f30615f87fe4f76a4dfda7334d5d5baded7660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * File      : mipscfg.h
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2010, RT-Thread Development Team
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2010-05-27     swkyer       first version
 */
#ifndef __MIPSCFG_H__
#define __MIPSCFG_H__


typedef struct mips32_core_cfg
{
    rt_uint16_t icache_line_size;
    rt_uint16_t icache_lines_per_way;
    rt_uint16_t icache_ways;
    rt_uint16_t dcache_line_size;
    rt_uint16_t dcache_lines_per_way;
    rt_uint16_t dcache_ways;

    rt_uint16_t max_tlb_entries;	/* number of tlb entry */
} mips32_core_cfg_t;

extern mips32_core_cfg_t g_mips_core;

#endif /* end of __MIPSCFG_H__ */