Support video and memory detection on the Xbox
[reactos.git] / freeldr / freeldr / machine.c
diff --git a/freeldr/freeldr/machine.c b/freeldr/freeldr/machine.c
new file mode 100644 (file)
index 0000000..1ab96bb
--- /dev/null
@@ -0,0 +1,51 @@
+/* $Id: machine.c,v 1.1 2004/11/08 22:02:47 gvg Exp $
+ *
+ *  FreeLoader
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include "freeldr.h"
+#include "machine.h"
+
+#undef MachClearScreenAttr
+#undef MachPutChar
+#undef MachPutCharAttrAtLoc
+#undef MachGetMemoryMap
+
+MACHVTBL MachVtbl;
+
+void 
+MachClearScreenAttr(U8 Attr)
+{
+  MachVtbl.ClearScreenAttr(Attr);
+}
+
+void MachPutChar(int Ch)
+{
+  MachVtbl.PutChar(Ch);
+}
+
+void MachPutCharAttrAtLoc(int Ch, U8 Attr, unsigned X, unsigned Y)
+{
+  MachVtbl.PutCharAttrAtLoc(Ch, Attr, X, Y);
+}
+
+U32 MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, U32 MaxMemoryMapSize)
+{
+  return MachVtbl.GetMemoryMap(BiosMemoryMap, MaxMemoryMapSize);
+}
+
+/* EOF */