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.
23 #undef MachConsPutChar
26 #undef MachVideoClearScreen
27 #undef MachVideoSetDisplayMode
28 #undef MachVideoGetDisplaySize
29 #undef MachVideoGetBufferSize
30 #undef MachVideoSetTextCursorPosition
31 #undef MachVideoHideShowTextCursor
32 #undef MachVideoPutChar
33 #undef MachVideoCopyOffScreenBufferToVRAM
34 #undef MachVideoIsPaletteFixed
35 #undef MachVideoSetPaletteColor
36 #undef MachVideoGetPaletteColor
38 #undef MachVideoPrepareForReactOS
39 #undef MachGetMemoryMap
40 #undef MachDiskReadLogicalSectors
41 #undef MachDiskGetPartitionEntry
42 #undef MachDiskGetDriveGeometry
43 #undef MachDiskGetCacheableBlockCount
44 #undef MachRTCGetCurrentDateTime
50 MachConsPutChar(int Ch
)
52 MachVtbl
.ConsPutChar(Ch
);
58 return MachVtbl
.ConsKbHit();
64 return MachVtbl
.ConsGetCh();
68 MachVideoClearScreen(UCHAR Attr
)
70 MachVtbl
.VideoClearScreen(Attr
);
74 MachVideoSetDisplayMode(char *DisplayMode
, BOOL Init
)
76 return MachVtbl
.VideoSetDisplayMode(DisplayMode
, Init
);
80 MachVideoGetDisplaySize(PULONG Width
, PULONG Height
, PULONG Depth
)
82 return MachVtbl
.VideoGetDisplaySize(Width
, Height
, Depth
);
86 MachVideoGetBufferSize(VOID
)
88 return MachVtbl
.VideoGetBufferSize();
92 MachVideoSetTextCursorPosition(ULONG X
, ULONG Y
)
94 return MachVtbl
.VideoSetTextCursorPosition(X
, Y
);
98 MachVideoHideShowTextCursor(BOOL Show
)
100 MachVtbl
.VideoHideShowTextCursor(Show
);
104 MachVideoPutChar(int Ch
, UCHAR Attr
, unsigned X
, unsigned Y
)
106 MachVtbl
.VideoPutChar(Ch
, Attr
, X
, Y
);
110 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer
)
112 MachVtbl
.VideoCopyOffScreenBufferToVRAM(Buffer
);
116 MachVideoIsPaletteFixed(VOID
)
118 return MachVtbl
.VideoIsPaletteFixed();
122 MachVideoSetPaletteColor(UCHAR Color
, UCHAR Red
, UCHAR Green
, UCHAR Blue
)
124 return MachVtbl
.VideoSetPaletteColor(Color
, Red
, Green
, Blue
);
128 MachVideoGetPaletteColor(UCHAR Color
, UCHAR
*Red
, UCHAR
*Green
, UCHAR
*Blue
)
130 return MachVtbl
.VideoGetPaletteColor(Color
, Red
, Green
, Blue
);
136 MachVtbl
.VideoSync();
140 MachVideoPrepareForReactOS(VOID
)
142 MachVtbl
.VideoPrepareForReactOS();
146 MachGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap
, ULONG MaxMemoryMapSize
)
148 return MachVtbl
.GetMemoryMap(BiosMemoryMap
, MaxMemoryMapSize
);
152 MachDiskReadLogicalSectors(ULONG DriveNumber
, ULONGLONG SectorNumber
, ULONG SectorCount
, PVOID Buffer
)
154 return MachVtbl
.DiskReadLogicalSectors(DriveNumber
, SectorNumber
, SectorCount
, Buffer
);
158 MachDiskGetPartitionEntry(ULONG DriveNumber
, ULONG PartitionNumber
, PPARTITION_TABLE_ENTRY PartitionTableEntry
)
160 return MachVtbl
.DiskGetPartitionEntry(DriveNumber
, PartitionNumber
, PartitionTableEntry
);
164 MachDiskGetDriveGeometry(ULONG DriveNumber
, PGEOMETRY DriveGeometry
)
166 return MachVtbl
.DiskGetDriveGeometry(DriveNumber
, DriveGeometry
);
170 MachDiskGetCacheableBlockCount(ULONG DriveNumber
)
172 return MachVtbl
.DiskGetCacheableBlockCount(DriveNumber
);
176 MachRTCGetCurrentDateTime(PULONG Year
, PULONG Month
, PULONG Day
, PULONG Hour
, PULONG Minute
, PULONG Second
)
178 MachVtbl
.RTCGetCurrentDateTime(Year
, Month
, Day
, Hour
, Minute
, Second
);