UINTN InitrdSize;\r
UINT8* OptionalData;\r
UINTN OptionalDataSize;\r
- BOOLEAN RequestBootType;\r
\r
Attributes = 0;\r
SupportedBootDevice = NULL;\r
}\r
\r
// Create the specific device path node\r
- RequestBootType = TRUE;\r
- Status = SupportedBootDevice->Support->CreateDevicePathNode (L"EFI Application or the kernel", &DevicePathNodes, &RequestBootType);\r
+ Status = SupportedBootDevice->Support->CreateDevicePathNode (L"EFI Application or the kernel", &DevicePathNodes);\r
if (EFI_ERROR(Status)) {\r
Status = EFI_ABORTED;\r
goto EXIT;\r
goto EXIT;\r
}\r
\r
- if (RequestBootType) {\r
+ if (SupportedBootDevice->Support->RequestBootType) {\r
Status = BootDeviceGetType (DevicePath, &BootType, &Attributes);\r
if (EFI_ERROR(Status)) {\r
Status = EFI_ABORTED;\r
\r
if (InitrdSupport) {\r
// Create the specific device path node\r
- Status = SupportedBootDevice->Support->CreateDevicePathNode (L"initrd", &InitrdPathNodes, NULL);\r
+ Status = SupportedBootDevice->Support->CreateDevicePathNode (L"initrd", &InitrdPathNodes);\r
if (EFI_ERROR(Status) && Status != EFI_NOT_FOUND) { // EFI_NOT_FOUND is returned on empty input string, but we can boot without an initrd\r
Status = EFI_ABORTED;\r
goto EXIT;\r
BOOLEAN InitrdSupport;\r
UINT8* OptionalData;\r
UINTN OptionalDataSize;\r
- BOOLEAN RequestBootType;\r
BOOLEAN IsPrintable;\r
BOOLEAN IsUnicode;\r
\r
return EFI_UNSUPPORTED;\r
}\r
\r
- RequestBootType = TRUE;\r
- Status = DeviceSupport->UpdateDevicePathNode (BootOption->FilePathList, L"EFI Application or the kernel", &DevicePath, &RequestBootType);\r
+ Status = DeviceSupport->UpdateDevicePathNode (BootOption->FilePathList, L"EFI Application or the kernel", &DevicePath);\r
if (EFI_ERROR(Status)) {\r
Status = EFI_ABORTED;\r
goto EXIT;\r
}\r
\r
- if (RequestBootType) {\r
+ if (DeviceSupport->RequestBootType) {\r
Status = BootDeviceGetType (DevicePath, &BootType, &BootOption->Attributes);\r
if (EFI_ERROR(Status)) {\r
Status = EFI_ABORTED;\r
if (InitrdSupport) {\r
if (InitrdSize > 0) {\r
// Case we update the initrd device path\r
- Status = DeviceSupport->UpdateDevicePathNode ((EFI_DEVICE_PATH*)((UINTN)(LinuxArguments + 1) + CmdLineSize), L"initrd", &InitrdPath, NULL);\r
+ Status = DeviceSupport->UpdateDevicePathNode ((EFI_DEVICE_PATH*)((UINTN)(LinuxArguments + 1) + CmdLineSize), L"initrd", &InitrdPath);\r
if (EFI_ERROR(Status) && Status != EFI_NOT_FOUND) {// EFI_NOT_FOUND is returned on empty input string, but we can boot without an initrd\r
Status = EFI_ABORTED;\r
goto EXIT;\r
} else {\r
// Case we create the initrd device path\r
\r
- Status = DeviceSupport->CreateDevicePathNode (L"initrd", &InitrdPathNodes, NULL);\r
+ Status = DeviceSupport->CreateDevicePathNode (L"initrd", &InitrdPathNodes);\r
if (EFI_ERROR(Status) && Status != EFI_NOT_FOUND) { // EFI_NOT_FOUND is returned on empty input string, but we can boot without an initrd\r
Status = EFI_ABORTED;\r
goto EXIT;\r
}\r
\r
// Create the specific device path node\r
- Status = SupportedBootDevice->Support->CreateDevicePathNode (L"FDT blob", &FdtDevicePathNodes, NULL);\r
+ Status = SupportedBootDevice->Support->CreateDevicePathNode (L"FDT blob", &FdtDevicePathNodes);\r
if (EFI_ERROR(Status)) {\r
Status = EFI_ABORTED;\r
goto EXIT;\r
EFI_STATUS\r
BdsLoadOptionFileSystemCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
);\r
\r
EFI_STATUS\r
BdsLoadOptionFileSystemUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
);\r
\r
BOOLEAN\r
EFI_STATUS\r
BdsLoadOptionMemMapCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
);\r
\r
EFI_STATUS\r
BdsLoadOptionMemMapUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
);\r
\r
BOOLEAN\r
EFI_STATUS\r
BdsLoadOptionPxeCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
);\r
\r
EFI_STATUS\r
BdsLoadOptionPxeUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
);\r
\r
BOOLEAN\r
EFI_STATUS\r
BdsLoadOptionTftpCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
);\r
\r
EFI_STATUS\r
BdsLoadOptionTftpUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
);\r
\r
BOOLEAN\r
BdsLoadOptionFileSystemList,\r
BdsLoadOptionFileSystemIsSupported,\r
BdsLoadOptionFileSystemCreateDevicePath,\r
- BdsLoadOptionFileSystemUpdateDevicePath\r
+ BdsLoadOptionFileSystemUpdateDevicePath,\r
+ TRUE\r
},\r
{\r
BDS_DEVICE_MEMMAP,\r
BdsLoadOptionMemMapList,\r
BdsLoadOptionMemMapIsSupported,\r
BdsLoadOptionMemMapCreateDevicePath,\r
- BdsLoadOptionMemMapUpdateDevicePath\r
+ BdsLoadOptionMemMapUpdateDevicePath,\r
+ TRUE\r
},\r
{\r
BDS_DEVICE_PXE,\r
BdsLoadOptionPxeList,\r
BdsLoadOptionPxeIsSupported,\r
BdsLoadOptionPxeCreateDevicePath,\r
- BdsLoadOptionPxeUpdateDevicePath\r
+ BdsLoadOptionPxeUpdateDevicePath,\r
+ FALSE\r
},\r
{\r
BDS_DEVICE_TFTP,\r
BdsLoadOptionTftpList,\r
BdsLoadOptionTftpIsSupported,\r
BdsLoadOptionTftpCreateDevicePath,\r
- BdsLoadOptionTftpUpdateDevicePath\r
+ BdsLoadOptionTftpUpdateDevicePath,\r
+ TRUE\r
}\r
};\r
\r
EFI_STATUS\r
BdsLoadOptionFileSystemCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
)\r
{\r
EFI_STATUS Status;\r
BdsLoadOptionFileSystemUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
)\r
{\r
EFI_STATUS Status;\r
EFI_STATUS\r
BdsLoadOptionMemMapCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
)\r
{\r
EFI_STATUS Status;\r
BdsLoadOptionMemMapUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
)\r
{\r
EFI_STATUS Status;\r
EFI_STATUS\r
BdsLoadOptionPxeCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
)\r
{\r
*DevicePathNodes = (EFI_DEVICE_PATH_PROTOCOL *) AllocatePool (END_DEVICE_PATH_LENGTH);\r
SetDevicePathEndNode (*DevicePathNodes);\r
\r
- if (RequestBootType) {\r
- *RequestBootType = FALSE;\r
- }\r
return EFI_SUCCESS;\r
}\r
\r
BdsLoadOptionPxeUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
)\r
{\r
//\r
EFI_STATUS\r
BdsLoadOptionTftpCreateDevicePath (\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNodes\r
)\r
{\r
EFI_STATUS Status;\r
BdsLoadOptionTftpUpdateDevicePath (\r
IN EFI_DEVICE_PATH *OldDevicePath,\r
IN CHAR16* FileName,\r
- OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath,\r
- OUT BOOLEAN *RequestBootType\r
+ OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath\r
)\r
{\r
ASSERT (0);\r