Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmachine.c
Go to the documentation of this file.
00001 /* $Id: machine.c 52526 2011-07-03 23:01:39Z rharabien $ 00002 * 00003 * FreeLoader 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 #include <freeldr.h> 00021 00022 #undef MachConsPutChar 00023 #undef MachConsKbHit 00024 #undef MachConsGetCh 00025 #undef MachVideoClearScreen 00026 #undef MachVideoSetDisplayMode 00027 #undef MachVideoGetDisplaySize 00028 #undef MachVideoGetBufferSize 00029 #undef MachVideoSetTextCursorPosition 00030 #undef MachVideoHideShowTextCursor 00031 #undef MachVideoPutChar 00032 #undef MachVideoCopyOffScreenBufferToVRAM 00033 #undef MachVideoIsPaletteFixed 00034 #undef MachVideoSetPaletteColor 00035 #undef MachVideoGetPaletteColor 00036 #undef MachVideoSync 00037 #undef MachBeep 00038 #undef MachPrepareForReactOS 00039 #undef MachDiskGetBootPath 00040 #undef MachDiskReadLogicalSectors 00041 #undef MachDiskGetDriveGeometry 00042 #undef MachDiskGetCacheableBlockCount 00043 00044 MACHVTBL MachVtbl; 00045 00046 VOID 00047 MachConsPutChar(int Ch) 00048 { 00049 MachVtbl.ConsPutChar(Ch); 00050 } 00051 00052 BOOLEAN 00053 MachConsKbHit() 00054 { 00055 return MachVtbl.ConsKbHit(); 00056 } 00057 00058 int 00059 MachConsGetCh() 00060 { 00061 return MachVtbl.ConsGetCh(); 00062 } 00063 00064 VOID 00065 MachVideoClearScreen(UCHAR Attr) 00066 { 00067 MachVtbl.VideoClearScreen(Attr); 00068 } 00069 00070 VIDEODISPLAYMODE 00071 MachVideoSetDisplayMode(char *DisplayMode, BOOLEAN Init) 00072 { 00073 return MachVtbl.VideoSetDisplayMode(DisplayMode, Init); 00074 } 00075 00076 VOID 00077 MachVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth) 00078 { 00079 MachVtbl.VideoGetDisplaySize(Width, Height, Depth); 00080 } 00081 00082 ULONG 00083 MachVideoGetBufferSize(VOID) 00084 { 00085 return MachVtbl.VideoGetBufferSize(); 00086 } 00087 00088 VOID 00089 MachVideoSetTextCursorPosition(UCHAR X, UCHAR Y) 00090 { 00091 MachVtbl.VideoSetTextCursorPosition(X, Y); 00092 } 00093 00094 VOID 00095 MachVideoHideShowTextCursor(BOOLEAN Show) 00096 { 00097 MachVtbl.VideoHideShowTextCursor(Show); 00098 } 00099 00100 VOID 00101 MachVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y) 00102 { 00103 MachVtbl.VideoPutChar(Ch, Attr, X, Y); 00104 } 00105 00106 VOID 00107 MachVideoCopyOffScreenBufferToVRAM(PVOID Buffer) 00108 { 00109 MachVtbl.VideoCopyOffScreenBufferToVRAM(Buffer); 00110 } 00111 00112 BOOLEAN 00113 MachVideoIsPaletteFixed(VOID) 00114 { 00115 return MachVtbl.VideoIsPaletteFixed(); 00116 } 00117 00118 VOID 00119 MachVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue) 00120 { 00121 MachVtbl.VideoSetPaletteColor(Color, Red, Green, Blue); 00122 } 00123 00124 VOID 00125 MachVideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue) 00126 { 00127 MachVtbl.VideoGetPaletteColor(Color, Red, Green, Blue); 00128 } 00129 00130 VOID 00131 MachVideoSync(VOID) 00132 { 00133 MachVtbl.VideoSync(); 00134 } 00135 00136 VOID 00137 MachBeep(VOID) 00138 { 00139 MachVtbl.Beep(); 00140 } 00141 00142 VOID 00143 MachPrepareForReactOS(IN BOOLEAN Setup) 00144 { 00145 MachVtbl.PrepareForReactOS(Setup); 00146 } 00147 00148 BOOLEAN 00149 MachDiskGetBootPath(char *BootPath, unsigned Size) 00150 { 00151 return MachVtbl.DiskGetBootPath(BootPath, Size); 00152 } 00153 00154 BOOLEAN 00155 MachDiskReadLogicalSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer) 00156 { 00157 return MachVtbl.DiskReadLogicalSectors(DriveNumber, SectorNumber, SectorCount, Buffer); 00158 } 00159 00160 BOOLEAN 00161 MachDiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY DriveGeometry) 00162 { 00163 return MachVtbl.DiskGetDriveGeometry(DriveNumber, DriveGeometry); 00164 } 00165 00166 ULONG 00167 MachDiskGetCacheableBlockCount(UCHAR DriveNumber) 00168 { 00169 return MachVtbl.DiskGetCacheableBlockCount(DriveNumber); 00170 } 00171 00172 /* EOF */ Generated on Sun May 27 2012 04:19:16 for ReactOS by
1.7.6.1
|