Search
lxdream.org :: lxdream/test/dma.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/dma.h
changeset 812:8cc61d5ea1f8
prev561:533f6b478071
author nkeynes
date Wed Aug 13 10:32:00 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add ARM test harness (not quite working on DC but almost...)
file annotate diff log raw
1.1 --- a/test/dma.h Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/test/dma.h Wed Aug 13 10:32:00 2008 +0000
1.3 @@ -45,3 +45,21 @@
1.4 * @return 0 on success, non-zero on failure.
1.5 */
1.6 int pvr_dma_write( unsigned int target, char *buf, int length, int region );
1.7 +
1.8 +/**
1.9 + * Transfer TA data to the PVR via SORT-DMA.
1.10 + *
1.11 + * @param sorttable Start address of the sort table
1.12 + * @param tablelen Size of the sort table (in bytes)
1.13 + * @param data Start address of the TA data (polygons)
1.14 + * @param datalen Size of the polygon data block (in bytes)
1.15 + * @param bitwidth
1.16 + * @param datasize
1.17 + * @param region Target region for VRAM writes, 0 for 64-byte region, 1 for 32-byte region.
1.18 + *
1.19 + * @return 0 on success, non-zero on failure.
1.20 + */
1.21 +int sort_dma_write( char *sorttable, int tablelen, char *data, int datalen, int bitwidth, int datasize );
1.22 +
1.23 +int aica_dma_write( uint32_t aica_addr, char *data, uint32_t size );
1.24 +int aica_dma_read( char *data, uint32_t aica_addr, uint32_t size );
.