Search
lxdream.org :: lxdream/test/asic.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/asic.h
changeset 185:6755a04c447f
next193:31151fcc3cb7
author nkeynes
date Tue Aug 01 21:56:48 2006 +0000 (17 years ago)
permissions -rw-r--r--
last change Remove no-longer-needed logging
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/asic.h Tue Aug 01 21:56:48 2006 +0000
1.3 @@ -0,0 +1,42 @@
1.4 +
1.5 +#include <stdio.h>
1.6 +
1.7 +#define EVENT_PVR_RENDER_DONE 2
1.8 +#define EVENT_SCANLINE1 3
1.9 +#define EVENT_SCANLINE2 4
1.10 +#define EVENT_RETRACE 5
1.11 +#define EVENT_PVR_UNK 6
1.12 +#define EVENT_PVR_OPAQUE_DONE 7
1.13 +#define EVENT_PVR_OPAQUEMOD_DONE 8
1.14 +#define EVENT_PVR_TRANS_DONE 9
1.15 +#define EVENT_PVR_TRANSMOD_DONE 10
1.16 +#define EVENT_MAPLE_DMA 12
1.17 +#define EVENT_MAPLE_ERR 13 /* ??? */
1.18 +#define EVENT_IDE_DMA 14
1.19 +#define EVENT_SPU_DMA0 15
1.20 +#define EVENT_SPU_DMA1 16
1.21 +#define EVENT_SPU_DMA2 17
1.22 +#define EVENT_SPU_DMA3 18
1.23 +#define EVENT_PVR_DMA 19
1.24 +#define EVENT_PVR_PUNCHOUT_DONE 21
1.25 +
1.26 +#define EVENT_IDE 32
1.27 +#define EVENT_AICA 33
1.28 +
1.29 +/**
1.30 + * Wait for an ASIC event.
1.31 + * @return 0 if the event occurred, otherwise -1 if the wait timed out.
1.32 + */
1.33 +int asic_wait( int event );
1.34 +
1.35 +/**
1.36 + * Clear all asic events
1.37 + */
1.38 +void asic_clear();
1.39 +
1.40 +/**
1.41 + * Print the contents of the ASIC event registers to the supplied FILE
1.42 + */
1.43 +void asic_dump( FILE *f );
1.44 +
1.45 +void asic_mask_all();
.