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
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@185
    23
#define EVENT_IDE       32
nkeynes@185
    24
#define EVENT_AICA      33
nkeynes@185
    25
nkeynes@185
    26
/**
nkeynes@185
    27
 * Wait for an ASIC event. 
nkeynes@185
    28
 * @return 0 if the event occurred, otherwise -1 if the wait timed out.
nkeynes@185
    29
 */
nkeynes@185
    30
int asic_wait( int event );
nkeynes@185
    31
nkeynes@185
    32
/**
nkeynes@185
    33
 * Clear all asic events
nkeynes@185
    34
 */
nkeynes@185
    35
void asic_clear();
nkeynes@185
    36
nkeynes@185
    37
/**
nkeynes@185
    38
 * Print the contents of the ASIC event registers to the supplied FILE
nkeynes@185
    39
 */
nkeynes@185
    40
void asic_dump( FILE *f );
nkeynes@185
    41
nkeynes@185
    42
void asic_mask_all();
.