filename | test/dma.h |
changeset | 812:8cc61d5ea1f8 |
prev | 561:533f6b478071 |
author | nkeynes |
date | Thu Dec 23 17:50:10 2010 +1000 (13 years ago) |
permissions | -rw-r--r-- |
last change | Clone iso_memory_stream_new() as iso_mem_stream_new(), since current versions of libisofs have made it unlinkable on linux |
file | annotate | diff | log | raw |
1.1 --- a/test/dma.h Tue Jan 01 05:08:38 2008 +00001.2 +++ b/test/dma.h Thu Dec 23 17:50:10 2010 +10001.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 table1.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 bitwidth1.16 + * @param datasize1.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 );
.