Search
lxdream.org :: lxdream/test/asic.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/asic.h
changeset 185:6755a04c447f
next193:31151fcc3cb7
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
view annotate diff log raw
     2 #include <stdio.h>
     4 #define EVENT_PVR_RENDER_DONE 2
     5 #define EVENT_SCANLINE1 3
     6 #define EVENT_SCANLINE2 4
     7 #define EVENT_RETRACE   5
     8 #define EVENT_PVR_UNK 6
     9 #define EVENT_PVR_OPAQUE_DONE 7
    10 #define EVENT_PVR_OPAQUEMOD_DONE 8
    11 #define EVENT_PVR_TRANS_DONE 9
    12 #define EVENT_PVR_TRANSMOD_DONE 10
    13 #define EVENT_MAPLE_DMA 12
    14 #define EVENT_MAPLE_ERR 13 /* ??? */
    15 #define EVENT_IDE_DMA 14
    16 #define EVENT_SPU_DMA0  15
    17 #define EVENT_SPU_DMA1  16
    18 #define EVENT_SPU_DMA2  17
    19 #define EVENT_SPU_DMA3  18
    20 #define EVENT_PVR_DMA   19
    21 #define EVENT_PVR_PUNCHOUT_DONE 21
    23 #define EVENT_IDE       32
    24 #define EVENT_AICA      33
    26 /**
    27  * Wait for an ASIC event. 
    28  * @return 0 if the event occurred, otherwise -1 if the wait timed out.
    29  */
    30 int asic_wait( int event );
    32 /**
    33  * Clear all asic events
    34  */
    35 void asic_clear();
    37 /**
    38  * Print the contents of the ASIC event registers to the supplied FILE
    39  */
    40 void asic_dump( FILE *f );
    42 void asic_mask_all();
.