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_G2_DMA0 15
17 #define EVENT_G2_DMA1 16
18 #define EVENT_G2_DMA2 17
19 #define EVENT_G2_DMA3 18
20 #define EVENT_PVR_DMA 19
21 #define EVENT_SORT_DMA 20
22 #define EVENT_PVR_PUNCHOUT_DONE 21
24 #define EVENT_TA_ERROR 31
28 #define EVENT_PVR_PRIM_ALLOC_FAIL 66
29 #define EVENT_PVR_MATRIX_ALLOC_FAIL 67
30 #define EVENT_PVR_BAD_INPUT 68
32 #define EVENT_SORT_DMA_ERR 92
35 * Wait for an ASIC event.
36 * @return 0 if the event occurred, otherwise -1 if the wait timed out.
38 int asic_wait( int event );
41 * Wait for either of a pair of events.
42 * @return the event ID of the event that occured, or -1 if the wait timed out
44 int asic_wait2( int event1, int event2 );
47 * Check if an ASIC event is active (does not wait)
48 * @return 0 if inactive, nonzero if active.
50 int asic_check( int event );
53 * Clear all asic events
58 * Print the contents of the ASIC event registers to the supplied FILE
60 void asic_dump( FILE *f );
65 * Wait until the G2 FIFO buffer is clear to write
.