Document XTLDR methods
This commit is contained in:
@@ -362,6 +362,13 @@ Configuration::InitializeBootMenuList(IN ULONG MaxNameLength,
|
|||||||
return STATUS_EFI_SUCCESS;
|
return STATUS_EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes the XTLDR configuration subsystem.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
Configuration::InitializeConfiguration()
|
Configuration::InitializeConfiguration()
|
||||||
|
@@ -387,9 +387,16 @@ Debug::PutChar(IN WCHAR Character)
|
|||||||
return HL::ComPort::WriteComPort(&SerialPort, Buffer[0]);
|
return HL::ComPort::WriteComPort(&SerialPort, Buffer[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines if the serial port has been successfully initialized and is ready for communication.
|
||||||
|
*
|
||||||
|
* @return This routine returns TRUE if the serial port is initialized and ready, FALSE otherwise.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Debug::SerialPortReady()
|
Debug::SerialPortReady()
|
||||||
{
|
{
|
||||||
return (BOOLEAN)(SerialPort.Flags & COMPORT_FLAG_INIT);
|
return (BOOLEAN)(SerialPort.Flags & COMPORT_FLAG_INIT);
|
||||||
}
|
}
|
||||||
|
@@ -9,6 +9,13 @@
|
|||||||
#include <xtldr.hh>
|
#include <xtldr.hh>
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disables access to EFI Boot Services.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
XtLoader::DisableBootServices()
|
XtLoader::DisableBootServices()
|
||||||
@@ -17,6 +24,13 @@ XtLoader::DisableBootServices()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Queries the availability of EFI Boot Services.
|
||||||
|
*
|
||||||
|
* @return This routine returns TRUE if EFI Boot Services are available, FALSE otherwise.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
XtLoader::GetBootServicesStatus()
|
XtLoader::GetBootServicesStatus()
|
||||||
@@ -24,6 +38,13 @@ XtLoader::GetBootServicesStatus()
|
|||||||
return LoaderStatus.BootServices;
|
return LoaderStatus.BootServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the EFI image handle.
|
||||||
|
*
|
||||||
|
* @return This routine returns a handle to the EFI-loaded image.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
EFI_HANDLE
|
EFI_HANDLE
|
||||||
XtLoader::GetEfiImageHandle()
|
XtLoader::GetEfiImageHandle()
|
||||||
@@ -31,6 +52,13 @@ XtLoader::GetEfiImageHandle()
|
|||||||
return XtLoader::EfiImageHandle;
|
return XtLoader::EfiImageHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the EFI system table pointer.
|
||||||
|
*
|
||||||
|
* @return This routine returns a pointer to the EFI system table.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
PEFI_SYSTEM_TABLE
|
PEFI_SYSTEM_TABLE
|
||||||
XtLoader::GetEfiSystemTable()
|
XtLoader::GetEfiSystemTable()
|
||||||
@@ -38,6 +66,19 @@ XtLoader::GetEfiSystemTable()
|
|||||||
return XtLoader::EfiSystemTable;
|
return XtLoader::EfiSystemTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides base address and size of the XTLDR image.
|
||||||
|
*
|
||||||
|
* @param LoaderBase
|
||||||
|
* Supplies a pointer to a variable that receives the base address of the XTLDR image.
|
||||||
|
*
|
||||||
|
* @param LoaderSize
|
||||||
|
* Supplies a pointer to a variable that receives the size of the XTLDR image.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
XtLoader::GetLoaderImageInformation(PVOID *LoaderBase,
|
XtLoader::GetLoaderImageInformation(PVOID *LoaderBase,
|
||||||
@@ -47,6 +88,13 @@ XtLoader::GetLoaderImageInformation(PVOID *LoaderBase,
|
|||||||
*LoaderSize = XtLoader::LoaderStatus.LoaderSize;
|
*LoaderSize = XtLoader::LoaderStatus.LoaderSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the Secure Boot status.
|
||||||
|
*
|
||||||
|
* @return This routine returns SecureBoot status.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
INT_PTR
|
INT_PTR
|
||||||
XtLoader::GetSecureBootStatus()
|
XtLoader::GetSecureBootStatus()
|
||||||
@@ -143,6 +191,13 @@ XtLoader::RegisterBootMenu(IN PVOID BootMenuRoutine)
|
|||||||
BootMenu = (PBL_XT_BOOT_MENU)BootMenuRoutine;
|
BootMenu = (PBL_XT_BOOT_MENU)BootMenuRoutine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invokes either a custom boot menu handler, if one has been registered, or displays the default boot menu.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
XtLoader::ShowBootMenu()
|
XtLoader::ShowBootMenu()
|
||||||
|
Reference in New Issue
Block a user