xref: /OK3568_Linux_fs/kernel/include/video/maxinefb.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  *      linux/drivers/video/maxinefb.h
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  *      DECstation 5000/xx onboard framebuffer support, Copyright (C) 1999 by
5*4882a593Smuzhiyun  *      Michael Engel <engel@unix-ag.org> and Karsten Merker <merker@guug.de>
6*4882a593Smuzhiyun  *      This file is subject to the terms and conditions of the GNU General
7*4882a593Smuzhiyun  *      Public License.  See the file COPYING in the main directory of this
8*4882a593Smuzhiyun  *      archive for more details.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include <asm/addrspace.h>
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /*
14*4882a593Smuzhiyun  * IMS332 video controller register base address
15*4882a593Smuzhiyun  */
16*4882a593Smuzhiyun #define MAXINEFB_IMS332_ADDRESS		KSEG1ADDR(0x1c140000)
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun /*
19*4882a593Smuzhiyun  * Begin of DECstation 5000/xx onboard framebuffer memory, default resolution
20*4882a593Smuzhiyun  * is 1024x768x8
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun #define DS5000_xx_ONBOARD_FBMEM_START	KSEG1ADDR(0x0a000000)
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /*
25*4882a593Smuzhiyun  *      The IMS 332 video controller used in the DECstation 5000/xx series
26*4882a593Smuzhiyun  *      uses 32 bits wide registers; the following defines declare the
27*4882a593Smuzhiyun  *      register numbers, to get the real offset, these have to be multiplied
28*4882a593Smuzhiyun  *      by four.
29*4882a593Smuzhiyun  */
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #define IMS332_REG_CURSOR_RAM           0x200	/* hardware cursor bitmap */
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun /*
34*4882a593Smuzhiyun  * The color palette entries have the form 0x00BBGGRR
35*4882a593Smuzhiyun  */
36*4882a593Smuzhiyun #define IMS332_REG_COLOR_PALETTE        0x100	/* color palette, 256 entries */
37*4882a593Smuzhiyun #define IMS332_REG_CURSOR_COLOR_PALETTE	0x0a1	/* cursor color palette, */
38*4882a593Smuzhiyun 						/* 3 entries             */
39