OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [vga.h] - Blame information for rev 1368

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 645 markom
/* vga.h -- Definition of types and structures for Richard's VGA/LCD controler.
2
   Copyright (C) 2002 Marko Mlinar, markom@opencores.org
3 261 markom
 
4 645 markom
NOTE: device is only partially implemented!
5
 
6 261 markom
This file is part of OpenRISC 1000 Architectural Simulator.
7
 
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
12
 
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
21
 
22 645 markom
#ifndef _VGA_H_
23
#define _VGA_H_
24
 
25
#define VGA_CTRL        0x00       /* Control Register */
26
#define VGA_STAT        0x04       /* Status Register */
27
#define VGA_HTIM        0x08       /* Horizontal Timing Register */
28
#define VGA_VTIM        0x0c       /* Vertical Timing Register */
29
#define VGA_HVLEN       0x10       /* Horizontal and Vertical Length Register */
30
#define VGA_VBARA       0x14       /* Video Memory Base Address Register A */
31
#define VGA_VBARB       0x18       /* Video Memory Base Address Register B */
32
#define VGA_CLUTA       0x800
33
#define VGA_CLUTB       0xc00
34
#define VGA_MASK        0xfff
35
#define VGA_ADDR_SPACE  1024    
36
 
37
 
38
/* List of implemented registers; all other are ignored.  */
39
 
40
/* Control Register */
41
#define VGA_CTRL_VEN    0x00000001 /* Video Enable */
42
#define VGA_CTRL_CD     0x00000300 /* Color Depth */
43
#define VGA_CTRL_PC     0x00000400 /* Pseudo Color */
44
 
45
/* Status Register */
46
/* Horiz. Timing Register */
47
/* Vert. Timing Register */
48
/* Horiz. and Vert. Length Register */
49
 
50
#endif /* _VGA_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.