- redefined regsiter addresses for VGA
Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@697 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -67,6 +67,8 @@
|
||||
// PS2s
|
||||
#define SYS_PS2_BIT_TX_EMPTY 0x00000001
|
||||
#define SYS_PS2_BIT_RX_AVAIL 0x00000004
|
||||
#define SYS_PS2_BIT_PIN_CLOCK 0x00000008
|
||||
#define SYS_PS2_BIT_PIN_DATA 0x00000010
|
||||
#define SYS_PS2_BIT_TX_INTEN 0x00000020
|
||||
#define SYS_PS2_BIT_RX_INTEN 0x00000040
|
||||
#define SYS_PS2_BIT_TX_IRQ 0x00000100
|
||||
@@ -88,16 +90,32 @@
|
||||
#define SYS_VGA_CTRL 0xA0030000 // R/W
|
||||
#define SYS_VGA_BIT_CGRDY 0x00000001 // RO
|
||||
#define SYS_VGA_BIT_MSTEN 0x00000002 // R/W
|
||||
#define SYS_VGA_BIT_BUFCHG_INTEN 0x00000004 // RO
|
||||
#define SYS_VGA_BIT_BUFCHG_FLAG 0x00000008 // RO
|
||||
#define SYS_VGA_BIT_CLRSCR 0x00000010 // WO
|
||||
#define SYS_VGA_BIT_CLRLINE 0x00000020 // WO
|
||||
#define SYS_VGA_BIT_BLIT_REQ 0x00000100 // R/W
|
||||
#define SYS_VGA_BIT_BLIT_BSY 0x00000100 // R/W
|
||||
#define SYS_VGA_BIT_BLIT_FIN 0x00000200 // R/W
|
||||
#define SYS_VGA_BIT_BLIT_ACK 0x00000200 // R/W
|
||||
#define SYS_VGA_BIT_BLIT_FIN_INTEN 0x00000400 // R/W
|
||||
#define SYS_VGA_ASCII 0xA0030004 // R/W
|
||||
#define SYS_VGA_POSX 0xA0030008 // R/W
|
||||
#define SYS_VGA_POSY 0xA003000C // R/W
|
||||
#define SYS_VGA_CGCOL 0xA0030010 // R/W
|
||||
#define SYS_VGA_MOFFS 0xA0030014 // R/W
|
||||
#define SYS_VGA_RESX 0xA0030018 // RO
|
||||
#define SYS_VGA_RESY 0xA003001C // RO
|
||||
#define SYS_VGA_FPS 0xA0030020 // RO
|
||||
#define SYS_VGA_RES 0xA0030014 // RO
|
||||
#define SYS_VGA_FB_FRONT 0xA0030018 // R/W
|
||||
#define SYS_VGA_FB_BACK 0xA003001C // R/W
|
||||
#define SYS_VGA_BLIT_SRC0 SYS_VGA_BLIT_SRC0_FIRST // R/W
|
||||
#define SYS_VGA_BLIT_SRC0_FIRST 0xA0030020 // R/W
|
||||
#define SYS_VGA_BLIT_SRC0_LAST 0xA0030024 // R/W
|
||||
#define SYS_VGA_BLIT_SRC0_DIMX 0xA0030028 // R/W
|
||||
#define SYS_VGA_BLIT_DST SYS_VGA_BLIT_DST_FIRST // R/W
|
||||
#define SYS_VGA_BLIT_DST_FIRST 0xA0030050 // R/W
|
||||
#define SYS_VGA_BLIT_DST_LAST 0xA0030054 // R/W
|
||||
#define SYS_VGA_BLIT_DST_DIMX 0xA0030058 // R/W
|
||||
#define SYS_VGA_BLIT_NX 0xA0030060 // R/W
|
||||
#define SYS_VGA_BLIT_NY 0xA0030064 // R/W
|
||||
|
||||
// AC'97
|
||||
#define SYS_AC97_STAT 0xA0040000
|
||||
@@ -159,6 +177,9 @@ void Screen_clr(void);
|
||||
void Screen_line_clr(void);
|
||||
void Screen_csr_set_x(UINT32 coord);
|
||||
void Screen_csr_set_y(UINT32 coord);
|
||||
UINT32 Screen_get_resx(void);
|
||||
UINT32 Screen_get_resy(void);
|
||||
UINT32 Screen_get_fps(void);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user