Sync with trunk r63430.
[reactos.git] / boot / freeldr / freeldr / arch / i386 / machpc.c
1 /*
2 * FreeLoader
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #include <freeldr.h>
20
21 VOID
22 PcMachInit(const char *CmdLine)
23 {
24 /* Setup vtbl */
25 MachVtbl.ConsPutChar = PcConsPutChar;
26 MachVtbl.ConsKbHit = PcConsKbHit;
27 MachVtbl.ConsGetCh = PcConsGetCh;
28 MachVtbl.VideoClearScreen = PcVideoClearScreen;
29 MachVtbl.VideoSetDisplayMode = PcVideoSetDisplayMode;
30 MachVtbl.VideoGetDisplaySize = PcVideoGetDisplaySize;
31 MachVtbl.VideoGetBufferSize = PcVideoGetBufferSize;
32 MachVtbl.VideoSetTextCursorPosition = PcVideoSetTextCursorPosition;
33 MachVtbl.VideoHideShowTextCursor = PcVideoHideShowTextCursor;
34 MachVtbl.VideoPutChar = PcVideoPutChar;
35 MachVtbl.VideoCopyOffScreenBufferToVRAM = PcVideoCopyOffScreenBufferToVRAM;
36 MachVtbl.VideoIsPaletteFixed = PcVideoIsPaletteFixed;
37 MachVtbl.VideoSetPaletteColor = PcVideoSetPaletteColor;
38 MachVtbl.VideoGetPaletteColor = PcVideoGetPaletteColor;
39 MachVtbl.VideoSync = PcVideoSync;
40 MachVtbl.Beep = PcBeep;
41 MachVtbl.PrepareForReactOS = PcPrepareForReactOS;
42 MachVtbl.GetMemoryMap = PcMemGetMemoryMap;
43 MachVtbl.DiskGetBootPath = PcDiskGetBootPath;
44 MachVtbl.DiskReadLogicalSectors = PcDiskReadLogicalSectors;
45 MachVtbl.DiskGetDriveGeometry = PcDiskGetDriveGeometry;
46 MachVtbl.DiskGetCacheableBlockCount = PcDiskGetCacheableBlockCount;
47 MachVtbl.GetTime = PcGetTime;
48 MachVtbl.InitializeBootDevices = PcInitializeBootDevices;
49 MachVtbl.HwDetect = PcHwDetect;
50 MachVtbl.HwIdle = PcHwIdle;
51 }
52
53 VOID
54 PcPrepareForReactOS(IN BOOLEAN Setup)
55 {
56 //
57 // On PC, prepare video and turn off the floppy motor
58 //
59 PcVideoPrepareForReactOS(Setup);
60 DiskStopFloppyMotor();
61 }
62 /* EOF */