/*---------------------------------------------------------------------------* Project: Dolphin GX library File: GXManage.h Copyright 1998- 2002 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Log: GXManage.h,v $ Revision 1.2 2006/02/04 11:56:46 hashida (none) Revision 1.1.1.1 2005/12/29 06:53:28 hiratsu Initial import. Revision 1.1.1.1 2005/05/12 02:41:07 yasuh-to Ported from dolphin source tree. 11 2002/07/24 9:07 Hirose Resolved version conflicts. 10 2001/03/16 7:22p Carl Changes for XF stall bug. 9 2001/02/19 6:37p Tian Added GXResetWriteGatherPipe to clear all extraneous data currently in the write gather buffers. 8 2000/10/26 2:59p Hirose deleted GXDisableBypassBug. Now the setting is automatically done by GXInit. 7 2000/10/26 10:37a Tian Detabbed. Added GXDisableBypassBug to disable the buggy bypass logic on rev B chips. For testing code that may be hitting the nefarious Bypass Bug. 6 2000/07/18 12:16p Tian Added GXSetResetWritePipe - set to TRUE only for code that requires critical fifo alignment 5 2000/04/26 4:53p Carl CallBacks are now Callbacks. Set callback routines now return old callbacks. Added gets for fifo objects. 4 2000/03/17 4:41p Tian Added DrawSync and DrawDone callbacks 3 2000/02/01 7:22p Alligator Second GX update from ArtX 2 1999/12/10 4:53p Carl Added prototypes for new sync functions. 6 1999/10/26 8:05p Alligator added Get/Color10S/DrawDone functions 5 1999/10/20 11:51a Hirose fixed return type of GXReadDrawSync 4 1999/09/23 3:27p Tian Updated GXInit 3 1999/09/03 2:43p Ryan routine update to match man pages 2 1999/08/30 11:06a Ryan 1 1999/07/14 4:20p Alligator Split gx.h into individual header files for each major section of API $NoKeywords: $ *---------------------------------------------------------------------------*/ #ifndef __GXMANAGE_H__ #define __GXMANAGE_H__ #ifdef __cplusplus extern "C" { #endif /*---------------------------------------------------------------------------*/ #include #include #include #include typedef void (*GXDrawSyncCallback)(u16 token); typedef void (*GXDrawDoneCallback)(void); /*---------------------------------------------------------------------------*/ GXFifoObj* GXInit ( void* base, u32 size ); void GXAbortFrame ( void ); void GXSetDrawSync ( u16 token ); u16 GXReadDrawSync ( void ); GXDrawSyncCallback GXSetDrawSyncCallback( GXDrawSyncCallback cb ); void GXDrawDone ( void ); void GXSetDrawDone ( void ); void GXWaitDrawDone ( void ); GXDrawDoneCallback GXSetDrawDoneCallback( GXDrawDoneCallback cb ); #ifdef BUG_INDX_ALIGN void GXSetResetWritePipe ( GXBool tf ); #endif void GXFlush ( void ); void GXResetWriteGatherPipe ( void ); void GXPixModeSync ( void ); void GXTexModeSync ( void ); BOOL IsWriteGatherBufferEmpty ( void ); void GXSetMisc ( GXMiscToken token, u32 val ); /*---------------------------------------------------------------------------*/ #ifdef __cplusplus } #endif #endif // __GXMANAGE_H__