mcf5202.h

来自「motorola 针对coldfire 5275 评估板的Dbug bootlo」· C头文件 代码 · 共 46 行

H
46
字号
/*
 * File:        src/include/cpu/coldfire/mcf5202.h
 * Purpose:     MCF5202 definitions
 *
 * Notes:       This file automatically included.
 *
 *
 * Modifications:
 *
 */

#ifndef _CPU_MCF5202_H
#define _CPU_MCF5202_H

/***********************************************************************/

/*
 * Cache and Access Control Register routines and defintions
 */
#define MCF5202_CACR_EC         (0x80000000)
#define MCF5202_CACR_ESB        (0x20000000)
#define MCF5202_CACR_DPI        (0x10000000)
#define MCF5202_CACR_HLCK       (0x08000000)
#define MCF5202_CACR_CINVA      (0x01000000)
#define MCF5202_CACR_DCM_C_WT   (0x00000000) /* cacheable, write thru */
#define MCF5202_CACR_DCM_C_CB   (0x00000100) /* cacheable, copyback   */
#define MCF5202_CACR_DCM_CI_P   (0x00000200) /* noncacheable, precise */
#define MCF5202_CACR_DCM_CI_IP  (0x00000300) /* noncacheable, imprec. */
#define MCF5202_CACR_DW         (0x00000020)

#define MCF5202_ACR_BASE(a)     ((a)&0xFF000000)
#define MCF5202_ACR_MASK(a)     (((a)&0xFF000000) >> 8)
#define MCF5202_ACR_E           (0x00008000)
#define MCF5202_ACR_S_USER      (0x00000000)
#define MCF5202_ACR_S_SUPER     (0x00002000)
#define MCF5202_ACR_S_IGNORE    (0x00006000)
#define MCF5202_ACR_CM_C_WT     (0x00000000) /* cacheable, write thru */
#define MCF5202_ACR_CM_C_CB     (0x00000020) /* cacheable, copyback   */
#define MCF5202_ACR_CM_CI_P     (0x00000040) /* noncacheable, precise */
#define MCF5202_ACR_CM_CI_IP    (0x00000060) /* noncacheable, imprec. */
#define MCF5202_ACR_W           (0x00000004)

/***********************************************************************/

#endif  /* _CPU_MCF5202_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?