eae1bb06995b735488529d3f00e6450509474cb9
[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 #include "i386.h"
27
28 VOID
29 PcMachInit(char *CmdLine)
30 {
31 EnableA20();
32
33 /* Setup vtbl */
34 MachVtbl.ConsPutChar = PcConsPutChar;
35 MachVtbl.ConsKbHit = PcConsKbHit;
36 MachVtbl.ConsGetCh = PcConsGetCh;
37 MachVtbl.VideoClearScreen = PcVideoClearScreen;
38 MachVtbl.VideoSetDisplayMode = PcVideoSetDisplayMode;
39 MachVtbl.VideoGetDisplaySize = PcVideoGetDisplaySize;
40 MachVtbl.VideoGetBufferSize = PcVideoGetBufferSize;
41 MachVtbl.VideoSetTextCursorPosition = PcVideoSetTextCursorPosition;
42 MachVtbl.VideoSetTextCursorPosition = PcVideoSetTextCursorPosition;
43 MachVtbl.VideoHideShowTextCursor = PcVideoHideShowTextCursor;
44 MachVtbl.VideoPutChar = PcVideoPutChar;
45 MachVtbl.VideoCopyOffScreenBufferToVRAM = PcVideoCopyOffScreenBufferToVRAM;
46 MachVtbl.VideoIsPaletteFixed = PcVideoIsPaletteFixed;
47 MachVtbl.VideoSetPaletteColor = PcVideoSetPaletteColor;
48 MachVtbl.VideoGetPaletteColor = PcVideoGetPaletteColor;
49 MachVtbl.VideoSync = PcVideoSync;
50 MachVtbl.VideoPrepareForReactOS = PcVideoPrepareForReactOS;
51 MachVtbl.GetMemoryMap = PcMemGetMemoryMap;
52 MachVtbl.DiskGetBootVolume = i386DiskGetBootVolume;
53 MachVtbl.DiskGetSystemVolume = i386DiskGetSystemVolume;
54 MachVtbl.DiskGetBootPath = i386DiskGetBootPath;
55 MachVtbl.DiskGetBootDevice = i386DiskGetBootDevice;
56 MachVtbl.DiskBootingFromFloppy = i386DiskBootingFromFloppy;
57 MachVtbl.DiskNormalizeSystemPath = i386DiskNormalizeSystemPath;
58 MachVtbl.DiskReadLogicalSectors = PcDiskReadLogicalSectors;
59 MachVtbl.DiskGetPartitionEntry = PcDiskGetPartitionEntry;
60 MachVtbl.DiskGetDriveGeometry = PcDiskGetDriveGeometry;
61 MachVtbl.DiskGetCacheableBlockCount = PcDiskGetCacheableBlockCount;
62 MachVtbl.RTCGetCurrentDateTime = PcRTCGetCurrentDateTime;
63 MachVtbl.HwDetect = PcHwDetect;
64 }
65
66 /* EOF */