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 MachDiskReadLogicalSectors
41 #undef MachDiskGetDriveGeometry
42 #undef MachDiskGetCacheableBlockCount
47 MachConsPutChar(int Ch
)
49 MachVtbl
.ConsPutChar(Ch
);
55 return MachVtbl
.ConsKbHit();
61 return MachVtbl
.ConsGetCh();
65 MachVideoClearScreen(UCHAR Attr
)
67 MachVtbl
.VideoClearScreen(Attr
);
71 MachVideoSetDisplayMode(char *DisplayMode
, BOOLEAN Init
)
73 return MachVtbl
.VideoSetDisplayMode(DisplayMode
, Init
);
77 MachVideoGetDisplaySize(PULONG Width
, PULONG Height
, PULONG Depth
)
79 MachVtbl
.VideoGetDisplaySize(Width
, Height
, Depth
);
83 MachVideoGetBufferSize(VOID
)
85 return MachVtbl
.VideoGetBufferSize();
89 MachVideoSetTextCursorPosition(ULONG X
, ULONG Y
)
91 MachVtbl
.VideoSetTextCursorPosition(X
, Y
);
95 MachVideoHideShowTextCursor(BOOLEAN Show
)
97 MachVtbl
.VideoHideShowTextCursor(Show
);
101 MachVideoPutChar(int Ch
, UCHAR Attr
, unsigned X
, unsigned Y
)
103 MachVtbl
.VideoPutChar(Ch
, Attr
, X
, Y
);
107 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer
)
109 MachVtbl
.VideoCopyOffScreenBufferToVRAM(Buffer
);
113 MachVideoIsPaletteFixed(VOID
)
115 return MachVtbl
.VideoIsPaletteFixed();
119 MachVideoSetPaletteColor(UCHAR Color
, UCHAR Red
, UCHAR Green
, UCHAR Blue
)
121 MachVtbl
.VideoSetPaletteColor(Color
, Red
, Green
, Blue
);
125 MachVideoGetPaletteColor(UCHAR Color
, UCHAR
*Red
, UCHAR
*Green
, UCHAR
*Blue
)
127 MachVtbl
.VideoGetPaletteColor(Color
, Red
, Green
, Blue
);
133 MachVtbl
.VideoSync();
143 MachPrepareForReactOS(IN BOOLEAN Setup
)
145 MachVtbl
.PrepareForReactOS(Setup
);
149 MachDiskGetBootPath(char *BootPath
, unsigned Size
)
151 return MachVtbl
.DiskGetBootPath(BootPath
, Size
);
155 MachDiskReadLogicalSectors(ULONG DriveNumber
, ULONGLONG SectorNumber
, ULONG SectorCount
, PVOID Buffer
)
157 return MachVtbl
.DiskReadLogicalSectors(DriveNumber
, SectorNumber
, SectorCount
, Buffer
);
161 MachDiskGetDriveGeometry(ULONG DriveNumber
, PGEOMETRY DriveGeometry
)
163 return MachVtbl
.DiskGetDriveGeometry(DriveNumber
, DriveGeometry
);
167 MachDiskGetCacheableBlockCount(ULONG DriveNumber
)
169 return MachVtbl
.DiskGetCacheableBlockCount(DriveNumber
);