diff options
Diffstat (limited to 'EdkUnixPkg/Dxe/PlatformBds')
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/Bds.dxs | 26 | ||||
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.c | 427 | ||||
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h | 147 | ||||
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h.orig | 145 | ||||
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/PlatformBds.msa | 206 | ||||
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/PlatformData.c | 150 |
6 files changed, 0 insertions, 1101 deletions
diff --git a/EdkUnixPkg/Dxe/PlatformBds/Bds.dxs b/EdkUnixPkg/Dxe/PlatformBds/Bds.dxs deleted file mode 100644 index 4cc3efdfab..0000000000 --- a/EdkUnixPkg/Dxe/PlatformBds/Bds.dxs +++ /dev/null @@ -1,26 +0,0 @@ -/*++
-
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which 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:
-
- Bds.dxs
-
-Abstract:
-
- Dependency expression source file. This driver produces an arch protocol, so
- must dipatch early.
-
---*/
-#include <DxeDepex.h>
-
-DEPENDENCY_START
- EFI_HII_PROTOCOL_GUID
-DEPENDENCY_END
diff --git a/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.c b/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.c deleted file mode 100644 index 39a24d2881..0000000000 --- a/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.c +++ /dev/null @@ -1,427 +0,0 @@ -/*++
-
-Copyright (c) 2006 - 2007, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which 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.c
-
-Abstract:
-
- This file include all platform action which can be customized
- by IBV/OEM.
-
---*/
-
-#include "BdsPlatform.h"
-
-CHAR16 mFirmwareVendor[] = L"TianoCore.org";
-
-//
-// BDS Platform Functions
-//
-VOID
-PlatformBdsInit (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
- )
-/*++
-
-Routine Description:
-
- Platform Bds init. Incude the platform firmware vendor, revision
- and so crc check.
-
-Arguments:
-
- PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
-
-Returns:
-
- None.
-
---*/
-{
- //
- // set firmwarevendor, here can be IBV/OEM customize
- //
- gST->FirmwareVendor = AllocateRuntimeCopyPool (
- sizeof (mFirmwareVendor),
- &mFirmwareVendor
- );
- ASSERT (gST->FirmwareVendor != NULL);
-
- gST->FirmwareRevision = EFI_FIRMWARE_REVISION;
-
- //
- // Fixup Tasble CRC after we updated Firmware Vendor and Revision
- //
- gBS->CalculateCrc32 ((VOID *) gST, sizeof (EFI_SYSTEM_TABLE), &gST->Hdr.CRC32);
-
-}
-
-EFI_STATUS
-PlatformBdsConnectConsole (
- IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
- )
-/*++
-
-Routine Description:
-
- Connect the predefined platform default console device. Always try to find
- and enable the vga device if have.
-
-Arguments:
-
- PlatformConsole - Predfined platform default console device array.
-
-Returns:
-
- EFI_SUCCESS - Success connect at least one ConIn and ConOut
- device, there must have one ConOut device is
- active vga device.
-
- EFI_STATUS - Return the status of
- BdsLibConnectAllDefaultConsoles ()
-
---*/
-{
- EFI_STATUS Status;
- UINTN Index;
-
- Index = 0;
- Status = EFI_SUCCESS;
-
- //
- // Have chance to connect the platform default console,
- // the platform default console is the minimue device group
- // the platform should support
- //
- while (PlatformConsole[Index].DevicePath != NULL) {
- //
- // Update the console variable with the connect type
- //
- if ((PlatformConsole[Index].ConnectType & CONSOLE_IN) == CONSOLE_IN) {
- BdsLibUpdateConsoleVariable (L"ConIn", PlatformConsole[Index].DevicePath, NULL);
- }
-
- if ((PlatformConsole[Index].ConnectType & CONSOLE_OUT) == CONSOLE_OUT) {
- BdsLibUpdateConsoleVariable (L"ConOut", PlatformConsole[Index].DevicePath, NULL);
- }
-
- if ((PlatformConsole[Index].ConnectType & STD_ERROR) == STD_ERROR) {
- BdsLibUpdateConsoleVariable (L"ErrOut", PlatformConsole[Index].DevicePath, NULL);
- }
-
- Index++;
- }
- //
- // Connect the all the default console with current cosole variable
- //
- Status = BdsLibConnectAllDefaultConsoles ();
- if (EFI_ERROR (Status)) {
- return Status;
- }
-
- return EFI_SUCCESS;
-}
-
-VOID
-PlatformBdsConnectSequence (
- VOID
- )
-/*++
-
-Routine Description:
-
- Connect with predeined platform connect sequence,
- the OEM/IBV can customize with their own connect sequence.
-
-Arguments:
-
- None.
-
-Returns:
-
- None.
-
---*/
-{
- UINTN Index;
-
- Index = 0;
-
- //
- // Here we can get the customized platform connect sequence
- // Notes: we can connect with new variable which record the
- // last time boots connect device path sequence
- //
- while (gPlatformConnectSequence[Index] != NULL) {
- //
- // Build the platform boot option
- //
- BdsLibConnectDevicePath (gPlatformConnectSequence[Index]);
- Index++;
- }
-
-}
-
-VOID
-PlatformBdsGetDriverOption (
- IN OUT LIST_ENTRY *BdsDriverLists
- )
-/*++
-
-Routine Description:
-
- Load the predefined driver option, OEM/IBV can customize this
- to load their own drivers
-
-Arguments:
-
- BdsDriverLists - The header of the driver option link list.
-
-Returns:
-
- None.
-
---*/
-{
- UINTN Index;
-
- Index = 0;
-
- //
- // Here we can get the customized platform driver option
- //
- while (gPlatformDriverOption[Index] != NULL) {
- //
- // Build the platform boot option
- //
- BdsLibRegisterNewOption (BdsDriverLists, gPlatformDriverOption[Index], NULL, L"DriverOrder");
- Index++;
- }
-
-}
-
-VOID
-PlatformBdsDiagnostics (
- IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,
- IN BOOLEAN QuietBoot
- )
-/*++
-
-Routine Description:
-
- Perform the platform diagnostic, such like test memory. OEM/IBV also
- can customize this fuction to support specific platform diagnostic.
-
-Arguments:
-
- MemoryTestLevel - The memory test intensive level
-
- QuietBoot - Indicate if need to enable the quiet boot
-
-Returns:
-
- None.
-
---*/
-{
- EFI_STATUS Status;
-
- //
- // Here we can decide if we need to show
- // the diagnostics screen
- // Notes: this quiet boot code should be remove
- // from the graphic lib
- //
- if (QuietBoot) {
- EnableQuietBoot (&gEfiDefaultBmpLogoGuid);
- //
- // Perform system diagnostic
- //
- Status = BdsMemoryTest (MemoryTestLevel);
- if (EFI_ERROR (Status)) {
- DisableQuietBoot ();
- }
-
- return ;
- }
- //
- // Perform system diagnostic
- //
- Status = BdsMemoryTest (MemoryTestLevel);
-}
-
-VOID
-PlatformBdsPolicyBehavior (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
- IN OUT LIST_ENTRY *DriverOptionList,
- IN OUT LIST_ENTRY *BootOptionList
- )
-/*++
-
-Routine Description:
-
- The function will excute with as the platform policy, current policy
- is driven by boot mode. IBV/OEM can customize this code for their specific
- policy action.
-
-Arguments:
-
- PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
-
- DriverOptionList - The header of the driver option link list
-
- BootOptionList - The header of the boot option link list
-
-Returns:
-
- None.
-
---*/
-{
- EFI_STATUS Status;
- UINT16 Timeout;
-
- //
- // Init the time out value
- //
- Timeout = BdsLibGetTimeout ();
-
- //
- // Load the driver option as the driver option list
- //
- PlatformBdsGetDriverOption (DriverOptionList);
-
- //
- // Get current Boot Mode
- //
- PrivateData->BootMode = GetBootModeHob();
-
- //
- // Go the different platform policy with different boot mode
- // Notes: this part code can be change with the table policy
- //
- switch (PrivateData->BootMode) {
-
- case BOOT_ASSUMING_NO_CONFIGURATION_CHANGES:
- case BOOT_WITH_MINIMAL_CONFIGURATION:
- //
- // In no-configuration boot mode, we can connect the
- // console directly.
- //
- BdsLibConnectAllDefaultConsoles ();
- PlatformBdsDiagnostics (IGNORE, TRUE);
-
- //
- // Perform some platform specific connect sequence
- //
- PlatformBdsConnectSequence ();
-
- //
- // Notes: current time out = 0 can not enter the
- // front page
- //
- PlatformBdsEnterFrontPage (Timeout, FALSE);
-
- //
- // Check the boot option with the boot option list
- //
- BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");
- break;
-
- case BOOT_ON_FLASH_UPDATE:
- //
- // Boot with the specific configuration
- //
- PlatformBdsConnectConsole (gPlatformConsole);
- PlatformBdsDiagnostics (EXTENSIVE, FALSE);
- BdsLibConnectAll ();
- ProcessCapsules (BOOT_ON_FLASH_UPDATE);
- break;
-
- case BOOT_IN_RECOVERY_MODE:
- //
- // In recovery mode, just connect platform console
- // and show up the front page
- //
- PlatformBdsConnectConsole (gPlatformConsole);
- PlatformBdsDiagnostics (EXTENSIVE, FALSE);
-
- //
- // In recovery boot mode, we still enter to the
- // frong page now
- //
- PlatformBdsEnterFrontPage (Timeout, FALSE);
- break;
-
- case BOOT_WITH_FULL_CONFIGURATION:
- case BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS:
- case BOOT_WITH_DEFAULT_SETTINGS:
- default:
- //
- // Connect platform console
- //
- Status = PlatformBdsConnectConsole (gPlatformConsole);
- if (EFI_ERROR (Status)) {
- //
- // Here OEM/IBV can customize with defined action
- //
- PlatformBdsNoConsoleAction ();
- }
-
- PlatformBdsDiagnostics (IGNORE, TRUE);
-
- //
- // Perform some platform specific connect sequence
- //
- PlatformBdsConnectSequence ();
-
- //
- // Give one chance to enter the setup if we
- // have the time out
- //
- PlatformBdsEnterFrontPage (Timeout, FALSE);
-
- //
- // Here we have enough time to do the enumeration of boot device
- //
- BdsLibEnumerateAllBootOption (BootOptionList);
- break;
- }
-
- return ;
-
-}
-
-EFI_STATUS
-PlatformBdsNoConsoleAction (
- VOID
- )
-/*++
-
-Routine Description:
-
- This function is remained for IBV/OEM to do some platform action,
- if there no console device can be connected.
-
-Arguments:
-
- None.
-
-Returns:
-
- EFI_SUCCESS - Direct return success now.
-
---*/
-{
- return EFI_SUCCESS;
-}
diff --git a/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h b/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h deleted file mode 100644 index 92a88f084f..0000000000 --- a/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h +++ /dev/null @@ -1,147 +0,0 @@ -/*++
-
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which 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 "IndustryStandard/pci22.h"
-
-extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
-extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
-extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
-
-#define gEndEntire \
- { \
- END_DEVICE_PATH_TYPE,\
- END_ENTIRE_DEVICE_PATH_SUBTYPE,\
- {\
- END_DEVICE_PATH_LENGTH,\
- 0\
- }\
- }
-
-typedef struct {
- VENDOR_DEVICE_PATH VendorDevicePath;
- UINT32 Instance;
-} UNIX_VENDOR_DEVICE_PATH_NODE;
-
-//
-// Below is the platform console device path
-//
-typedef struct {
- VENDOR_DEVICE_PATH UnixBus;
- UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice;
- UART_DEVICE_PATH Uart;
- VENDOR_DEVICE_PATH TerminalType;
- EFI_DEVICE_PATH_PROTOCOL End;
-} UNIX_ISA_SERIAL_DEVICE_PATH;
-
-typedef struct {
- VENDOR_DEVICE_PATH UnixBus;
- UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice;
- EFI_DEVICE_PATH_PROTOCOL End;
-} UNIX_PLATFORM_UGA_DEVICE_PATH;
-
-typedef struct {
- VENDOR_DEVICE_PATH UnixBus;
- UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice;
- EFI_DEVICE_PATH_PROTOCOL End;
-} UNIX_CONSOLE_DEVICE_PATH;
-//
-// Platform BDS Functions
-//
-VOID
-PlatformBdsInit (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
- )
-;
-
-VOID
-PlatformBdsPolicyBehavior (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
- IN LIST_ENTRY *DriverOptionList,
- IN LIST_ENTRY *BootOptionList
- )
-;
-
-VOID
-PlatformBdsGetDriverOption (
- IN LIST_ENTRY *BdsDriverLists
- )
-;
-
-EFI_STATUS
-BdsMemoryTest (
- EXTENDMEM_COVERAGE_LEVEL Level
- )
-;
-
-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
- )
-;
-
-VOID
-PlatformBdsBootFail (
- IN BDS_COMMON_OPTION *Option,
- IN EFI_STATUS Status,
- IN CHAR16 *ExitData,
- IN UINTN ExitDataSize
- )
-;
-
-VOID
-PlatformBdsBootSuccess (
- IN BDS_COMMON_OPTION *Option
- )
-;
-
-EFI_STATUS
-ProcessCapsules (
- EFI_BOOT_MODE BootMode
- )
-;
-
-EFI_STATUS
-PlatformBdsConnectConsole (
- IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
- )
-;
-
-EFI_STATUS
-PlatformBdsNoConsoleAction (
- VOID
- )
-;
-
-#endif // _BDS_PLATFORM_H
diff --git a/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h.orig b/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h.orig deleted file mode 100644 index f0dcf22c64..0000000000 --- a/EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h.orig +++ /dev/null @@ -1,145 +0,0 @@ -/*++
-
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which 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 "IndustryStandard/pci22.h"
-
-extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
-extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
-extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
-
-#define gEndEntire \
- { \
- END_DEVICE_PATH_TYPE,\
- END_ENTIRE_DEVICE_PATH_SUBTYPE,\
- END_DEVICE_PATH_LENGTH,\
- 0\
- }
-
-typedef struct {
- VENDOR_DEVICE_PATH VendorDevicePath;
- UINT32 Instance;
-} UNIX_VENDOR_DEVICE_PATH_NODE;
-
-//
-// Below is the platform console device path
-//
-typedef struct {
- VENDOR_DEVICE_PATH UnixBus;
- UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice;
- UART_DEVICE_PATH Uart;
- VENDOR_DEVICE_PATH TerminalType;
- EFI_DEVICE_PATH_PROTOCOL End;
-} UNIX_ISA_SERIAL_DEVICE_PATH;
-
-typedef struct {
- VENDOR_DEVICE_PATH UnixBus;
- UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice;
- EFI_DEVICE_PATH_PROTOCOL End;
-} UNIX_PLATFORM_UGA_DEVICE_PATH;
-
-typedef struct {
- VENDOR_DEVICE_PATH UnixBus;
- UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice;
- EFI_DEVICE_PATH_PROTOCOL End;
-} UNIX_CONSOLE_DEVICE_PATH;
-//
-// Platform BDS Functions
-//
-VOID
-PlatformBdsInit (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
- )
-;
-
-VOID
-PlatformBdsPolicyBehavior (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
- IN LIST_ENTRY *DriverOptionList,
- IN LIST_ENTRY *BootOptionList
- )
-;
-
-VOID
-PlatformBdsGetDriverOption (
- IN LIST_ENTRY *BdsDriverLists
- )
-;
-
-EFI_STATUS
-BdsMemoryTest (
- EXTENDMEM_COVERAGE_LEVEL Level
- )
-;
-
-EFI_STATUS
-PlatformBdsShowProgress (
- EFI_UGA_PIXEL TitleForeground,
- EFI_UGA_PIXEL TitleBackground,
- CHAR16 *Title,
- EFI_UGA_PIXEL ProgressColor,
- UINTN Progress,
- UINTN PreviousValue
- )
-;
-
-VOID
-PlatformBdsConnectSequence (
- VOID
- )
-;
-
-VOID
-PlatformBdsBootFail (
- IN BDS_COMMON_OPTION *Option,
- IN EFI_STATUS Status,
- IN CHAR16 *ExitData,
- IN UINTN ExitDataSize
- )
-;
-
-VOID
-PlatformBdsBootSuccess (
- IN BDS_COMMON_OPTION *Option
- )
-;
-
-EFI_STATUS
-ProcessCapsules (
- EFI_BOOT_MODE BootMode
- )
-;
-
-EFI_STATUS
-PlatformBdsConnectConsole (
- IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
- )
-;
-
-EFI_STATUS
-PlatformBdsNoConsoleAction (
- VOID
- )
-;
-
-#endif // _BDS_PLATFORM_H
diff --git a/EdkUnixPkg/Dxe/PlatformBds/PlatformBds.msa b/EdkUnixPkg/Dxe/PlatformBds/PlatformBds.msa deleted file mode 100644 index 989117590f..0000000000 --- a/EdkUnixPkg/Dxe/PlatformBds/PlatformBds.msa +++ /dev/null @@ -1,206 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <MsaHeader> - <ModuleName>Bds</ModuleName> - <ModuleType>DXE_DRIVER</ModuleType> - <GuidValue>f392b762-8985-11db-be87-0040d02b1835</GuidValue> - <Version>1.0</Version> - <Abstract>Platfrom BDS driver</Abstract> - <Description>Do platform action customized by IBV/OEM.</Description> - <Copyright>Copyright (c) 2006, Intel Corporation</Copyright> - <License>All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which 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.</License> - <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification> - </MsaHeader> - <ModuleDefinitions> - <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures> - <BinaryModule>false</BinaryModule> - <OutputFileBasename>Bds</OutputFileBasename> - </ModuleDefinitions> - <LibraryClassDefinitions> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>DebugLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>UefiLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>UefiDriverEntryPoint</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>BaseLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>EdkGraphicsLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>DxeServicesTableLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>PerformanceLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>PrintLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>EdkIfrSupportLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>ReportStatusCodeLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>HobLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>EdkGenericBdsLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>MemoryAllocationLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>BaseMemoryLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>UefiBootServicesTableLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>UefiRuntimeServicesTableLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>DevicePathLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>HiiLib</Keyword> - </LibraryClass> - <LibraryClass Usage="ALWAYS_CONSUMED"> - <Keyword>EdkGenericPlatformBdsLib</Keyword> - </LibraryClass> - </LibraryClassDefinitions> - <SourceFiles> - <Filename>PlatformData.c</Filename> - <Filename>BdsPlatform.h</Filename> - <Filename>BdsPlatform.c</Filename> - <Filename>Bds.dxs</Filename> - </SourceFiles> - <PackageDependencies> - <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/> - <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/> - <Package PackageGuid="f2805c44-8985-11db-9e98-0040d02b1835"/> - </PackageDependencies> - <Protocols> - <Protocol Usage="ALWAYS_PRODUCED"> - <ProtocolCName>gEfiBdsArchProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiLegacyBiosProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiHiiProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiFormCallbackProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiDataHubProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiFormBrowserProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiConsoleControlProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiCpuIoProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiUgaDrawProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiLoadFileProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiSimpleFileSystemProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiDevicePathProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiBlockIoProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiSerialIoProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiGenericMemTestProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="SOMETIMES_CONSUMED"> - <ProtocolCName>gEfiCpuArchProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="SOMETIMES_CONSUMED"> - <ProtocolCName>gEfiDriverBindingProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiUnixThunkProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiUnixIoProtocolGuid</ProtocolCName> - </Protocol> - <Protocol Usage="ALWAYS_CONSUMED"> - <ProtocolCName>gEfiUnixUgaIoProtocolGuid</ProtocolCName> - </Protocol> - </Protocols> - <DataHubs> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>BiosVendor</DataHubCName> - </DataHubRecord> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>SystemManufacturer</DataHubCName> - </DataHubRecord> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>ProcessorVersion</DataHubCName> - </DataHubRecord> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>ProcessorFrequency</DataHubCName> - </DataHubRecord> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>MemoryArray</DataHubCName> - </DataHubRecord> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>SerialIoDevice</DataHubCName> - </DataHubRecord> - <DataHubRecord Usage="SOMETIMES_CONSUMED"> - <DataHubCName>SerialIoPort</DataHubCName> - </DataHubRecord> - </DataHubs> - <Guids> - <GuidCNames Usage="ALWAYS_CONSUMED"> - <GuidCName>gEfiBootStateGuid</GuidCName> - </GuidCNames> - <GuidCNames Usage="ALWAYS_CONSUMED"> - <GuidCName>gEfiGlobalVariableGuid</GuidCName> - </GuidCNames> - <GuidCNames Usage="ALWAYS_CONSUMED"> - <GuidCName>gEfiFlashMapHobGuid</GuidCName> - </GuidCNames> - <GuidCNames Usage="ALWAYS_CONSUMED"> - <GuidCName>gEfiFileSystemVolumeLabelInfoIdGuid</GuidCName> - </GuidCNames> - <GuidCNames Usage="ALWAYS_CONSUMED"> - <GuidCName>gEfiFileInfoGuid</GuidCName> - </GuidCNames> - <GuidCNames Usage="ALWAYS_CONSUMED">
- <GuidCName>gEfiDefaultBmpLogoGuid</GuidCName>
- </GuidCNames> - </Guids> - <Externs> - <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification> - <Specification>EDK_RELEASE_VERSION 0x00020000</Specification> - <Extern> - <ModuleEntryPoint>BdsInitialize</ModuleEntryPoint> - </Extern> - </Externs> -</ModuleSurfaceArea>
\ No newline at end of file diff --git a/EdkUnixPkg/Dxe/PlatformBds/PlatformData.c b/EdkUnixPkg/Dxe/PlatformBds/PlatformData.c deleted file mode 100644 index 97442850f5..0000000000 --- a/EdkUnixPkg/Dxe/PlatformBds/PlatformData.c +++ /dev/null @@ -1,150 +0,0 @@ -/*++
-
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which 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;
-
-//
-// Platform specific keyboard device path
-//
-UNIX_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath0 =
-{
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
- }
- },
- EFI_UNIX_THUNK_PROTOCOL_GUID
- },
- {
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
- (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8)
- }
- },
- EFI_UNIX_UGA_GUID
- },
- 0
- },
- gEndEntire
-};
-
-UNIX_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath1 = {
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
- }
- },
- EFI_UNIX_THUNK_PROTOCOL_GUID
- },
- {
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
- (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8)
- }
- },
- EFI_UNIX_UGA_GUID
- },
- 1
- },
- gEndEntire
-};
-
-UNIX_CONSOLE_DEVICE_PATH gUnixConsoleDevicePath = {
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
- }
- },
- EFI_UNIX_THUNK_PROTOCOL_GUID
- },
- {
- {
- {
- HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- {
- (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
- (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8)
- }
- },
- EFI_UNIX_CONSOLE_GUID
- },
- 0
- },
- gEndEntire
-};
-//
-// Predefined platform default console device path
-//
-BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {
- {
- (EFI_DEVICE_PATH_PROTOCOL *) &gUnixConsoleDevicePath,
- (CONSOLE_OUT | CONSOLE_IN)
- },
- {
- (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath0,
- (CONSOLE_OUT | CONSOLE_IN)
- },
- {
- (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath1,
- (CONSOLE_OUT | CONSOLE_IN)
- },
- {
- NULL,
- 0
- }
-};
-
-//
-// Predefined platform specific driver option
-//
-EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL };
-
-//
-// Predefined platform connect sequence
-//
-EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL };
|