| 1 | /*************************************************************************** |
| 2 | * PCSX-Revolution - PlayStation Emulator for Nintendo Wii * |
| 3 | * Copyright (C) 2009-2010 PCSX-Revolution Dev Team * |
| 4 | * <http://code.google.com/p/pcsx-revolution/> * |
| 5 | * * |
| 6 | * This program is free software; you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 2 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, write to the * |
| 18 | * Free Software Foundation, Inc., * |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | #ifdef FLAGLESS |
| 23 | |
| 24 | #define gteRTPS gteRTPS_nf |
| 25 | #define gteOP gteOP_nf |
| 26 | #define gteNCLIP gteNCLIP_nf |
| 27 | #define gteDPCS gteDPCS_nf |
| 28 | #define gteINTPL gteINTPL_nf |
| 29 | #define gteMVMVA gteMVMVA_nf |
| 30 | #define gteNCDS gteNCDS_nf |
| 31 | #define gteNCDT gteNCDT_nf |
| 32 | #define gteCDP gteCDP_nf |
| 33 | #define gteNCCS gteNCCS_nf |
| 34 | #define gteCC gteCC_nf |
| 35 | #define gteNCS gteNCS_nf |
| 36 | #define gteNCT gteNCT_nf |
| 37 | #define gteSQR gteSQR_nf |
| 38 | #define gteDCPL gteDCPL_nf |
| 39 | #define gteDPCT gteDPCT_nf |
| 40 | #define gteAVSZ3 gteAVSZ3_nf |
| 41 | #define gteAVSZ4 gteAVSZ4_nf |
| 42 | #define gteRTPT gteRTPT_nf |
| 43 | #define gteGPF gteGPF_nf |
| 44 | #define gteGPL gteGPL_nf |
| 45 | #define gteNCCT gteNCCT_nf |
| 46 | |
| 47 | #endif |
| 48 | |
| 49 | #ifndef __GTE_H__ |
| 50 | #define __GTE_H__ |
| 51 | |
| 52 | #ifdef __cplusplus |
| 53 | extern "C" { |
| 54 | #endif |
| 55 | |
| 56 | #include "psxcommon.h" |
| 57 | #include "r3000a.h" |
| 58 | |
| 59 | typedef struct { |
| 60 | psxCP2Data CP2D; /* Cop2 data registers */ |
| 61 | psxCP2Ctrl CP2C; /* Cop2 control registers */ |
| 62 | } psxCP2Regs; |
| 63 | |
| 64 | void gteMFC2(); |
| 65 | void gteCFC2(); |
| 66 | void gteMTC2(); |
| 67 | void gteCTC2(); |
| 68 | void gteLWC2(); |
| 69 | void gteSWC2(); |
| 70 | |
| 71 | void gteRTPS(psxCP2Regs *regs); |
| 72 | void gteOP(psxCP2Regs *regs); |
| 73 | void gteNCLIP(psxCP2Regs *regs); |
| 74 | void gteDPCS(psxCP2Regs *regs); |
| 75 | void gteINTPL(psxCP2Regs *regs); |
| 76 | void gteMVMVA(psxCP2Regs *regs); |
| 77 | void gteNCDS(psxCP2Regs *regs); |
| 78 | void gteNCDT(psxCP2Regs *regs); |
| 79 | void gteCDP(psxCP2Regs *regs); |
| 80 | void gteNCCS(psxCP2Regs *regs); |
| 81 | void gteCC(psxCP2Regs *regs); |
| 82 | void gteNCS(psxCP2Regs *regs); |
| 83 | void gteNCT(psxCP2Regs *regs); |
| 84 | void gteSQR(psxCP2Regs *regs); |
| 85 | void gteDCPL(psxCP2Regs *regs); |
| 86 | void gteDPCT(psxCP2Regs *regs); |
| 87 | void gteAVSZ3(psxCP2Regs *regs); |
| 88 | void gteAVSZ4(psxCP2Regs *regs); |
| 89 | void gteRTPT(psxCP2Regs *regs); |
| 90 | void gteGPF(psxCP2Regs *regs); |
| 91 | void gteGPL(psxCP2Regs *regs); |
| 92 | void gteNCCT(psxCP2Regs *regs); |
| 93 | |
| 94 | #ifdef __cplusplus |
| 95 | } |
| 96 | #endif |
| 97 | #endif |