DOSBox-X
|
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 #ifndef __XMS_H__ 00020 #define __XMS_H__ 00021 00022 Bitu XMS_QueryFreeMemory (Bit16u& largestFree, Bit16u& totalFree); 00023 Bitu XMS_AllocateMemory (Bitu size, Bit16u& handle); 00024 Bitu XMS_FreeMemory (Bitu handle); 00025 Bitu XMS_MoveMemory (PhysPt bpt); 00026 Bitu XMS_LockMemory (Bitu handle, Bit32u& address); 00027 Bitu XMS_UnlockMemory (Bitu handle); 00028 Bitu XMS_GetHandleInformation(Bitu handle, Bit8u& lockCount, Bit8u& numFree, Bit32u& size); 00029 Bitu XMS_ResizeMemory (Bitu handle, Bitu newSize); 00030 00031 Bitu XMS_EnableA20 (bool enable); 00032 Bitu XMS_GetEnabledA20 (void); 00033 00034 #endif