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.
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.
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.
22 #undef MachConsPutChar
25 #undef MachVideoClearScreen
26 #undef MachVideoSetDisplayMode
27 #undef MachVideoGetDisplaySize
28 #undef MachVideoGetBufferSize
29 #undef MachVideoSetTextCursorPosition
30 #undef MachVideoHideShowTextCursor
31 #undef MachVideoPutChar
32 #undef MachVideoCopyOffScreenBufferToVRAM
33 #undef MachVideoIsPaletteFixed
34 #undef MachVideoSetPaletteColor
35 #undef MachVideoGetPaletteColor
38 #undef MachPrepareForReactOS
39 #undef MachGetMemoryMap
40 #undef MachDiskGetBootVolume
41 #undef MachDiskGetSystemVolume
42 #undef MachDiskGetBootPath
43 #undef MachDiskGetBootDevice
44 #undef MachDiskBootingFromFloppy
45 #undef MachDiskNormalizeSystemPath
46 #undef MachDiskReadLogicalSectors
47 #undef MachDiskGetPartitionEntry
48 #undef MachDiskGetDriveGeometry
49 #undef MachDiskGetCacheableBlockCount
50 #undef MachRTCGetCurrentDateTime
56 MachConsPutChar(int Ch
)
58 MachVtbl
.ConsPutChar(Ch
);
64 return MachVtbl
.ConsKbHit();
70 return MachVtbl
.ConsGetCh();
74 MachVideoClearScreen(UCHAR Attr
)
76 MachVtbl
.VideoClearScreen(Attr
);
80 MachVideoSetDisplayMode(char *DisplayMode
, BOOLEAN Init
)
82 return MachVtbl
.VideoSetDisplayMode(DisplayMode
, Init
);
86 MachVideoGetDisplaySize(PULONG Width
, PULONG Height
, PULONG Depth
)
88 return MachVtbl
.VideoGetDisplaySize(Width
, Height
, Depth
);
92 MachVideoGetBufferSize(VOID
)
94 return MachVtbl
.VideoGetBufferSize();
98 MachVideoSetTextCursorPosition(ULONG X
, ULONG Y
)
100 return MachVtbl
.VideoSetTextCursorPosition(X
, Y
);
104 MachVideoHideShowTextCursor(BOOLEAN Show
)
106 MachVtbl
.VideoHideShowTextCursor(Show
);
110 MachVideoPutChar(int Ch
, UCHAR Attr
, unsigned X
, unsigned Y
)
112 MachVtbl
.VideoPutChar(Ch
, Attr
, X
, Y
);
116 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer
)
118 MachVtbl
.VideoCopyOffScreenBufferToVRAM(Buffer
);
122 MachVideoIsPaletteFixed(VOID
)
124 return MachVtbl
.VideoIsPaletteFixed();
128 MachVideoSetPaletteColor(UCHAR Color
, UCHAR Red
, UCHAR Green
, UCHAR Blue
)
130 return MachVtbl
.VideoSetPaletteColor(Color
, Red
, Green
, Blue
);
134 MachVideoGetPaletteColor(UCHAR Color
, UCHAR
*Red
, UCHAR
*Green
, UCHAR
*Blue
)
136 return MachVtbl
.VideoGetPaletteColor(Color
, Red
, Green
, Blue
);
142 MachVtbl
.VideoSync();
152 MachPrepareForReactOS(IN BOOLEAN Setup
)
154 MachVtbl
.PrepareForReactOS(Setup
);
158 MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap
, ULONG MaxMemoryMapSize
)
160 return MachVtbl
.GetMemoryMap(BiosMemoryMap
, MaxMemoryMapSize
);
164 MachDiskGetBootVolume(PULONG DriveNumber
, PULONGLONG StartSector
, PULONGLONG SectorCount
, int *FsType
)
166 return MachVtbl
.DiskGetBootVolume(DriveNumber
, StartSector
, SectorCount
, FsType
);
170 MachDiskGetSystemVolume(char *SystemPath
,
174 PULONGLONG StartSector
,
175 PULONGLONG SectorCount
,
178 return MachVtbl
.DiskGetSystemVolume(SystemPath
, RemainingPath
, Device
,
179 DriveNumber
, StartSector
, SectorCount
,
184 MachDiskGetBootPath(char *BootPath
, unsigned Size
)
186 return MachVtbl
.DiskGetBootPath(BootPath
, Size
);
190 MachDiskGetBootDevice(PULONG BootDevice
)
192 MachVtbl
.DiskGetBootDevice(BootDevice
);
196 MachDiskBootingFromFloppy()
198 return MachVtbl
.DiskBootingFromFloppy();
202 MachDiskNormalizeSystemPath(char *SystemPath
, unsigned Size
)
204 return MachVtbl
.DiskNormalizeSystemPath(SystemPath
, Size
);
208 MachDiskReadLogicalSectors(ULONG DriveNumber
, ULONGLONG SectorNumber
, ULONG SectorCount
, PVOID Buffer
)
210 return MachVtbl
.DiskReadLogicalSectors(DriveNumber
, SectorNumber
, SectorCount
, Buffer
);
214 MachDiskGetPartitionEntry(ULONG DriveNumber
, ULONG PartitionNumber
, PPARTITION_TABLE_ENTRY PartitionTableEntry
)
216 return MachVtbl
.DiskGetPartitionEntry(DriveNumber
, PartitionNumber
, PartitionTableEntry
);
220 MachDiskGetDriveGeometry(ULONG DriveNumber
, PGEOMETRY DriveGeometry
)
222 return MachVtbl
.DiskGetDriveGeometry(DriveNumber
, DriveGeometry
);
226 MachDiskGetCacheableBlockCount(ULONG DriveNumber
)
228 return MachVtbl
.DiskGetCacheableBlockCount(DriveNumber
);
232 MachRTCGetCurrentDateTime(PULONG Year
, PULONG Month
, PULONG Day
, PULONG Hour
, PULONG Minute
, PULONG Second
)
234 MachVtbl
.RTCGetCurrentDateTime(Year
, Month
, Day
, Hour
, Minute
, Second
);