DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
src/hardware/voodoo_emu.h
00001  /*
00002  *  Copyright (C) 2002-2013  The DOSBox Team
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 
00020 #ifndef DOSBOX_VOODOO_EMU_H
00021 #define DOSBOX_VOODOO_EMU_H
00022 
00023 #include <stdlib.h>
00024 
00025 #include "dosbox.h"
00026 
00027 #include "voodoo_types.h"
00028 #include "voodoo_data.h"
00029 
00030 
00031 extern voodoo_state *v;
00032 
00033 void voodoo_w(UINT32 offset, UINT32 data, UINT32 mask);
00034 UINT32 voodoo_r(UINT32 offset);
00035 
00036 void voodoo_init(int type);
00037 void voodoo_shutdown();
00038 void voodoo_leave(void);
00039 
00040 void voodoo_activate(void);
00041 void voodoo_update_dimensions(void);
00042 void voodoo_set_window(void);
00043 
00044 void voodoo_vblank_flush(void);
00045 void voodoo_swap_buffers(voodoo_state *v);
00046 
00047 
00048 extern void Voodoo_UpdateScreenStart();
00049 extern void Voodoo_Output_Enable(bool enabled);
00050 extern bool Voodoo_GetRetrace();
00051 extern double Voodoo_GetVRetracePosition();
00052 extern double Voodoo_GetHRetracePosition();
00053 
00054 
00055 extern void CPU_Core_Dyn_X86_SaveDHFPUState(void);
00056 extern void CPU_Core_Dyn_X86_RestoreDHFPUState(void);
00057 
00058 #endif