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

📄 dev_fb.h

📁 龙芯2e的模拟器源代码
💻 H
字号:
#ifndef	TESTMACHINE_FB_H#define	TESTMACHINE_FB_H/* *  Definitions used by the framebuffer device in GXemul. * *  $Id: dev_fb.h,v 1.6 2006/07/16 08:11:43 debug Exp $ *  This file is in the public domain. *//*  Physical base address for linear framebuffer memory:  */#define	DEV_FB_ADDRESS			0x12000000/*  Physical base address for the framebuffer controller:  */#define	DEV_FBCTRL_ADDRESS		0x12f00000#define	DEV_FBCTRL_LENGTH		      0x20/* *  First choose the port by writing the port index to DEV_FBCTRL_PORT, *  then read or write DEV_FBCTRL_DATA. */#define	DEV_FBCTRL_PORT			      0x00#define	DEV_FBCTRL_DATA			      0x10#define	DEV_FBCTRL_PORT_COMMAND			0#define	DEV_FBCTRL_PORT_X1			1#define	DEV_FBCTRL_PORT_Y1			2#define	DEV_FBCTRL_PORT_X2			3#define	DEV_FBCTRL_PORT_Y2			4#define	DEV_FBCTRL_PORT_COLOR_R			5#define	DEV_FBCTRL_PORT_COLOR_G			6#define	DEV_FBCTRL_PORT_COLOR_B			7#define	DEV_FBCTRL_NPORTS		8/* *  Controller commands: *//*  Do nothing.  */#define	DEV_FBCTRL_COMMAND_NOP				0/*  Set resolution to X1 x Y1.  */#define	DEV_FBCTRL_COMMAND_SET_RESOLUTION		1/*  Get current resolution into X1, Y1.  */#define	DEV_FBCTRL_COMMAND_GET_RESOLUTION		2/*  TODO:  */#define	DEV_FBCTRL_COMMAND_FILL				3#define	DEV_FBCTRL_COMMAND_COPY				4#define	DEV_FBCTRL_MAXY(x)	(((DEV_FBCTRL_ADDRESS-DEV_FB_ADDRESS) / 3) / x)#endif	/*  TESTMACHINE_FB_H  */

⌨️ 快捷键说明

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