mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[FREELDR:NTLDR] Pass boot-time detection options to HwDetect routines.
Will be used for supporting /NOSERIALMICE, /FASTDETECT (NT 5+) switches (see PR #5886), as well as the undocumented /PCIENUM option.
This commit is contained in:
parent
413b5a0827
commit
10e7643c80
11 changed files with 34 additions and 14 deletions
|
@ -94,7 +94,8 @@ ArmPrepareForReactOS(VOID)
|
|||
}
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
ArmHwDetect(VOID)
|
||||
ArmHwDetect(
|
||||
_In_opt_ PCSTR Options)
|
||||
{
|
||||
ARM_CACHE_REGISTER CacheReg;
|
||||
|
||||
|
@ -137,7 +138,7 @@ BOOLEAN
|
|||
ArmInitializeBootDevices(VOID)
|
||||
{
|
||||
/* Emulate old behavior */
|
||||
if (ArmHwDetect() == NULL)
|
||||
if (ArmHwDetect(NULL) == NULL)
|
||||
return FALSE;
|
||||
|
||||
/* On ARM platforms, the loader is always in RAM */
|
||||
|
|
|
@ -1628,7 +1628,8 @@ PcGetFloppyCount(VOID)
|
|||
#endif
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
PcHwDetect(VOID)
|
||||
PcHwDetect(
|
||||
_In_opt_ PCSTR Options)
|
||||
{
|
||||
PCONFIGURATION_COMPONENT_DATA SystemKey;
|
||||
ULONG BusNumber = 0;
|
||||
|
|
|
@ -1180,7 +1180,8 @@ DetectPnpBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
|
|||
}
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
Pc98HwDetect(VOID)
|
||||
Pc98HwDetect(
|
||||
_In_opt_ PCSTR Options)
|
||||
{
|
||||
PCONFIGURATION_COMPONENT_DATA SystemKey;
|
||||
ULONG BusNumber = 0;
|
||||
|
|
|
@ -263,7 +263,8 @@ XboxGetFloppyCount(VOID)
|
|||
}
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
XboxHwDetect(VOID)
|
||||
XboxHwDetect(
|
||||
_In_opt_ PCSTR Options)
|
||||
{
|
||||
PCONFIGURATION_COMPONENT_DATA SystemKey;
|
||||
ULONG BusNumber = 0;
|
||||
|
|
|
@ -123,7 +123,8 @@ DetectAcpiBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
|
|||
}
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
UefiHwDetect(VOID)
|
||||
UefiHwDetect(
|
||||
_In_opt_ PCSTR Options)
|
||||
{
|
||||
PCONFIGURATION_COMPONENT_DATA SystemKey;
|
||||
ULONG BusNumber = 0;
|
||||
|
|
|
@ -80,7 +80,11 @@ VOID Pc98VideoPrepareForReactOS(VOID);
|
|||
VOID Pc98PrepareForReactOS(VOID);
|
||||
TIMEINFO* Pc98GetTime(VOID);
|
||||
BOOLEAN Pc98InitializeBootDevices(VOID);
|
||||
PCONFIGURATION_COMPONENT_DATA Pc98HwDetect(VOID);
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
Pc98HwDetect(
|
||||
_In_opt_ PCSTR Options);
|
||||
|
||||
VOID Pc98HwIdle(VOID);
|
||||
|
||||
/* pcmem.c */
|
||||
|
|
|
@ -58,7 +58,10 @@ ULONG XboxDiskGetCacheableBlockCount(UCHAR DriveNumber);
|
|||
|
||||
TIMEINFO* XboxGetTime(VOID);
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA XboxHwDetect(VOID);
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
XboxHwDetect(
|
||||
_In_opt_ PCSTR Options);
|
||||
|
||||
VOID XboxHwIdle(VOID);
|
||||
|
||||
VOID XboxSetLED(PCSTR Pattern);
|
||||
|
|
|
@ -67,7 +67,11 @@ ULONG PcDiskGetCacheableBlockCount(UCHAR DriveNumber);
|
|||
TIMEINFO* PcGetTime(VOID);
|
||||
|
||||
BOOLEAN PcInitializeBootDevices(VOID);
|
||||
PCONFIGURATION_COMPONENT_DATA PcHwDetect(VOID);
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
PcHwDetect(
|
||||
_In_opt_ PCSTR Options);
|
||||
|
||||
VOID PcHwIdle(VOID);
|
||||
|
||||
extern BIOS_MEMORY_MAP PcBiosMemoryMap[];
|
||||
|
|
|
@ -106,7 +106,8 @@ BOOLEAN
|
|||
UefiInitializeBootDevices(VOID);
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
UefiHwDetect(VOID);
|
||||
UefiHwDetect(
|
||||
_In_opt_ PCSTR Options);
|
||||
|
||||
VOID
|
||||
UefiPrepareForReactOS(VOID);
|
||||
|
|
|
@ -74,7 +74,7 @@ typedef struct tagMACHVTBL
|
|||
|
||||
// NOTE: Not in the machine.c ...
|
||||
BOOLEAN (*InitializeBootDevices)(VOID);
|
||||
PCONFIGURATION_COMPONENT_DATA (*HwDetect)(VOID);
|
||||
PCONFIGURATION_COMPONENT_DATA (*HwDetect)(_In_opt_ PCSTR Options);
|
||||
VOID (*HwIdle)(VOID);
|
||||
} MACHVTBL, *PMACHVTBL;
|
||||
|
||||
|
@ -133,8 +133,11 @@ VOID MachInit(const char *CmdLine);
|
|||
#define MachInitializeBootDevices() \
|
||||
MachVtbl.InitializeBootDevices()
|
||||
|
||||
#define MachHwDetect() MachVtbl.HwDetect()
|
||||
#define MachHwIdle() MachVtbl.HwIdle()
|
||||
#define MachHwDetect(Options) \
|
||||
MachVtbl.HwDetect(Options)
|
||||
|
||||
#define MachHwIdle() \
|
||||
MachVtbl.HwIdle()
|
||||
|
||||
/* ARC FUNCTIONS **************************************************************/
|
||||
|
||||
|
|
|
@ -1173,7 +1173,7 @@ LoadAndBootWindowsCommon(
|
|||
|
||||
/* Detect hardware */
|
||||
UiUpdateProgressBar(20, "Detecting hardware...");
|
||||
LoaderBlock->ConfigurationRoot = MachHwDetect();
|
||||
LoaderBlock->ConfigurationRoot = MachHwDetect(BootOptions);
|
||||
|
||||
/* Initialize the PE loader import-DLL callback, so that we can obtain
|
||||
* feedback (for example during SOS) on the PE images that get loaded. */
|
||||
|
|
Loading…
Reference in a new issue