📄 cirrus.h
字号:
//**********************************************************************
//
// Filename: cirrus.h
//
// Description: Includes definitions for raster.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Use of this source code is subject to the terms of the Cirrus end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to
// use this source code. For a copy of the EULA, please see the
// EULA.RTF on your install media.
//
// Copyright(c) Cirrus Logic Corporation 2005, All Rights Reserved
//
//**********************************************************************
#ifndef __CIRRUS_H__
#define __CIRRUS_H__
#define RASTER_BASE (0xb0030000)
#define RASTER_VLINESTOTAL *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x000) ) )
#define RASTER_VSYNCSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x001) ) )
#define RASTER_VACTIVESTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x002) ) )
#define RASTER_VCLKSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x003) ) )
#define RASTER_HCLKSTOTAL *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x004) ) )
#define RASTER_HSYNCSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x005) ) )
#define RASTER_HACTIVESTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x006) ) )
#define RASTER_HCLKSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x007) ) )
#define RASTER_BRIGHTNESS *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x008) ) )
#define RASTER_VIDEOATTRIBS *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x009) ) )
#define RASTER_VIDSCRNPAGE *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x00A) ) )
#define RASTER_VIDSCRNHPG *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x00B) ) )
#define RASTER_SCRNLINES *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x00C) ) )
#define RASTER_LINELENGTH *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x00D) ) )
#define RASTER_VLINESTEP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x00E) ) )
#define RASTER_LINECARRY *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x00F) ) )
#define RASTER_BLINKRATE *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x010) ) )
#define RASTER_BLINKMASK *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x011) ) )
#define RASTER_BLINKPATRN *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x012) ) )
#define RASTER_PATTRNMASK *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x013) ) )
#define RASTER_BG_OFFSET *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x014) ) )
#define RASTER_PIXELMODE *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x015) ) )
#define RASTER_PARLLIFOUT *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x016) ) )
#define RASTER_PARLLIFIN *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x017) ) )
#define RASTER_CURSOR_ADR_START *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x018) ) )
#define RASTER_CURSOR_ADR_RESET *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x019) ) )
#define RASTER_CURSORSIZE *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x01A) ) )
#define RASTER_CURSORCOLOR1 *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x01B) ) )
#define RASTER_CURSORCOLOR2 *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x01C) ) )
#define RASTER_CURSORXYLOC *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x01D) ) )
#define RASTER_CURSOR_DSCAN_LH_YLOC *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x01E) ) )
#define RASTER_REALITI_SWLOCK *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x01F) ) )
#define RASTER_GRAYSCALE_LUT *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x020) ) )
#define RASTER_SIGVAL *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x080) ) )
#define RASTER_SIGCTL *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x081) ) )
#define RASTER_VSIGSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x082) ) )
#define RASTER_HSIGSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x083) ) )
#define RASTER_SIGCLR *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x084) ) )
#define RASTER_ACRATE *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x085) ) )
#define RASTER_LUTCONT *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x086) ) )
#define RASTER_CURSOR_BLINK1 *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x087) ) )
#define RASTER_CURSOR_BLINK2 *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x088) ) )
#define RASTER_CURSOR_BLINK *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x089) ) )
#define RASTER_VBLANKSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x08A) ) )
#define RASTER_HBLANKSTRTSTOP *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x08B) ) )
#define RASTER_COLOR_LUT *((volatile int *) (RASTER_BASE + ((sizeof(int)) * 0x100) ) )
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -