DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
include/voodoo.h
00001  /*
00002  *  Copyright (C) 2002-2020  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 along
00015  *  with this program; if not, write to the Free Software Foundation, Inc.,
00016  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  */
00018 
00019 
00020 #ifndef DOSBOX_VOODOO_H
00021 #define DOSBOX_VOODOO_H
00022 
00023 
00024 #define VOODOO_INITIAL_LFB      0xd0000000
00025 #define VOODOO_REG_PAGES        1024
00026 #define VOODOO_LFB_PAGES        1024
00027 #define VOODOO_TEX_PAGES        2048
00028 #define VOODOO_PAGES (VOODOO_REG_PAGES+VOODOO_LFB_PAGES+VOODOO_TEX_PAGES)
00029 
00030 
00031 #define VOODOO_EMU_TYPE_OFF                     0
00032 #define VOODOO_EMU_TYPE_SOFTWARE        1
00033 #define VOODOO_EMU_TYPE_ACCELERATED     2
00034 
00035 
00036 void VOODOO_PCI_InitEnable(Bitu val);
00037 void VOODOO_PCI_Enable(bool enable);
00038 void VOODOO_PCI_SetLFB(Bit32u lfbaddr);
00039 bool VOODOO_PCI_CheckLFBPage(Bitu page);
00040 PageHandler* VOODOO_GetPageHandler();
00041 
00042 #endif