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.
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.
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.
21 #undef MachConsPutChar
24 #undef MachVideoClearScreen
25 #undef MachVideoSetDisplayMode
26 #undef MachVideoGetDisplaySize
27 #undef MachVideoGetBufferSize
28 #undef MachVideoSetTextCursorPosition
29 #undef MachVideoHideShowTextCursor
30 #undef MachVideoPutChar
31 #undef MachVideoCopyOffScreenBufferToVRAM
32 #undef MachVideoIsPaletteFixed
33 #undef MachVideoSetPaletteColor
34 #undef MachVideoGetPaletteColor
37 #undef MachPrepareForReactOS
38 #undef MachDiskGetBootPath
39 #undef MachDiskReadLogicalSectors
40 #undef MachDiskGetDriveGeometry
41 #undef MachDiskGetCacheableBlockCount
46 MachConsPutChar(int Ch
)
48 MachVtbl
.ConsPutChar(Ch
);
54 return MachVtbl
.ConsKbHit();
60 return MachVtbl
.ConsGetCh();
64 MachVideoClearScreen(UCHAR Attr
)
66 MachVtbl
.VideoClearScreen(Attr
);
70 MachVideoSetDisplayMode(char *DisplayMode
, BOOLEAN Init
)
72 return MachVtbl
.VideoSetDisplayMode(DisplayMode
, Init
);
76 MachVideoGetDisplaySize(PULONG Width
, PULONG Height
, PULONG Depth
)
78 MachVtbl
.VideoGetDisplaySize(Width
, Height
, Depth
);
82 MachVideoGetBufferSize(VOID
)
84 return MachVtbl
.VideoGetBufferSize();
88 MachVideoSetTextCursorPosition(UCHAR X
, UCHAR Y
)
90 MachVtbl
.VideoSetTextCursorPosition(X
, Y
);
94 MachVideoHideShowTextCursor(BOOLEAN Show
)
96 MachVtbl
.VideoHideShowTextCursor(Show
);
100 MachVideoPutChar(int Ch
, UCHAR Attr
, unsigned X
, unsigned Y
)
102 MachVtbl
.VideoPutChar(Ch
, Attr
, X
, Y
);
106 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer
)
108 MachVtbl
.VideoCopyOffScreenBufferToVRAM(Buffer
);
112 MachVideoIsPaletteFixed(VOID
)
114 return MachVtbl
.VideoIsPaletteFixed();
118 MachVideoSetPaletteColor(UCHAR Color
, UCHAR Red
, UCHAR Green
, UCHAR Blue
)
120 MachVtbl
.VideoSetPaletteColor(Color
, Red
, Green
, Blue
);
124 MachVideoGetPaletteColor(UCHAR Color
, UCHAR
*Red
, UCHAR
*Green
, UCHAR
*Blue
)
126 MachVtbl
.VideoGetPaletteColor(Color
, Red
, Green
, Blue
);
132 MachVtbl
.VideoSync();
142 MachPrepareForReactOS(IN BOOLEAN Setup
)
144 MachVtbl
.PrepareForReactOS(Setup
);
148 MachDiskGetBootPath(char *BootPath
, unsigned Size
)
150 return MachVtbl
.DiskGetBootPath(BootPath
, Size
);
154 MachDiskReadLogicalSectors(UCHAR DriveNumber
, ULONGLONG SectorNumber
, ULONG SectorCount
, PVOID Buffer
)
156 return MachVtbl
.DiskReadLogicalSectors(DriveNumber
, SectorNumber
, SectorCount
, Buffer
);
160 MachDiskGetDriveGeometry(UCHAR DriveNumber
, PGEOMETRY DriveGeometry
)
162 return MachVtbl
.DiskGetDriveGeometry(DriveNumber
, DriveGeometry
);
166 MachDiskGetCacheableBlockCount(UCHAR DriveNumber
)
168 return MachVtbl
.DiskGetCacheableBlockCount(DriveNumber
);