Revert freeldr back to revision 14697
[reactos.git] / reactos / boot / freeldr / freeldr / arch / i386 / machpc.c
1 /* $Id$
2 *
3 * FreeLoader
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include "freeldr.h"
21 #include "mm.h"
22 #include "arch.h"
23 #include "machine.h"
24 #include "machpc.h"
25 #include "rtl.h"
26
27 VOID
28 PcMachInit(VOID)
29 {
30 EnableA20();
31
32 /* Setup vtbl */
33 MachVtbl.ConsPutChar = PcConsPutChar;
34 MachVtbl.ConsKbHit = PcConsKbHit;
35 MachVtbl.ConsGetCh = PcConsGetCh;
36 MachVtbl.VideoClearScreen = PcVideoClearScreen;
37 MachVtbl.VideoSetDisplayMode = PcVideoSetDisplayMode;
38 MachVtbl.VideoGetDisplaySize = PcVideoGetDisplaySize;
39 MachVtbl.VideoGetBufferSize = PcVideoGetBufferSize;
40 MachVtbl.VideoSetTextCursorPosition = PcVideoSetTextCursorPosition;
41 MachVtbl.VideoSetTextCursorPosition = PcVideoSetTextCursorPosition;
42 MachVtbl.VideoHideShowTextCursor = PcVideoHideShowTextCursor;
43 MachVtbl.VideoPutChar = PcVideoPutChar;
44 MachVtbl.VideoCopyOffScreenBufferToVRAM = PcVideoCopyOffScreenBufferToVRAM;
45 MachVtbl.VideoIsPaletteFixed = PcVideoIsPaletteFixed;
46 MachVtbl.VideoSetPaletteColor = PcVideoSetPaletteColor;
47 MachVtbl.VideoGetPaletteColor = PcVideoGetPaletteColor;
48 MachVtbl.VideoSync = PcVideoSync;
49 MachVtbl.VideoPrepareForReactOS = PcVideoPrepareForReactOS;
50 MachVtbl.GetMemoryMap = PcMemGetMemoryMap;
51 MachVtbl.DiskReadLogicalSectors = PcDiskReadLogicalSectors;
52 MachVtbl.DiskGetPartitionEntry = PcDiskGetPartitionEntry;
53 MachVtbl.DiskGetDriveGeometry = PcDiskGetDriveGeometry;
54 MachVtbl.DiskGetCacheableBlockCount = PcDiskGetCacheableBlockCount;
55 MachVtbl.RTCGetCurrentDateTime = PcRTCGetCurrentDateTime;
56 MachVtbl.HwDetect = PcHwDetect;
57 }
58
59 /* EOF */