Search
lxdream.org :: lxdream/test/asic.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/asic.h
changeset 193:31151fcc3cb7
prev185:6755a04c447f
next753:1fe39c3a9bbc
author nkeynes
date Wed Jan 03 09:00:17 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Adjust timers when they're read rather than waiting until the next time
slice. Also temporarily cut the CPU time by 4.
Initialize the FRQCR register to 0x0E0A for convenience
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_TA_ERROR  31
    24 #define EVENT_IDE       32
    25 #define EVENT_AICA      33
    27 #define EVENT_PVR_PRIM_ALLOC_FAIL 66
    28 #define EVENT_PVR_MATRIX_ALLOC_FAIL 67
    29 #define EVENT_PVR_BAD_INPUT 68
    31 /**
    32  * Wait for an ASIC event. 
    33  * @return 0 if the event occurred, otherwise -1 if the wait timed out.
    34  */
    35 int asic_wait( int event );
    37 /**
    38  * Check if an ASIC event is active (does not wait)
    39  * @return 0 if inactive, nonzero if active.
    40  */
    41 int asic_check( int event );
    43 /**
    44  * Clear all asic events
    45  */
    46 void asic_clear();
    48 /**
    49  * Print the contents of the ASIC event registers to the supplied FILE
    50  */
    51 void asic_dump( FILE *f );
    53 void asic_mask_all();
.