mirror of
https://github.com/reactos/reactos.git
synced 2024-05-31 17:51:49 +00:00
ccef43f3b0
CORE-11954 - EFI binaries have a different subsystem in the PE header; - ENVIRON: Make sure INTN and UINTN are 64bit for 64bit platforms; - Handle UEFI Memory maps and translate it for freeldr; - Add FAILED_TO_EXIT_BOOTSERVICES Freeldr BSoD code.
114 lines
1.5 KiB
C
114 lines
1.5 KiB
C
/*
|
|
* PROJECT: FreeLoader UEFI Support
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
* PURPOSE: Function stubs
|
|
* COPYRIGHT: Copyright 2022 Justin Miller <justinmiller100@gmail.com>
|
|
*/
|
|
|
|
#include <uefildr.h>
|
|
|
|
#include <debug.h>
|
|
|
|
/* TODO: Handle this with custom Disk / partition setup */
|
|
UCHAR
|
|
DriveMapGetBiosDriveNumber(PCSTR DeviceName)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
VOID
|
|
StallExecutionProcessor(ULONG Microseconds)
|
|
{
|
|
|
|
}
|
|
|
|
VOID
|
|
NTAPI
|
|
KeStallExecutionProcessor(ULONG Microseconds)
|
|
{
|
|
StallExecutionProcessor(Microseconds);
|
|
}
|
|
|
|
VOID
|
|
UefiVideoGetFontsFromFirmware(PULONG RomFontPointers)
|
|
{
|
|
|
|
}
|
|
|
|
VOID
|
|
UefiVideoSync(VOID)
|
|
{
|
|
|
|
}
|
|
|
|
VOID
|
|
UefiGetExtendedBIOSData(PULONG ExtendedBIOSDataArea,
|
|
PULONG ExtendedBIOSDataSize)
|
|
{
|
|
|
|
}
|
|
|
|
UCHAR
|
|
UefiGetFloppyCount(VOID)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
BOOLEAN
|
|
UefiDiskReadLogicalSectors(IN UCHAR DriveNumber,
|
|
IN ULONGLONG SectorNumber,
|
|
IN ULONG SectorCount,
|
|
OUT PVOID Buffer)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
BOOLEAN
|
|
UefiDiskGetDriveGeometry(UCHAR DriveNumber,
|
|
PGEOMETRY Geometry)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
ULONG
|
|
UefiDiskGetCacheableBlockCount(UCHAR DriveNumber)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
BOOLEAN
|
|
UefiInitializeBootDevices(VOID)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
PCONFIGURATION_COMPONENT_DATA
|
|
UefiHwDetect(VOID)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
VOID
|
|
UefiPcBeep(VOID)
|
|
{
|
|
/* Not possible on UEFI, for now */
|
|
}
|
|
|
|
BOOLEAN
|
|
UefiConsKbHit(VOID)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int
|
|
UefiConsGetCh(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
VOID
|
|
UefiHwIdle(VOID)
|
|
{
|
|
|
|
}
|