Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to

https://svn.code.sf.net/p/edk2/code/trunk/edk2/, 

which are for MinnowBoard MAX open source project.


Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: David Wei <david.wei@intel.com>
Reviewed-by: Mike Wu <mike.wu@intel.com>
Reviewed-by: Hot Tian <hot.tian@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16599 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
David Wei
2015-01-12 09:37:20 +00:00
committed by zwei4
parent 6f785cfcc3
commit 3cbfba02fe
518 changed files with 118538 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,484 @@
/*++
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BdsPlatform.h
Abstract:
Head file for BDS Platform specific code
--*/
#ifndef _BDS_PLATFORM_H
#define _BDS_PLATFORM_H
#include <FrameworkDxe.h>
#include <Protocol/FirmwareVolume2.h>
#include <Protocol/DevicePath.h>
#include <Protocol/SimpleNetwork.h>
#include <Protocol/PciRootBridgeIo.h>
#include <Protocol/LoadFile.h>
#include <Protocol/LegacyBios.h>
#include <Protocol/PciIo.h>
#include <Protocol/SmmAccess2.h>
#include <Protocol/DxeSmmReadyToLock.h>
#include <Protocol/UserManager.h>
#include <Protocol/DeferredImageLoad.h>
#include <Protocol/AcpiS3Save.h>
#include <Protocol/ExitPmAuth.h>
#include <Protocol/MmioDevice.h>
#include <Protocol/I2cBusMcg.h>
#include <Protocol/I2cHostMcg.h>
#include <Guid/CapsuleVendor.h>
#include <Guid/MemoryTypeInformation.h>
#include <Guid/GlobalVariable.h>
#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>
#include <Library/IoLib.h>
#include <Library/GenericBdsLib.h>
#include <Library/PlatformBdsLib.h>
#include <Library/DevicePathLib.h>
#include <Library/UefiLib.h>
#include <Library/HobLib.h>
#include <Library/PrintLib.h>
#include <Library/PerformanceLib.h>
#include <Library/ReportStatusCodeLib.h>
#include <IndustryStandard/Pci.h>
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformRootBridges [];
extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole [];
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformAllPossiblePciVgaConsole [];
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence [];
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption [];
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformBootOption [];
extern EFI_DEVICE_PATH_PROTOCOL *gUserAuthenticationDevice[];
extern BDS_CONSOLE_CONNECT_ENTRY gPlatformSimpleConsole [];
extern EFI_DEVICE_PATH_PROTOCOL *gPlatformSimpleBootOption [];
//
// the short form device path for Usb keyboard
//
#define CLASS_HID 3
#define SUBCLASS_BOOT 1
#define PROTOCOL_KEYBOARD 1
#define PCI_DEVICE_PATH_NODE(Func, Dev) \
{ \
HARDWARE_DEVICE_PATH, \
HW_PCI_DP, \
{ \
(UINT8) (sizeof (PCI_DEVICE_PATH)), \
(UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8) \
}, \
(Func), \
(Dev) \
}
#define PNPID_DEVICE_PATH_NODE(PnpId) \
{ \
{ \
ACPI_DEVICE_PATH, \
ACPI_DP, \
{ \
(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
(UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8) \
} \
}, \
EISA_PNP_ID((PnpId)), \
0 \
}
#define gUart(BaudRate, DataBits, Parity, StopBits) \
{ \
{ \
MESSAGING_DEVICE_PATH, \
MSG_UART_DP, \
{ \
(UINT8) (sizeof (UART_DEVICE_PATH)), \
(UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8) \
} \
}, \
0, \
(BaudRate), \
(DataBits), \
(Parity), \
(StopBits) \
}
#define gPcAnsiTerminal \
{ \
{ \
MESSAGING_DEVICE_PATH, \
MSG_VENDOR_DP, \
{ \
(UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) \
} \
}, \
DEVICE_PATH_MESSAGING_PC_ANSI \
}
#define gUsbKeyboardMouse \
{ \
{ \
MESSAGING_DEVICE_PATH, \
MSG_USB_CLASS_DP, \
(UINT8) (sizeof (USB_CLASS_DEVICE_PATH)), \
(UINT8) ((sizeof (USB_CLASS_DEVICE_PATH)) >> 8) \
}, \
0xffff, \
0xffff, \
CLASS_HID, \
SUBCLASS_BOOT, \
PROTOCOL_KEYBOARD \
}
#define gEndEntire \
{ \
END_DEVICE_PATH_TYPE, \
END_ENTIRE_DEVICE_PATH_SUBTYPE, \
{ \
END_DEVICE_PATH_LENGTH, \
0 \
} \
}
#define gPciRootBridge \
PNPID_DEVICE_PATH_NODE(0x0A03)
#define gPnpPs2Keyboard \
PNPID_DEVICE_PATH_NODE(0x0303)
#define gPnp16550ComPort \
PNPID_DEVICE_PATH_NODE(0x0501)
#define gPciePort0Bridge \
PCI_DEVICE_PATH_NODE(0, 0x1C)
#define gPciePort1Bridge \
PCI_DEVICE_PATH_NODE(1, 0x1C)
#define gPciePort2Bridge \
PCI_DEVICE_PATH_NODE(2, 0x1C)
#define gPciePort3Bridge \
PCI_DEVICE_PATH_NODE(3, 0x1C)
#define gPciIsaBridge \
PCI_DEVICE_PATH_NODE(0, 0x1f)
//
// Platform Root Bridge
//
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_ROOT_BRIDGE_DEVICE_PATH;
//
// Below is the platform console device path
//
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH IsaBridge;
ACPI_HID_DEVICE_PATH Keyboard;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_ISA_KEYBOARD_DEVICE_PATH;
typedef struct {
VENDOR_DEVICE_PATH VendorDevicePath;
EFI_DEVICE_PATH_PROTOCOL End;
} HII_VENDOR_DEVICE_PATH;
typedef struct {
USB_CLASS_DEVICE_PATH UsbClass;
EFI_DEVICE_PATH_PROTOCOL End;
} USB_CLASS_FORMAT_DEVICE_PATH;
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH OnboardVga;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_ONBOARD_VGA_DEVICE_PATH;
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH AgpBridge;
PCI_DEVICE_PATH AgpDevice;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_OFFBOARD_VGA_DEVICE_PATH;
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH IsaBridge;
ACPI_HID_DEVICE_PATH IsaSerial;
UART_DEVICE_PATH Uart;
VENDOR_DEVICE_PATH TerminalType;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_ISA_SERIAL_DEVICE_PATH;
//
// Below is the boot option device path
//
typedef struct {
BBS_BBS_DEVICE_PATH LegacyHD;
EFI_DEVICE_PATH_PROTOCOL End;
} LEGACY_HD_DEVICE_PATH;
//
// Below is the platform IDE device path
//
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH IsaBridge;
ATAPI_DEVICE_PATH Ide;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_IDE_DEVICE_PATH;
//
// Floppy device path definition
//
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH IsaBridge;
ACPI_HID_DEVICE_PATH Floppy;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_FLOPPY_DEVICE_PATH;
//
// Below is the platform USB controller device path for
// USB disk as user authentication device.
//
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH PciDevice;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_USB_DEVICE_PATH;
//
// Below is the platform PCI device path
//
typedef struct {
ACPI_HID_DEVICE_PATH PciRootBridge;
PCI_DEVICE_PATH PciDevice;
EFI_DEVICE_PATH_PROTOCOL End;
} PLATFORM_PCI_DEVICE_PATH;
typedef enum {
PMIC_Equal = 0, // = 0
PMIC_Greater_Than, // > 1
PMIC_Smaller_Than, // < 2
PMIC_Greater_Equal, // >= 3
PMIC_Smaller_Equal, // <= 4
PMIC_Any // don't care 5
} PMIC_Condition_list;
typedef enum {
PMIC_White_List = 0, //White list
PMIC_Black_List = 1 //Black list
} PMIC_Compliance_mode;
typedef struct {
UINT8 Cond_Choice; // PMIC_Condition_list
UINT8 Cond_Number; // the number
}PMIC_Condition_Item;
typedef struct {
PMIC_Condition_Item PMIC_BoardID;
PMIC_Condition_Item PMIC_FabID;
PMIC_Condition_Item Soc_Stepping;//define PMIC type, 1:Dialog , 2:Rohm
PMIC_Condition_Item PMIC_VendID;
PMIC_Condition_Item PMIC_RevID;
PMIC_Compliance_mode mode; //if 1, blacklist; if 0, white list.
} PMIC_Compliance_Item;
//
// Platform BDS Functions
//
VOID
PlatformBdsGetDriverOption (
IN LIST_ENTRY *BdsDriverLists
);
VOID
PlatformBdsPredictBootOption (
IN LIST_ENTRY *BdsBootOptionList
);
EFI_STATUS
PlatformBdsShowProgress (
EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,
CHAR16 *Title,
EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
UINTN Progress,
UINTN PreviousValue
);
VOID
PlatformBdsConnectSequence (
VOID
);
EFI_STATUS
PlatformBdsConnectConsole (
IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
);
EFI_STATUS
PlatformBdsNoConsoleAction (
VOID
);
VOID
PlatformBdsEnterFrontPage (
IN UINT16 TimeoutDefault,
IN BOOLEAN ConnectAllHappened
);
VOID
EFIAPI
PlatformBdsUserIdentify (
OUT EFI_USER_PROFILE_HANDLE *User,
OUT BOOLEAN *DeferredImage
);
VOID
EFIAPI
PlatformBdsConnectAuthDevice (
VOID
);
VOID
PlatformBdsEnterFrontPageWithHotKey (
IN UINT16 TimeoutDefault,
IN BOOLEAN ConnectAllHappened
);
EFI_STATUS
ShowProgress (
IN UINT16 TimeoutDefault
);
EFI_STATUS
InitializeFrontPage (
IN BOOLEAN InitializeHiiData
);
VOID
UpdateFrontPageStrings (
VOID
);
EFI_STATUS
CallFrontPage (
VOID
);
VOID
CallBootManager (
VOID
);
VOID
CallDeviceManager (
VOID
);
VOID
BdsStartBootMaint (
VOID
);
CHAR16 *
GetStringById (
IN EFI_STRING_ID Id
);
EFI_STATUS
WaitForSingleEvent (
IN EFI_EVENT Event,
IN UINT64 Timeout OPTIONAL
);
#define ONE_SECOND 10000000
#define FRONT_PAGE_KEY_CONTINUE 0x1000
#define FRONT_PAGE_KEY_LANGUAGE 0x1234
#define FRONT_PAGE_KEY_BOOT_MANAGER 0x1064
#define FRONT_PAGE_KEY_DEVICE_MANAGER 0x8567
#define FRONT_PAGE_KEY_BOOT_MAINTAIN 0x9876
#define PORT_A_DVO 0 // ; DVO A
#define PORT_B_DVO 1 // ; DVO B
#define PORT_C_DVO 2 // ; DVO C
#define PORT_D_DVO 3 // ; DVO D
#define PORT_LVDS 4 // ; Integrated LVDS port
#define PORT_ANALOG_TV 5 // ; Integrated TV port
#define PORT_CRT 6 // ; integrated Analog port
#define PORT_B_DP 7 // ; DisplayPort B
#define PORT_C_DP 8 // ; DisplayPort C
#define PORT_D_DP 9 // ; DisplayPort D
#define PORT_A_DP 10 // ; DisplayPort A (for eDP on ILK)
#define PORT_B_HDMI 11 // ; HDMI B
#define PORT_C_HDMI 12 // ; HDMI C
#define PORT_D_HDMI 13 // ; HDMI D
#define PORT_B_DVI 14 // ; DVI B
#define PORT_C_DVI 15 // ; DVI C
#define PORT_D_DVI 16 // ; DVI D
#define PORT_MIPI_A 21 // ; MIPI
#define PORT_MIPI_B 22
#define PORT_MIPI_C 23
extern BOOLEAN gConnectAllHappened;
extern UINTN gCallbackKey;
VOID
BdsBootDeviceSelect (
VOID
);
VOID FastBoot(VOID);
extern BOOLEAN mModeInitialized;
//
// Boot video resolution and text mode.
//
extern UINT32 mBootHorizontalResolution ;
extern UINT32 mBootVerticalResolution ;
extern UINT32 mBootTextModeColumn ;
extern UINT32 mBootTextModeRow ;

View File

@@ -0,0 +1,118 @@
#/** @file
# Component name for module PlatformBootManagerLib
#
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available under
# the terms and conditions of the BSD License that accompanies this distribution.
# The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php.
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
#
#
#
#**/
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = PlatformBdsLib
FILE_GUID = A6BC385D-59E5-4b77-87D7-200ABAA83C15
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = PlatformBootManagerLib|DXE_DRIVER
EDK_RELEASE_VERSION = 0x00020000
EFI_SPECIFICATION_VERSION = 0x0002000A
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 EBC
#
[Sources]
BdsPlatform.c
BdsPlatform.h
PlatformData.c
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
IntelFrameworkPkg/IntelFrameworkPkg.dec
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
Vlv2TbltDevicePkg/PlatformPkg.dec
Vlv2DeviceRefCodePkg/Vlv2DeviceRefCodePkg.dec
ShellPkg/ShellPkg.dec
CryptoPkg/CryptoPkg.dec
SecurityPkg/SecurityPkg.dec
[LibraryClasses]
DxeServicesTableLib
BaseLib
MemoryAllocationLib
UefiBootServicesTableLib
UefiRuntimeServicesTableLib
BaseMemoryLib
DebugLib
PcdLib
GenericBdsLib
DevicePathLib
UefiLib
HobLib
PciLib
PrintLib
BaseCryptLib
# TcgPhysicalPresenceLib
# TrEEPhysicalPresenceLib
FileHandleLib
S3BootScriptLib
SerialPortLib
[Protocols]
gEfiFirmwareVolume2ProtocolGuid
gEfiSimpleNetworkProtocolGuid
gEfiLoadFileProtocolGuid
gEfiPciIoProtocolGuid
gEfiSmmAccess2ProtocolGuid
gEfiDxeSmmReadyToLockProtocolGuid
gEfiUserManagerProtocolGuid
gEfiDeferredImageLoadProtocolGuid
gEfiAcpiS3SaveProtocolGuid
gEfiSpiProtocolGuid ## PROTOCOL CONSUMES
gExitPmAuthProtocolGuid
gEfiTdtOperationProtocolGuid
gEfiGlobalNvsAreaProtocolGuid
gEfiMmioDeviceProtocolGuid
gEfiI2cMasterProtocolGuid
gEfiI2cHostProtocolGuid
[Guids]
gEfiMemoryTypeInformationGuid
gEfiCapsuleVendorGuid
gEfiGlobalVariableGuid
gEfiNormalSetupGuid
gEfiPartTypeSystemPartGuid
[Pcd]
gPlatformModuleTokenSpaceGuid.PcdFlashFvRecovery2Base
gPlatformModuleTokenSpaceGuid.PcdFlashFvMainBase
gPlatformModuleTokenSpaceGuid.PcdFlashFvRecoveryBase
gPlatformModuleTokenSpaceGuid.PcdFlashFvShellBase
gPlatformModuleTokenSpaceGuid.PcdFlashFvShellSize
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile
gPlatformModuleTokenSpaceGuid.PcdIFWISigBaseAddress
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow

View File

@@ -0,0 +1,265 @@
/** @file
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
PlatformData.c
Abstract:
Defined the platform specific device path which will be used by
platform Bbd to perform the platform policy connect.
--*/
#include "BdsPlatform.h"
//
// Predefined platform default time out value
//
UINT16 gPlatformBootTimeOutDefault = 10;
//
// Predefined platform root bridge
//
PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0 = {
gPciRootBridge,
gEndEntire
};
EFI_DEVICE_PATH_PROTOCOL* gPlatformRootBridges [] = {
(EFI_DEVICE_PATH_PROTOCOL*)&gPlatformRootBridge0,
NULL
};
//
// Platform specific ISA keyboard device path
//
PLATFORM_ISA_KEYBOARD_DEVICE_PATH gIsaKeyboardDevicePath = {
gPciRootBridge,
gPciIsaBridge,
gPnpPs2Keyboard,
gEndEntire
};
//
// Platform specific on chip PCI VGA device path
//
PLATFORM_ONBOARD_VGA_DEVICE_PATH gOnChipPciVgaDevicePath = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE(0, 0x2),
gEndEntire
};
//
// Platform specific plug in PCI VGA device path
//
PLATFORM_OFFBOARD_VGA_DEVICE_PATH gPlugInPciVgaDevicePath = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE(0, 0x1),
PCI_DEVICE_PATH_NODE(0, 0x0),
gEndEntire
};
//
// Platform specific ISA serial device path
//
PLATFORM_ISA_SERIAL_DEVICE_PATH gIsaSerialDevicePath = {
gPciRootBridge,
gPciIsaBridge,
gPnp16550ComPort,
gUart(115200, 8, 1, 1),
gPcAnsiTerminal,
gEndEntire
};
//
// Platform specific Button Array device path
//
HII_VENDOR_DEVICE_PATH gHiiVendorDevicePath0 = {
{
{
HARDWARE_DEVICE_PATH,
HW_VENDOR_DP,
{
(UINT8) (sizeof (VENDOR_DEVICE_PATH)),
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
}
},
//
// {C8752FDE-B5C8-4528-897D-6920FE771E38}
//
{ 0xC8752FDE, 0xB5C8, 0x4528, { 0x89, 0x7D, 0x69, 0x20, 0xFE, 0x77, 0x1E, 0x38 } }
},
{
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{
(UINT8) (END_DEVICE_PATH_LENGTH),
(UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)
}
}
};
USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath = {
gUsbKeyboardMouse,
gEndEntire
};
//
// Predefined platform default console device path
//
BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole [] = {
{(EFI_DEVICE_PATH_PROTOCOL*)&gIsaSerialDevicePath, CONSOLE_ALL},
{(EFI_DEVICE_PATH_PROTOCOL*)&gHiiVendorDevicePath0, CONSOLE_IN},
{(EFI_DEVICE_PATH_PROTOCOL*)&gIsaKeyboardDevicePath, CONSOLE_IN},
{(EFI_DEVICE_PATH_PROTOCOL*)&gUsbClassKeyboardDevicePath, CONSOLE_IN},
{NULL, 0}
};
//
// All the possible platform PCI VGA device path
//
EFI_DEVICE_PATH_PROTOCOL* gPlatformAllPossiblePciVgaConsole [] = {
(EFI_DEVICE_PATH_PROTOCOL*)&gOnChipPciVgaDevicePath,
(EFI_DEVICE_PATH_PROTOCOL*)&gPlugInPciVgaDevicePath,
NULL
};
//
// Legacy hard disk boot option
//
LEGACY_HD_DEVICE_PATH gLegacyHd = {
{
BBS_DEVICE_PATH,
BBS_BBS_DP,
(UINT8)(sizeof(BBS_BBS_DEVICE_PATH)),
(UINT8)((sizeof(BBS_BBS_DEVICE_PATH)) >> 8),
BBS_TYPE_HARDDRIVE,
0,
0
},
gEndEntire
};
//
// Legacy cdrom boot option
//
LEGACY_HD_DEVICE_PATH gLegacyCdrom = {
{
BBS_DEVICE_PATH,
BBS_BBS_DP,
(UINT8)(sizeof(BBS_BBS_DEVICE_PATH)),
(UINT8)((sizeof(BBS_BBS_DEVICE_PATH)) >> 8),
BBS_TYPE_CDROM,
0,
0
},
gEndEntire
};
//
// Predefined platform specific perdict boot option
//
EFI_DEVICE_PATH_PROTOCOL* gPlatformBootOption [] = {
(EFI_DEVICE_PATH_PROTOCOL*)&gLegacyHd,
(EFI_DEVICE_PATH_PROTOCOL*)&gLegacyCdrom,
NULL
};
//
// Predefined platform specific driver option
//
EFI_DEVICE_PATH_PROTOCOL* gPlatformDriverOption [] = {
NULL
};
//
// Predefined platform connect sequence
//
EFI_DEVICE_PATH_PROTOCOL* gPlatformConnectSequence [] = {
(EFI_DEVICE_PATH_PROTOCOL *)&gPlatformRootBridge0, // Force PCI enumer before Legacy OpROM shadow
NULL
};
//
// Platform specific USB controller device path
//
PLATFORM_USB_DEVICE_PATH gUsbDevicePath0 = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE(0, 0x1D),
gEndEntire
};
PLATFORM_USB_DEVICE_PATH gUsbDevicePath1 = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE(1, 0x1D),
gEndEntire
};
PLATFORM_USB_DEVICE_PATH gUsbDevicePath2 = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE(2, 0x1D),
gEndEntire
};
PLATFORM_USB_DEVICE_PATH gUsbDevicePath3 = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE(3, 0x1D),
gEndEntire
};
//
// Predefined platform device path for user authtication
//
EFI_DEVICE_PATH_PROTOCOL* gUserAuthenticationDevice[] = {
//
// Predefined device path for secure card (USB disk).
//
(EFI_DEVICE_PATH_PROTOCOL*)&gUsbDevicePath0,
(EFI_DEVICE_PATH_PROTOCOL*)&gUsbDevicePath1,
(EFI_DEVICE_PATH_PROTOCOL*)&gUsbDevicePath2,
(EFI_DEVICE_PATH_PROTOCOL*)&gUsbDevicePath3,
NULL
};
//
// Predefined platform console device path
//
BDS_CONSOLE_CONNECT_ENTRY gPlatformSimpleConsole [] = {
{(EFI_DEVICE_PATH_PROTOCOL*)&gOnChipPciVgaDevicePath, CONSOLE_OUT},
{(EFI_DEVICE_PATH_PROTOCOL*)&gIsaSerialDevicePath, CONSOLE_ALL},
{(EFI_DEVICE_PATH_PROTOCOL*)&gHiiVendorDevicePath0, CONSOLE_IN},
{(EFI_DEVICE_PATH_PROTOCOL*)&gUsbClassKeyboardDevicePath, CONSOLE_IN},
{NULL, 0}
};
//
// eMMC device at BDF(0x0, 0x17, 0x0)
//
PLATFORM_PCI_DEVICE_PATH gEmmcBootDevPath0 = {
gPciRootBridge,
PCI_DEVICE_PATH_NODE (0x00, 0x10),
gEndEntire
};