mirror of https://github.com/acidanthera/audk.git
Remove 4 dead files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6442 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3a51df1380
commit
814b5c403e
|
@ -1,78 +0,0 @@
|
|||
#include <PiDxe.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/HiiLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
|
||||
|
||||
CHAR16 *gEmptyString = L" ";
|
||||
|
||||
/**
|
||||
Get the string based on the StringId and HII Package List Handle.
|
||||
|
||||
@param Token The String's ID.
|
||||
@param HiiHandle The package list in the HII database to search for
|
||||
the specified string.
|
||||
|
||||
@return The output string.
|
||||
|
||||
**/
|
||||
CHAR16 *
|
||||
GetToken (
|
||||
IN EFI_STRING_ID Token,
|
||||
IN EFI_HII_HANDLE HiiHandle
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
CHAR16 *String;
|
||||
UINTN BufferLength;
|
||||
|
||||
//
|
||||
// Set default string size assumption at no more than 256 bytes
|
||||
//
|
||||
BufferLength = 0x100;
|
||||
String = AllocateZeroPool (BufferLength);
|
||||
ASSERT (String != NULL);
|
||||
|
||||
Status = HiiLibGetString (HiiHandle, Token, String, &BufferLength);
|
||||
|
||||
if (Status == EFI_BUFFER_TOO_SMALL) {
|
||||
gBS->FreePool (String);
|
||||
String = AllocateZeroPool (BufferLength);
|
||||
ASSERT (String != NULL);
|
||||
|
||||
Status = HiiLibGetString (HiiHandle, Token, String, &BufferLength);
|
||||
}
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
return String;
|
||||
}
|
||||
|
||||
/**
|
||||
Create a new string in HII Package List.
|
||||
|
||||
@param String The String to be added
|
||||
@param HiiHandle The package list in the HII database to insert the
|
||||
specified string.
|
||||
|
||||
@return The output string.
|
||||
|
||||
**/
|
||||
EFI_STRING_ID
|
||||
NewString (
|
||||
IN CHAR16 *String,
|
||||
IN EFI_HII_HANDLE HiiHandle
|
||||
)
|
||||
{
|
||||
EFI_STRING_ID StringId;
|
||||
EFI_STATUS Status;
|
||||
|
||||
StringId = 0;
|
||||
Status = HiiLibNewString (HiiHandle, &StringId, String);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
return StringId;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
/** @file
|
||||
Common Function and Macro defintions used for both for IFR Parser and Expression evaluation.
|
||||
This header file should only be included by UefiIfrParserExpression.c and UefiIfrParser.c
|
||||
|
||||
Copyright (c) 2008, 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.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _HII_THUNK_UEFI_IFR_PARSER_COMMON_INTERNAL_
|
||||
#define _HII_THUNK_UEFI_IFR_PARSER_COMMON_INTERNAL_
|
||||
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
#include <Protocol/UnicodeCollation.h>
|
||||
|
||||
extern CHAR16 *gEmptyString;
|
||||
|
||||
/**
|
||||
Get the string based on the StringId and HII Package List Handle.
|
||||
|
||||
@param Token The String's ID.
|
||||
@param HiiHandle The package list in the HII database to search for
|
||||
the specified string.
|
||||
|
||||
@return The output string.
|
||||
|
||||
**/
|
||||
CHAR16 *
|
||||
GetToken (
|
||||
IN EFI_STRING_ID Token,
|
||||
IN EFI_HII_HANDLE HiiHandle
|
||||
);
|
||||
|
||||
/**
|
||||
Create a new string in HII Package List.
|
||||
|
||||
@param String The String to be added
|
||||
@param HiiHandle The package list in the HII database to insert the
|
||||
specified string.
|
||||
|
||||
@return The output string.
|
||||
|
||||
**/
|
||||
EFI_STRING_ID
|
||||
NewString (
|
||||
IN CHAR16 *String,
|
||||
IN EFI_HII_HANDLE HiiHandle
|
||||
);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
/** @file
|
||||
Internal Function and Macro defintions for IFR Expression evaluation used in Ifr Parsing. This header file should only
|
||||
be included by UefiIfrParserExpression.c
|
||||
|
||||
Copyright (c) 2008, 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.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _HII_THUNK_UEFI_IFR_PARSER_EXPRESSION_INTERNAL_
|
||||
#define _HII_THUNK_UEFI_IFR_PARSER_EXPRESSION_INTERNAL_
|
||||
|
||||
//
|
||||
// Incremental size of stack for expression
|
||||
//
|
||||
#define EXPRESSION_STACK_SIZE_INCREMENT 0x100
|
||||
|
||||
|
||||
FORM_BROWSER_STATEMENT *
|
||||
IdToQuestion (
|
||||
IN FORM_BROWSER_FORMSET *FormSet,
|
||||
IN FORM_BROWSER_FORM *Form,
|
||||
IN UINT16 QuestionId
|
||||
);
|
||||
|
||||
|
||||
FORM_EXPRESSION *
|
||||
IdToExpression (
|
||||
IN FORM_BROWSER_FORM *Form,
|
||||
IN UINT8 RuleId
|
||||
);
|
||||
|
||||
|
||||
#endif
|
|
@ -1,55 +0,0 @@
|
|||
/** @file
|
||||
Internal Function and Macro defintions for IFR parsing. This header file should only
|
||||
be included by UefiIfrParser.c
|
||||
|
||||
Copyright (c) 2008, 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.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_
|
||||
#define _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_
|
||||
|
||||
#include <Protocol/UnicodeCollation.h>
|
||||
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/HiiLib.h>
|
||||
#include <Library/IfrSupportLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
|
||||
#include <MdeModuleHii.h>
|
||||
|
||||
//
|
||||
// Extern Variables
|
||||
//
|
||||
extern CONST EFI_HII_DATABASE_PROTOCOL *mHiiDatabase;
|
||||
extern CONST EFI_HII_IMAGE_PROTOCOL *mHiiImageProtocol;
|
||||
extern CONST EFI_HII_STRING_PROTOCOL *mHiiStringProtocol;
|
||||
extern CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRoutingProtocol;
|
||||
|
||||
//
|
||||
// Incremental string lenght of ConfigRequest
|
||||
//
|
||||
#define CONFIG_REQUEST_STRING_INCREMENTAL 1024
|
||||
|
||||
|
||||
#define EFI_SPECIFICATION_ERRATA_VERSION 0
|
||||
|
||||
#define EFI_IFR_SPECIFICATION_VERSION \
|
||||
((((EFI_SPECIFICATION_VERSION) >> 8) & 0xff00) | \
|
||||
(((EFI_SPECIFICATION_VERSION) & 0xf) << 4) | \
|
||||
((EFI_SPECIFICATION_ERRATA_VERSION) & 0xf))
|
||||
|
||||
extern EFI_GUID gZeroGuid;
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue