⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cobrcore.h

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 H
字号:
/* cobrcore.h * 	Definitions for the LSI Cobra core */#ifndef _COBRA_CORE_#define _COBRA_CORE_#define COBRA_CORE#define M_CFGREG	0xfffe0020	/* configuration reg	 */#ifdef LANGUAGE_ASSEMBLY#define C0_DCIC	$7		/* cache control */#define C0_BPC	$3		/* breakpoint on instr */#define C0_BDA	$5		/* breakpoint on data */#endif /* LANGUAGE_ASSEMBLY */#ifdef LANGUAGE_C#define C0_DCIC	7		/* cache control */#define C0_BPC	3		/* breakpoint on instr */#define C0_BDA	5		/* breakpoint on data */#define CFGREG (*((volatile unsigned long *)M_CFGREG)) /* config reg */#endif /*  LANGUAGE_C */#define DEBUG_VECT	0x80000040/* definitions for DCIC register bits */#define DCIC_TR	0x80000000	/* Trap enable */#define DCIC_UD	0x40000000	/* User debug enable */#define DCIC_KD	0x20000000	/* Kernel debug enable */#define DCIC_TE	0x10000000	/* Trace enable */#define DCIC_DW	0x08000000	/* Enable data breakpoints on write */#define DCIC_DR	0x04000000	/* Enable data breakpoints on read */#define DCIC_DAE 0x02000000	/* Enable data addresss breakpoints */#define DCIC_PCE 0x01000000	/* Enable instruction breakpoints */#define DCIC_DE	0x00800000	/* Debug enable */#define DCIC_DL	0x00008000	/* Data cache line invalidate */#define DCIC_IL	0x00004000	/* Instruction cache line invalidate */#define DCIC_D	0x00002000	/* Data cache invalidate enable */#define DCIC_I	0x00001000	/* Instruction cache invalidate enable */#define DCIC_T	0x00000020	/* Trace, set by CPU */#define DCIC_W	0x00000010	/* Write reference, set by CPU */#define DCIC_R	0x00000008	/* Read reference, set by CPU */#define DCIC_DA	0x00000004	/* Data address, set by CPU */#define DCIC_PC	0x00000002	/* Program counter, set by CPU */#define DCIC_DB	0x00000001	/* Debug, set by CPU *//* Definitions for Configuration register bits */#define CR_WBE		0x80000000	/* write buffer enable */#define CR_BEN 		0x40000000	/* block write enable */#define CR_PGSZMSK 	0x38000000	/* page size mask */#define CR_PGSZSHFT 	27		/* page size shift amount */#define CR_PGSZ(x)	((x)<<27)	/* set page size */#define CR_IW8 		0x02000000	/* add 8 cycles to IOWAIT */#define CR_PW8		0x01000000	/* add 8 cycles to PWAIT */#define CR_ICDISABLE	0x00800000	/* Instruction cache disable */#define CR_DCDISABLE	0x00400000	/* Data cache disable */#define CR_IBLK_2	0x00000000	/* Instruction cache block size */#define CR_IBLK_4	0x00100000	/* Instruction cache block size */#define CR_IBLK_8	0x00200000	/* Instruction cache block size */#define CR_IBLK_16	0x00300000	/* Instruction cache block size */#define CR_IBLKMSK	0x00300000	/* Instruction cache block size */#define CR_IBLKSHFT	20#define CR_DBLK_2	0x00000000	/* Data cache block size */#define CR_DBLK_4	0x00040000	/* Data cache block size */#define CR_DBLK_8	0x00080000	/* Data cache block size */#define CR_DBLK_16	0x000c0000	/* Data cache block size */#define CR_DBLKMSK	0x000c0000	/* Data cache block size */#define CR_DBLKSHFT	18#define CR_IODIS	0x00020000	/* Disable DRDY for I/O addr's */#define CR_IOWAITSHFT	13		/* I/O wait states */#define CR_PDIS		0x00001000	/* Disable DRDY for PROM addr's */#define CR_PWAITSHFT	8		/* PROM wait states */#define CR_DPEN		0x00000040	/* Enable parity check for DRAM */#define CR_RDYGEN	0x00000020	/* Disable DRDY for DRAM addr's */#define CR_BLKFDIS	0x00000010	/* Disable DRAM block refill */#define CR_RFSHEN	0x00000008	/* Enable refresh generator */#define CR_RASPCHG	0x00000004	/* Define RAS precharge */#define CR_CASLNTH	0x00000002	/* Define CAS active time */#define CR_DRAMEN	0x00000001	/* Enable DRAM controller */#endif /* _COBRA_CORE_ */

⌨️ 快捷键说明

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