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

📄 jdisplaydefs.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/**************************************************************************
 Name			:	Jdisplaydefs.h
 Title			:	jdisplay hw defs
 Author			:	Dave Roberts
 Created		:	3/10/2003
 
 Copyright		:	 2003 by Imagination Technologies Limited.
					All rights reserved.  No part of this software, either
					material or conceptual may be copied or distributed, 
					transmitted, transcribed, stored in a retrieval system 
					or translated into any human or computer language in any
					form by any means, electronic, mechanical, manual or 
					other-wise, or disclosed to third parties without the
					express written permission of Imagination Technologies 
					Limited, Unit 8, HomePark Industrial Estate, 
					King's Langley, Hertfordshire, WD4 8LZ, U.K.
 
 Description	:	jdisplay hw defs
 
**************************************************************************/
#ifndef _JDISPLAYDEFS_
#define _JDISPLAYDEFS_

/* TODO: change names */
/*****************************************************************************
	Interrupt registers
*****************************************************************************/
#define JDISPLAY_INT_STATUS				0x1418
#define JDISPLAY_INT_MASK				0x141C
#define JDISPLAY_INT_CLEAR				0x1420

#define JDISPLAY_INTERRUPT_HBLANK	0x00000001
#define JDISPLAY_INTERRUPT_VBLANK	0x00000002
#define JDISPLAY_INTERRUPT_MASTER	0x00008000
#define JDISPLAY_INTERRUPT_ALL		(JDISPLAY_INTERRUPT_MASTER|JDISPLAY_INTERRUPT_HBLANK|JDISPLAY_INTERRUPT_VBLANK)


/*****************************************************************************
	Display registers
*****************************************************************************/
/*
	Framebuffer Base Address
*/
#define JDISPLAY_GLOBREG_LCD_FBBASE				0x1400
#define JDISPLAY_LCD_FBBASE_MASK				0x00FFFFFC
#define JDISPLAY_LCD_FBBASE_ALIGNSHIFT			0

/*
	Framebuffer Stride
*/
#define JDISPLAY_GLOBREG_LCD_FBSTRIDE			0x1404
#define JDISPLAY_LCD_FBSTRIDE_MASK				0x000001FF
#define JDISPLAY_LCD_FBSTRIDE_ALIGNSHIFT		2
/*
	Framebuffer Control (Blanking and Format)
*/
#define JDISPLAY_GLOBREG_LCD_FBCTL				0x1408
#define JDISPLAY_LCD_FBCTL_GRAFETCH				0x80000000
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_SHIFT		0
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_MASK		0x00000007
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_PAL8		0x00000000
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_RGB565		0x00000001
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_RGB888		0x00000004
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_RGB0888	0x00000005
#define JDISPLAY_LCD_FBCTL_PIXFORMAT_ARGB8888	0x00000006

/*
	Sync Pulse Generator Control
*/
#define JDISPLAY_GLOBREG_LCD_SPGKICK			0x140C
#define JDISPLAY_LCD_SPGKICK					0x80000000

/*
	SPG Status - Vsync, linecount
*/
#define JDISPLAY_GLOBREG_SPGSTATUS				0x1410
#define JDISPLAY_SPGSTATUS_VSYNC				0x00000200
#define JDISPLAY_SPGSTATUS_LINECOUNT_MASK		0x000001FF

/*****************************************************************************
	Cursor registers
*****************************************************************************/
#define JDISPLAY_GLOBREG_CURSOR_ENABLE			0x1440
#define JDISPLAY_CURSOR_ENABLE					1
#define JDISPLAY_CURSOR_DISABLE					0

#define JDISPLAY_GLOBREG_CURSOR_POSITION		0x1444
#define JDISPLAY_CURSOR_X_MASK					0x01FF0000
#define JDISPLAY_CURSOR_X_SHIFT					16
#define JDISPLAY_CURSOR_Y_MASK					0x000000FF
#define JDISPLAY_CURSOR_Y_SHIFT					0

#define JDISPLAY_GLOBREG_CURSOR_WRITEADDR		0x1448
#define JDISPLAY_CURSOR_WRITEADDR_MASK			0x000001FF
#define JDISPLAY_CURSOR_WRITEADDR_SHIFT			0

#define JDISPLAY_GLOBREG_CURSOR_WRITEDATA		0x144C
#define JDISPLAY_CURSOR_WRITEDATA_PIX0_MASK		0x0000FFFF
#define JDISPLAY_CURSOR_WRITEDATA_PIX0_SHIFT	0
#define JDISPLAY_CURSOR_WRITEDATA_PIX1_MASK		0xFFFF0000
#define JDISPLAY_CURSOR_WRITEDATA_PIX1_SHIFT	16

#define JDISPLAY_GLOBREG_PALLETTE_WRITEDATA		0x14e4

#define JDISPLAY_CURSOR_COLOUR_BLACK			0x8000
#define JDISPLAY_CURSOR_COLOUR_WHITE			0xFFFF
#define JDISPLAY_CURSOR_COLOUR_INVERT			0x8001
#define JDISPLAY_CURSOR_COLOUR_TRANS			0x0000

#endif /* _JDISPLAYDEFS_ */
/*--------------------------- End of File -------------------------------- */

⌨️ 快捷键说明

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