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 Sat Aug 05 00:18:21 2006 +0000 (16 years ago)
permissions -rw-r--r--
last change Add error lines to tests with incomplete polys
Split clip tests to separate data file
Add tests for cmd bit 23 ("use list size field")
file annotate diff log raw
nkeynes@185
     1
nkeynes@185
     2
#include <stdio.h>
nkeynes@185
     3
nkeynes@185
     4
#define EVENT_PVR_RENDER_DONE 2
nkeynes@185
     5
#define EVENT_SCANLINE1 3
nkeynes@185
     6
#define EVENT_SCANLINE2 4
nkeynes@185
     7
#define EVENT_RETRACE   5
nkeynes@185
     8
#define EVENT_PVR_UNK 6
nkeynes@185
     9
#define EVENT_PVR_OPAQUE_DONE 7
nkeynes@185
    10
#define EVENT_PVR_OPAQUEMOD_DONE 8
nkeynes@185
    11
#define EVENT_PVR_TRANS_DONE 9
nkeynes@185
    12
#define EVENT_PVR_TRANSMOD_DONE 10
nkeynes@185
    13
#define EVENT_MAPLE_DMA 12
nkeynes@185
    14
#define EVENT_MAPLE_ERR 13 /* ??? */
nkeynes@185
    15
#define EVENT_IDE_DMA 14
nkeynes@185
    16
#define EVENT_SPU_DMA0  15
nkeynes@185
    17
#define EVENT_SPU_DMA1  16
nkeynes@185
    18
#define EVENT_SPU_DMA2  17
nkeynes@185
    19
#define EVENT_SPU_DMA3  18
nkeynes@185
    20
#define EVENT_PVR_DMA   19
nkeynes@185
    21
#define EVENT_PVR_PUNCHOUT_DONE 21
nkeynes@185
    22
nkeynes@193
    23
#define EVENT_TA_ERROR  31
nkeynes@185
    24
#define EVENT_IDE       32
nkeynes@185
    25
#define EVENT_AICA      33
nkeynes@185
    26
nkeynes@193
    27
#define EVENT_PVR_PRIM_ALLOC_FAIL 66
nkeynes@193
    28
#define EVENT_PVR_MATRIX_ALLOC_FAIL 67
nkeynes@193
    29
#define EVENT_PVR_BAD_INPUT 68
nkeynes@193
    30
nkeynes@185
    31
/**
nkeynes@185
    32
 * Wait for an ASIC event. 
nkeynes@185
    33
 * @return 0 if the event occurred, otherwise -1 if the wait timed out.
nkeynes@185
    34
 */
nkeynes@185
    35
int asic_wait( int event );
nkeynes@185
    36
nkeynes@185
    37
/**
nkeynes@193
    38
 * Check if an ASIC event is active (does not wait)
nkeynes@193
    39
 * @return 0 if inactive, nonzero if active.
nkeynes@193
    40
 */
nkeynes@193
    41
int asic_check( int event );
nkeynes@193
    42
nkeynes@193
    43
/**
nkeynes@185
    44
 * Clear all asic events
nkeynes@185
    45
 */
nkeynes@185
    46
void asic_clear();
nkeynes@185
    47
nkeynes@185
    48
/**
nkeynes@185
    49
 * Print the contents of the ASIC event registers to the supplied FILE
nkeynes@185
    50
 */
nkeynes@185
    51
void asic_dump( FILE *f );
nkeynes@185
    52
nkeynes@185
    53
void asic_mask_all();
.