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 along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 MachDiskGetBootPath
40 #undef MachDiskNormalizeSystemPath
41 #undef MachDiskReadLogicalSectors
42 #undef MachDiskGetDriveGeometry
43 #undef MachDiskGetCacheableBlockCount
48 MachConsPutChar(int Ch
)
50 MachVtbl
.ConsPutChar(Ch
);
56 return MachVtbl
.ConsKbHit();
62 return MachVtbl
.ConsGetCh();
66 MachVideoClearScreen(UCHAR Attr
)
68 MachVtbl
.VideoClearScreen(Attr
);
72 MachVideoSetDisplayMode(char *DisplayMode
, BOOLEAN Init
)
74 return MachVtbl
.VideoSetDisplayMode(DisplayMode
, Init
);
78 MachVideoGetDisplaySize(PULONG Width
, PULONG Height
, PULONG Depth
)
80 MachVtbl
.VideoGetDisplaySize(Width
, Height
, Depth
);
84 MachVideoGetBufferSize(VOID
)
86 return MachVtbl
.VideoGetBufferSize();
90 MachVideoSetTextCursorPosition(ULONG X
, ULONG Y
)
92 MachVtbl
.VideoSetTextCursorPosition(X
, Y
);
96 MachVideoHideShowTextCursor(BOOLEAN Show
)
98 MachVtbl
.VideoHideShowTextCursor(Show
);
102 MachVideoPutChar(int Ch
, UCHAR Attr
, unsigned X
, unsigned Y
)
104 MachVtbl
.VideoPutChar(Ch
, Attr
, X
, Y
);
108 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer
)
110 MachVtbl
.VideoCopyOffScreenBufferToVRAM(Buffer
);
114 MachVideoIsPaletteFixed(VOID
)
116 return MachVtbl
.VideoIsPaletteFixed();
120 MachVideoSetPaletteColor(UCHAR Color
, UCHAR Red
, UCHAR Green
, UCHAR Blue
)
122 MachVtbl
.VideoSetPaletteColor(Color
, Red
, Green
, Blue
);
126 MachVideoGetPaletteColor(UCHAR Color
, UCHAR
*Red
, UCHAR
*Green
, UCHAR
*Blue
)
128 MachVtbl
.VideoGetPaletteColor(Color
, Red
, Green
, Blue
);
134 MachVtbl
.VideoSync();
144 MachPrepareForReactOS(IN BOOLEAN Setup
)
146 MachVtbl
.PrepareForReactOS(Setup
);
150 MachDiskGetBootPath(char *BootPath
, unsigned Size
)
152 return MachVtbl
.DiskGetBootPath(BootPath
, Size
);
156 MachDiskNormalizeSystemPath(char *SystemPath
, unsigned Size
)
158 return MachVtbl
.DiskNormalizeSystemPath(SystemPath
, Size
);
162 MachDiskReadLogicalSectors(ULONG DriveNumber
, ULONGLONG SectorNumber
, ULONG SectorCount
, PVOID Buffer
)
164 return MachVtbl
.DiskReadLogicalSectors(DriveNumber
, SectorNumber
, SectorCount
, Buffer
);
168 MachDiskGetDriveGeometry(ULONG DriveNumber
, PGEOMETRY DriveGeometry
)
170 return MachVtbl
.DiskGetDriveGeometry(DriveNumber
, DriveGeometry
);
174 MachDiskGetCacheableBlockCount(ULONG DriveNumber
)
176 return MachVtbl
.DiskGetCacheableBlockCount(DriveNumber
);