Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 56:3224dceaf2a3
prev31:495e480360d7
next65:9f124c245fc6
author nkeynes
date Sun Jan 01 08:09:42 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Implement PVR DMA channel
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Sun Dec 25 08:24:11 2005 +0000
1.2 +++ b/src/pvr2/pvr2.h Sun Jan 01 08:09:42 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.3 2005-12-25 08:24:07 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.4 2006-01-01 08:09:42 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) MMIO registers and functions.
1.9 *
1.10 @@ -36,7 +36,7 @@
1.11 LONG_PORT( 0x064, RENDADDR2, PORT_MRW, 0, "Rendering memory base 2" )
1.12 LONG_PORT( 0x068, HCLIP, PORT_MRW, 0, "Horizontal clipping area" )
1.13 LONG_PORT( 0x06C, VCLIP, PORT_MRW, 0, "Vertical clipping area" )
1.14 -LONG_PORT( 0x074, SHADOW, PORT_MRW, 0, "Shadowing" )
1.15 + LONG_PORT( 0x074, SHADOW, PORT_MRW, 0, "Shadowing" )
1.16 LONG_PORT( 0x078, OBJCLIP, PORT_MRW, 0, "Object clip distance (float32)" )
1.17 LONG_PORT( 0x084, TSPCLIP, PORT_MRW, 0, "Texture clip distance (float32)" )
1.18 LONG_PORT( 0x088, BGPLANEZ, PORT_MRW, 0, "Background plane depth (float32)" )
1.19 @@ -70,6 +70,9 @@
1.20 LONG_PORT( 0x164, TAOPLST, PORT_MRW, 0, "TA Object Pointer List start" )
1.21 MMIO_REGION_END
1.22
1.23 +MMIO_REGION_BEGIN( 0x10000000, PVR2TA, "Power VR/2 TA Command port" )
1.24 + LONG_PORT( 0x000, TACMD, PORT_MRW, 0, "TA Command port" )
1.25 +MMIO_REGION_END
1.26
1.27 #define DISPMODE_DE 0x00000001 /* Display enable */
1.28 #define DISPMODE_SD 0x00000002 /* Scan double */
1.29 @@ -98,3 +101,9 @@
1.30
1.31 void pvr2_next_frame( void );
1.32 void pvr2_set_base_address( uint32_t );
1.33 +
1.34 +/**
1.35 + * Process the data in the supplied buffer as an array of TA command lists.
1.36 + * Any excess bytes are held pending until a complete list is sent
1.37 + */
1.38 +void pvr2ta_write( char *buf, uint32_t length );
.