Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmachpc.c
Go to the documentation of this file.
00001 /* $Id: machpc.c 56270 2012-03-29 08:25:20Z tkreuzer $ 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 VOID 00023 PcMachInit(const char *CmdLine) 00024 { 00025 /* Setup vtbl */ 00026 MachVtbl.ConsPutChar = PcConsPutChar; 00027 MachVtbl.ConsKbHit = PcConsKbHit; 00028 MachVtbl.ConsGetCh = PcConsGetCh; 00029 MachVtbl.VideoClearScreen = PcVideoClearScreen; 00030 MachVtbl.VideoSetDisplayMode = PcVideoSetDisplayMode; 00031 MachVtbl.VideoGetDisplaySize = PcVideoGetDisplaySize; 00032 MachVtbl.VideoGetBufferSize = PcVideoGetBufferSize; 00033 MachVtbl.VideoSetTextCursorPosition = PcVideoSetTextCursorPosition; 00034 MachVtbl.VideoHideShowTextCursor = PcVideoHideShowTextCursor; 00035 MachVtbl.VideoPutChar = PcVideoPutChar; 00036 MachVtbl.VideoCopyOffScreenBufferToVRAM = PcVideoCopyOffScreenBufferToVRAM; 00037 MachVtbl.VideoIsPaletteFixed = PcVideoIsPaletteFixed; 00038 MachVtbl.VideoSetPaletteColor = PcVideoSetPaletteColor; 00039 MachVtbl.VideoGetPaletteColor = PcVideoGetPaletteColor; 00040 MachVtbl.VideoSync = PcVideoSync; 00041 MachVtbl.Beep = PcBeep; 00042 MachVtbl.PrepareForReactOS = PcPrepareForReactOS; 00043 MachVtbl.GetMemoryMap = PcMemGetMemoryMap; 00044 MachVtbl.DiskGetBootPath = PcDiskGetBootPath; 00045 MachVtbl.DiskReadLogicalSectors = PcDiskReadLogicalSectors; 00046 MachVtbl.DiskGetDriveGeometry = PcDiskGetDriveGeometry; 00047 MachVtbl.DiskGetCacheableBlockCount = PcDiskGetCacheableBlockCount; 00048 MachVtbl.GetTime = PcGetTime; 00049 MachVtbl.HwDetect = PcHwDetect; 00050 MachVtbl.HwIdle = PcHwIdle; 00051 } 00052 00053 VOID 00054 PcPrepareForReactOS(IN BOOLEAN Setup) 00055 { 00056 // 00057 // On PC, prepare video and turn off the floppy motor 00058 // 00059 PcVideoPrepareForReactOS(Setup); 00060 DiskStopFloppyMotor(); 00061 } 00062 /* EOF */ Generated on Sat May 26 2012 04:17:53 for ReactOS by
1.7.6.1
|