Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 85:71e239d20c5d
prev65:9f124c245fc6
next94:8d80d9c7cc7d
author nkeynes
date Sun Jan 22 22:38:51 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix colour mode definitions
Add PVR2 palette region
Fix ta end-of-command when it's not in the same buffer
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Tue Jan 03 12:21:45 2006 +0000
1.2 +++ b/src/pvr2/pvr2.h Sun Jan 22 22:38:51 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.5 2006-01-03 12:21:45 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.6 2006-01-22 22:38:51 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) MMIO registers and functions.
1.9 *
1.10 @@ -70,6 +70,10 @@
1.11 LONG_PORT( 0x164, TAOPLST, PORT_MRW, 0, "TA Object Pointer List start" )
1.12 MMIO_REGION_END
1.13
1.14 +MMIO_REGION_BEGIN( 0x005F9000, PVR2PAL, "Power VR/2 CLUT Palettes" )
1.15 + LONG_PORT( 0x000, PAL0_0, PORT_MRW, 0, "Pal0 colour 0" )
1.16 +MMIO_REGION_END
1.17 +
1.18 MMIO_REGION_BEGIN( 0x10000000, PVR2TA, "Power VR/2 TA Command port" )
1.19 LONG_PORT( 0x000, TACMD, PORT_MRW, 0, "TA Command port" )
1.20 MMIO_REGION_END
1.21 @@ -80,9 +84,9 @@
1.22 #define DISPMODE_CD 0x08000000 /* Clock double */
1.23
1.24 #define MODE_RGB15 0x00000000
1.25 -#define MODE_RGB16 0x00000040
1.26 -#define MODE_RGB24 0x00000080
1.27 -#define MODE_RGB32 0x000000C0
1.28 +#define MODE_RGB16 0x00000004
1.29 +#define MODE_RGB24 0x00000008
1.30 +#define MODE_RGB32 0x0000000C
1.31
1.32 #define DISPSIZE_MODULO 0x3FF00000 /* line skip +1 (32-bit words)*/
1.33 #define DISPSIZE_LPF 0x000FFC00 /* lines per field */
.