Bochs/bochs/plex86-interface.h
Kevin Lawton ac964e019a These files constitute the interface between bochs and the plex86
kernel driver.  I'll upload the minor mods for bochs to use
  this interface after we pull out of the 2.0 release mode.
2003-01-01 17:34:09 +00:00

41 lines
1.7 KiB
C

/////////////////////////////////////////////////////////////////////////
//// $Id: plex86-interface.h,v 1.1 2003-01-01 17:34:09 kevinlawton Exp $
///////////////////////////////////////////////////////////////////////////
////
//// Copyright (C) 2002 Kevin P. Lawton
////
//// This library is free software; you can redistribute it and/or
//// modify it under the terms of the GNU Lesser General Public
//// License as published by the Free Software Foundation; either
//// version 2 of the License, or (at your option) any later version.
////
//// This library is distributed in the hope that it will be useful,
//// but WITHOUT ANY WARRANTY; without even the implied warranty of
//// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
//// Lesser General Public License for more details.
////
//// You should have received a copy of the GNU Lesser General Public
//// License along with this library; if not, write to the Free Software
//// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "plex86/plex86.h"
#define Plex86StateMemAllocated 0x01
#define Plex86StateMMapPhyMem 0x02
#define Plex86StateMMapPrintBuffer 0x04
#define Plex86StateMMapGuestCPU 0x08
#define Plex86StateReady 0x0f /* All bits set. */
extern unsigned plex86State;
extern int plex86FD;
extern Bit8u *plex86MemPtr;
extern unsigned plex86MemSize;
extern Bit8u *plex86PrintBuffer;
extern guest_cpu_t *plex86GuestCPU;
extern int plex86Open(void);
extern unsigned char * plex86AllocateMemory(unsigned nMegs);
extern unsigned plex86TearDown(void);
extern unsigned plex86ExecuteInVM(BX_CPU_C *cpu);