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
37 #undef MachVideoPrepareForReactOS
38 #undef MachGetMemoryMap
39 #undef MachDiskGetBootVolume
40 #undef MachDiskGetSystemVolume
41 #undef MachDiskGetBootPath
42 #undef MachDiskGetBootDevice
43 #undef MachDiskBootingFromFloppy
44 #undef MachDiskNormalizeSystemPath
45 #undef MachDiskReadLogicalSectors
46 #undef MachDiskGetPartitionEntry
47 #undef MachDiskGetDriveGeometry
48 #undef MachDiskGetCacheableBlockCount
49 #undef MachRTCGetCurrentDateTime
55 MachConsPutChar(int Ch
)
57 MachVtbl
.ConsPutChar(Ch
);
63 return MachVtbl
.ConsKbHit();
69 return MachVtbl
.ConsGetCh();
73 MachVideoClearScreen(UCHAR Attr
)
75 MachVtbl
.VideoClearScreen(Attr
);
79 MachVideoSetDisplayMode(char *DisplayMode
, BOOL Init
)
81 return MachVtbl
.VideoSetDisplayMode(DisplayMode
, Init
);
85 MachVideoGetDisplaySize(PULONG Width
, PULONG Height
, PULONG Depth
)
87 return MachVtbl
.VideoGetDisplaySize(Width
, Height
, Depth
);
91 MachVideoGetBufferSize(VOID
)
93 return MachVtbl
.VideoGetBufferSize();
97 MachVideoSetTextCursorPosition(ULONG X
, ULONG Y
)
99 return MachVtbl
.VideoSetTextCursorPosition(X
, Y
);
103 MachVideoHideShowTextCursor(BOOL Show
)
105 MachVtbl
.VideoHideShowTextCursor(Show
);
109 MachVideoPutChar(int Ch
, UCHAR Attr
, unsigned X
, unsigned Y
)
111 MachVtbl
.VideoPutChar(Ch
, Attr
, X
, Y
);
115 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer
)
117 MachVtbl
.VideoCopyOffScreenBufferToVRAM(Buffer
);
121 MachVideoIsPaletteFixed(VOID
)
123 return MachVtbl
.VideoIsPaletteFixed();
127 MachVideoSetPaletteColor(UCHAR Color
, UCHAR Red
, UCHAR Green
, UCHAR Blue
)
129 return MachVtbl
.VideoSetPaletteColor(Color
, Red
, Green
, Blue
);
133 MachVideoGetPaletteColor(UCHAR Color
, UCHAR
*Red
, UCHAR
*Green
, UCHAR
*Blue
)
135 return MachVtbl
.VideoGetPaletteColor(Color
, Red
, Green
, Blue
);
141 MachVtbl
.VideoSync();
145 MachVideoPrepareForReactOS(VOID
)
147 MachVtbl
.VideoPrepareForReactOS();
151 MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap
, ULONG MaxMemoryMapSize
)
153 return MachVtbl
.GetMemoryMap(BiosMemoryMap
, MaxMemoryMapSize
);
157 MachDiskGetBootVolume(PULONG DriveNumber
, PULONGLONG StartSector
, PULONGLONG SectorCount
, int *FsType
)
159 return MachVtbl
.DiskGetBootVolume(DriveNumber
, StartSector
, SectorCount
, FsType
);
163 MachDiskGetSystemVolume(char *SystemPath
,
167 PULONGLONG StartSector
,
168 PULONGLONG SectorCount
,
171 return MachVtbl
.DiskGetSystemVolume(SystemPath
, RemainingPath
, Device
,
172 DriveNumber
, StartSector
, SectorCount
,
177 MachDiskGetBootPath(char *BootPath
, unsigned Size
)
179 return MachVtbl
.DiskGetBootPath(BootPath
, Size
);
183 MachDiskGetBootDevice(PULONG BootDevice
)
185 MachVtbl
.DiskGetBootDevice(BootDevice
);
189 MachDiskBootingFromFloppy()
191 return MachVtbl
.DiskBootingFromFloppy();
195 MachDiskNormalizeSystemPath(char *SystemPath
, unsigned Size
)
197 return MachVtbl
.DiskNormalizeSystemPath(SystemPath
, Size
);
201 MachDiskReadLogicalSectors(ULONG DriveNumber
, ULONGLONG SectorNumber
, ULONG SectorCount
, PVOID Buffer
)
203 return MachVtbl
.DiskReadLogicalSectors(DriveNumber
, SectorNumber
, SectorCount
, Buffer
);
207 MachDiskGetPartitionEntry(ULONG DriveNumber
, ULONG PartitionNumber
, PPARTITION_TABLE_ENTRY PartitionTableEntry
)
209 return MachVtbl
.DiskGetPartitionEntry(DriveNumber
, PartitionNumber
, PartitionTableEntry
);
213 MachDiskGetDriveGeometry(ULONG DriveNumber
, PGEOMETRY DriveGeometry
)
215 return MachVtbl
.DiskGetDriveGeometry(DriveNumber
, DriveGeometry
);
219 MachDiskGetCacheableBlockCount(ULONG DriveNumber
)
221 return MachVtbl
.DiskGetCacheableBlockCount(DriveNumber
);
225 MachRTCGetCurrentDateTime(PULONG Year
, PULONG Month
, PULONG Day
, PULONG Hour
, PULONG Minute
, PULONG Second
)
227 MachVtbl
.RTCGetCurrentDateTime(Year
, Month
, Day
, Hour
, Minute
, Second
);