ReactOS 0.4.15-dev-8191-gbc6c731
uefisetup.c
Go to the documentation of this file.
1/*
2 * PROJECT: FreeLoader UEFI Support
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Machine Setup
5 * COPYRIGHT: Copyright 2022 Justin Miller <justinmiller100@gmail.com>
6 */
7
8#include <uefildr.h>
9
10#include <debug.h>
12
13/* GLOBALS ********************************************************************/
14
17
18/* FUNCTIONS ******************************************************************/
19
20VOID
21MachInit(const char *CmdLine)
22{
24
53
54 /* Setup GOP */
56 {
57 ERR("Failed to setup GOP\n");
58 }
59}
#define WARNING
Definition: BusLogic958.h:56
#define EFI_SUCCESS
Definition: UefiBaseType.h:120
MACHVTBL MachVtbl
Definition: arcemul.c:21
VOID UefiHwIdle(VOID)
Definition: stubs.c:51
VOID UefiVideoGetFontsFromFirmware(PULONG RomFontPointers)
Definition: stubs.c:26
VOID UefiVideoSync(VOID)
Definition: stubs.c:32
VOID UefiGetExtendedBIOSData(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize)
Definition: stubs.c:38
VOID UefiPcBeep(VOID)
Definition: stubs.c:45
#define ERR(fmt,...)
Definition: debug.h:113
#define DBG_DEFAULT_CHANNEL(ch)
Definition: debug.h:106
static const WCHAR CmdLine[]
Definition: install.c:48
int UefiConsGetCh(void)
Definition: ueficon.c:128
VOID(* VideoGetPaletteColor)(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue)
Definition: machine.h:56
VOID(* GetExtendedBIOSData)(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize)
Definition: machine.h:64
int(* ConsGetCh)(VOID)
Definition: machine.h:43
VOID(* PrepareForReactOS)(VOID)
Definition: machine.h:59
VOID(* VideoSetPaletteColor)(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue)
Definition: machine.h:55
BOOLEAN(* InitializeBootDevices)(VOID)
Definition: machine.h:76
VOID(* VideoCopyOffScreenBufferToVRAM)(PVOID Buffer)
Definition: machine.h:53
BOOLEAN(* ConsKbHit)(VOID)
Definition: machine.h:42
VOID(* VideoHideShowTextCursor)(BOOLEAN Show)
Definition: machine.h:51
TIMEINFO *(* GetTime)(VOID)
Definition: machine.h:72
UCHAR(* GetFloppyCount)(VOID)
Definition: machine.h:66
BOOLEAN(* DiskGetDriveGeometry)(UCHAR DriveNumber, PGEOMETRY DriveGeometry)
Definition: machine.h:68
BOOLEAN(* DiskReadLogicalSectors)(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer)
Definition: machine.h:67
PFREELDR_MEMORY_DESCRIPTOR(* GetMemoryMap)(PULONG MaxMemoryMapSize)
Definition: machine.h:63
VOID(* VideoGetFontsFromFirmware)(PULONG RomFontPointers)
Definition: machine.h:49
VOID(* Beep)(VOID)
Definition: machine.h:58
VOID(* VideoSetTextCursorPosition)(UCHAR X, UCHAR Y)
Definition: machine.h:50
ULONG(* VideoGetBufferSize)(VOID)
Definition: machine.h:48
VOID(* VideoPutChar)(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: machine.h:52
ULONG(* DiskGetCacheableBlockCount)(UCHAR DriveNumber)
Definition: machine.h:69
VOID(* VideoGetDisplaySize)(PULONG Width, PULONG Height, PULONG Depth)
Definition: machine.h:47
VOID(* VideoClearScreen)(UCHAR Attr)
Definition: machine.h:45
VOID(* HwIdle)(VOID)
Definition: machine.h:78
VOID(* VideoSync)(VOID)
Definition: machine.h:57
VIDEODISPLAYMODE(* VideoSetDisplayMode)(char *DisplayMode, BOOLEAN Init)
Definition: machine.h:46
BOOLEAN(* VideoIsPaletteFixed)(VOID)
Definition: machine.h:54
PCONFIGURATION_COMPONENT_DATA(* HwDetect)(_In_opt_ PCSTR Options)
Definition: machine.h:77
VOID(* ConsPutChar)(int Ch)
Definition: machine.h:41
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
BOOLEAN UefiConsKbHit(VOID)
Definition: ueficon.c:122
VOID UefiConsPutChar(int c)
Definition: ueficon.c:26
BOOLEAN UefiDiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY Geometry)
Definition: uefidisk.c:574
BOOLEAN UefiDiskReadLogicalSectors(IN UCHAR DriveNumber, IN ULONGLONG SectorNumber, IN ULONG SectorCount, OUT PVOID Buffer)
Definition: uefidisk.c:556
BOOLEAN UefiInitializeBootDevices(VOID)
Definition: uefidisk.c:499
UCHAR UefiGetFloppyCount(VOID)
Definition: uefidisk.c:549
ULONG UefiDiskGetCacheableBlockCount(UCHAR DriveNumber)
Definition: uefidisk.c:589
PCONFIGURATION_COMPONENT_DATA UefiHwDetect(_In_opt_ PCSTR Options)
Definition: uefihw.c:126
PFREELDR_MEMORY_DESCRIPTOR UefiMemGetMemoryMap(ULONG *MemoryMapSize)
Definition: uefimem.c:146
VOID UefiPrepareForReactOS(VOID)
Definition: uefimem.c:284
VOID MachInit(const char *CmdLine)
Definition: uefisetup.c:21
EFI_SYSTEM_TABLE * GlobalSystemTable
Definition: uefildr.c:16
EFI_HANDLE GlobalImageHandle
Definition: uefildr.c:15
TIMEINFO * UefiGetTime(VOID)
Definition: uefiutil.c:20
VOID UefiVideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue)
Definition: uefivid.c:236
VOID UefiVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue)
Definition: uefivid.c:229
VOID UefiVideoClearScreen(UCHAR Attr)
Definition: uefivid.c:107
VOID UefiVideoHideShowTextCursor(BOOLEAN Show)
Definition: uefivid.c:217
ULONG UefiVideoGetBufferSize(VOID)
Definition: uefivid.c:169
EFI_STATUS UefiInitializeVideo(VOID)
Definition: uefivid.c:31
VOID UefiVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: uefivid.c:154
VOID UefiVideoSetTextCursorPosition(UCHAR X, UCHAR Y)
Definition: uefivid.c:211
VOID UefiVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: uefivid.c:142
VOID UefiVideoCopyOffScreenBufferToVRAM(PVOID Buffer)
Definition: uefivid.c:175
VIDEODISPLAYMODE UefiVideoSetDisplayMode(char *DisplayMode, BOOLEAN Init)
Definition: uefivid.c:162
BOOLEAN UefiVideoIsPaletteFixed(VOID)
Definition: uefivid.c:223