2011-05-11 20:31:20 +02:00
|
|
|
/*++ @file
|
|
|
|
|
2018-08-23 11:35:14 +02:00
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
2011-05-11 20:31:20 +02:00
|
|
|
Portions copyright (c) 2011, Apple Inc. All rights reserved.
|
2019-04-04 01:03:44 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2011-05-11 20:31:20 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
#ifndef _PLATFORM_BM_H
|
|
|
|
#define _PLATFORM_BM_H
|
2011-05-11 20:31:20 +02:00
|
|
|
|
|
|
|
#include <PiDxe.h>
|
|
|
|
|
|
|
|
#include <Guid/EmuSystemConfig.h>
|
2018-08-23 11:35:14 +02:00
|
|
|
#include <Guid/EventGroup.h>
|
2011-05-11 20:31:20 +02:00
|
|
|
#include <Protocol/EmuThunk.h>
|
|
|
|
#include <Protocol/EmuIoThunk.h>
|
|
|
|
#include <Protocol/EmuGraphicsWindow.h>
|
2018-08-30 03:53:49 +02:00
|
|
|
#include <Protocol/GenericMemoryTest.h>
|
|
|
|
#include <Protocol/LoadedImage.h>
|
|
|
|
#include <Protocol/FirmwareVolume2.h>
|
2011-05-11 20:31:20 +02:00
|
|
|
|
|
|
|
#include <Library/DebugLib.h>
|
|
|
|
#include <Library/BaseMemoryLib.h>
|
|
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
|
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
|
|
|
#include <Library/MemoryAllocationLib.h>
|
|
|
|
#include <Library/BaseLib.h>
|
|
|
|
#include <Library/PcdLib.h>
|
2018-08-30 03:53:49 +02:00
|
|
|
#include <Library/UefiBootManagerLib.h>
|
2011-05-11 20:31:20 +02:00
|
|
|
#include <Library/DevicePathLib.h>
|
2018-08-23 11:35:14 +02:00
|
|
|
#include <Library/UefiLib.h>
|
2018-08-30 03:53:49 +02:00
|
|
|
#include <Library/BootLogoLib.h>
|
|
|
|
#include <Library/HobLib.h>
|
|
|
|
#include <Library/HiiLib.h>
|
2011-05-11 20:31:20 +02:00
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
#define CONSOLE_OUT 0x00000001
|
|
|
|
#define STD_ERROR 0x00000002
|
|
|
|
#define CONSOLE_IN 0x00000004
|
|
|
|
#define CONSOLE_ALL (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
|
|
|
UINTN ConnectType;
|
|
|
|
} BDS_CONSOLE_CONNECT_ENTRY;
|
2011-05-11 20:31:20 +02:00
|
|
|
|
|
|
|
extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
|
|
|
|
|
|
|
|
#define gEndEntire \
|
|
|
|
{ \
|
|
|
|
END_DEVICE_PATH_TYPE,\
|
|
|
|
END_ENTIRE_DEVICE_PATH_SUBTYPE,\
|
2012-12-22 01:44:04 +01:00
|
|
|
{ \
|
|
|
|
END_DEVICE_PATH_LENGTH,\
|
|
|
|
0\
|
|
|
|
}\
|
2011-05-11 20:31:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EMU_VENDOR_DEVICE_PATH_NODE EmuBus;
|
|
|
|
EMU_VENDOR_DEVICE_PATH_NODE EmuGraphicsWindow;
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL End;
|
|
|
|
} EMU_PLATFORM_UGA_DEVICE_PATH;
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Platform BDS Functions
|
|
|
|
//
|
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
/**
|
|
|
|
Perform the memory test base on the memory test intensive level,
|
|
|
|
and update the memory resource.
|
2011-05-11 20:31:20 +02:00
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
@param Level The memory test intensive level.
|
2011-05-11 20:31:20 +02:00
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
@retval EFI_STATUS Success test all the system memory and update
|
|
|
|
the memory resource
|
2011-05-11 20:31:20 +02:00
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
**/
|
2011-05-11 20:31:20 +02:00
|
|
|
EFI_STATUS
|
2018-08-30 03:53:49 +02:00
|
|
|
PlatformBootManagerMemoryTest (
|
|
|
|
IN EXTENDMEM_COVERAGE_LEVEL Level
|
2011-05-11 20:31:20 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
2018-08-30 03:53:49 +02:00
|
|
|
PlatformBdsConnectSequence (
|
|
|
|
VOID
|
2011-05-11 20:31:20 +02:00
|
|
|
);
|
|
|
|
|
2018-08-30 03:53:49 +02:00
|
|
|
#endif // _PLATFORM_BM_H
|