Add DxeBootScriptLibNull in IntelFrameworkPkg.

Add IsaBusDxe in IntelFrameworkModulePkg.
Add Pcat.h in "IntelFrameworkModulePkg/IndustryStandard"


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2948 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshang1
2007-07-02 09:09:00 +00:00
parent 9262714181
commit c3902377a9
19 changed files with 4838 additions and 5 deletions

View File

@ -0,0 +1,508 @@
/*++
Copyright (c) 2007, Intel Corporation. All rights reserved. <BR>
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms of the license. Except as permitted by such
license, no part of this software or documentation may be
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.
Module Name:
BootScriptLib.c
Abstract:
Support for EFI script.
--*/
//
// The package level header files this module uses
//
#include <PiDxe.h>
//
// The protocols, PPI and GUID defintions for this module
//
//
// The Library classes this module consumes
//
#include <Library/BootScriptLib.h>
EFI_STATUS
EFIAPI
BootScriptSaveIoWrite (
IN UINT16 TableName,
IN EFI_BOOT_SCRIPT_WIDTH Width,
IN UINT64 Address,
IN UINTN Count,
IN VOID *Buffer
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI IO write script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Width - add argument and description to function comment
// GC_TODO: Address - add argument and description to function comment
// GC_TODO: Count - add argument and description to function comment
// GC_TODO: Buffer - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveIoReadWrite (
IN UINT16 TableName,
IN EFI_BOOT_SCRIPT_WIDTH Width,
IN UINT64 Address,
IN VOID *Data,
IN VOID *DataMask
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI IO read write script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Width - add argument and description to function comment
// GC_TODO: Address - add argument and description to function comment
// GC_TODO: Data - add argument and description to function comment
// GC_TODO: DataMask - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveMemWrite (
IN UINT16 TableName,
IN EFI_BOOT_SCRIPT_WIDTH Width,
IN UINT64 Address,
IN UINTN Count,
IN VOID *Buffer
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI MEM write script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Width - add argument and description to function comment
// GC_TODO: Address - add argument and description to function comment
// GC_TODO: Count - add argument and description to function comment
// GC_TODO: Buffer - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveMemReadWrite (
IN UINT16 TableName,
IN EFI_BOOT_SCRIPT_WIDTH Width,
IN UINT64 Address,
IN VOID *Data,
IN VOID *DataMask
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI MEM read write script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Width - add argument and description to function comment
// GC_TODO: Address - add argument and description to function comment
// GC_TODO: Data - add argument and description to function comment
// GC_TODO: DataMask - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSavePciCfgWrite (
IN UINT16 TableName,
IN EFI_BOOT_SCRIPT_WIDTH Width,
IN UINT64 Address,
IN UINTN Count,
IN VOID *Buffer
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI PCI write script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Width - add argument and description to function comment
// GC_TODO: Address - add argument and description to function comment
// GC_TODO: Count - add argument and description to function comment
// GC_TODO: Buffer - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSavePciCfgReadWrite (
IN UINT16 TableName,
IN EFI_BOOT_SCRIPT_WIDTH Width,
IN UINT64 Address,
IN VOID *Data,
IN VOID *DataMask
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI PCI read write script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Width - add argument and description to function comment
// GC_TODO: Address - add argument and description to function comment
// GC_TODO: Data - add argument and description to function comment
// GC_TODO: DataMask - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveSmbusExecute (
IN UINT16 TableName,
IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
IN EFI_SMBUS_DEVICE_COMMAND Command,
IN EFI_SMBUS_OPERATION Operation,
IN BOOLEAN PecCheck,
IN UINTN *Length,
IN VOID *Buffer
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI Smbus execute script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: SlaveAddress - add argument and description to function comment
// GC_TODO: Command - add argument and description to function comment
// GC_TODO: Operation - add argument and description to function comment
// GC_TODO: PecCheck - add argument and description to function comment
// GC_TODO: Length - add argument and description to function comment
// GC_TODO: Buffer - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveStall (
IN UINT16 TableName,
IN UINTN Duration
)
/*++
Routine Description:
Save I/O write to boot script
Arguments:
TableName - Desired boot script table
(Standard EFI stall script parameter)
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
// GC_TODO: Duration - add argument and description to function comment
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveDispatch2 (
IN UINT16 TableName,
IN EFI_PHYSICAL_ADDRESS EntryPoint,
IN EFI_PHYSICAL_ADDRESS Context
)
/*++
Routine Description:
GC_TODO: Add function description
Arguments:
TableName - GC_TODO: add argument description
EntryPoint - GC_TODO: add argument description
Returns:
EFI_NOT_FOUND - GC_TODO: Add description for return value
EFI_SUCCESS - GC_TODO: Add description for return value
--*/
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveInformation (
IN UINT16 TableName,
IN UINT32 Length,
IN EFI_PHYSICAL_ADDRESS Buffer
)
/*++
Routine Description:
GC_TODO: Add function description
Arguments:
TableName - GC_TODO: add argument description
EntryPoint - GC_TODO: add argument description
Returns:
EFI_NOT_FOUND - GC_TODO: Add description for return value
EFI_SUCCESS - GC_TODO: Add description for return value
--*/
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveInformationUnicodeString (
IN UINT16 TableName,
IN CONST CHAR16 *String
)
/*++
Routine Description:
Save unicode string information specified by Buffer to
boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE
Arguments:
TableName - Desired boot script table
FfsName - The file name of the code to be dispatched.
Context - The data that will be passed into code.
ParentHandle - The caller's image handle.
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveInformationAsciiString (
IN UINT16 TableName,
IN CONST CHAR8 *String
)
/*++
Routine Description:
Save ASCII string information specified by Buffer to
boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE
Arguments:
TableName - Desired boot script table
FfsName - The file name of the code to be dispatched.
Context - The data that will be passed into code.
ParentHandle - The caller's image handle.
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveDispatch (
IN UINT16 TableName,
IN EFI_PHYSICAL_ADDRESS EntryPoint
)
/*++
Routine Description:
GC_TODO: Add function description
Arguments:
TableName - GC_TODO: add argument description
EntryPoint - GC_TODO: add argument description
Returns:
EFI_NOT_FOUND - GC_TODO: Add description for return value
EFI_SUCCESS - GC_TODO: Add description for return value
--*/
{
return EFI_SUCCESS;
}
EFI_STATUS
EFIAPI
BootScriptSaveDispatch2Image (
IN UINT16 TableName,
IN EFI_GUID *FfsName,
IN EFI_PHYSICAL_ADDRESS Context,
IN EFI_HANDLE ParentHandle
)
/*++
Routine Description:
Save dispatching specified arbitrary code to boot script with opcode
EFI_BOOT_SCRIPT_DISPATCH_OPCODE
Arguments:
TableName - Desired boot script table
FfsName - The file name of the code to be dispatched.
Context - The data that will be passed into code.
ParentHandle - The caller's image handle.
Returns:
EFI_NOT_FOUND - BootScriptSave Protocol not exist.
EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS
--*/
{
return EFI_SUCCESS;
}

View File

@ -0,0 +1,71 @@
#/** @file
# BootScriptLib instance that always produces NOP operation.
#
# This library is primarily used by platform that does not support ACPI S3 resume.
# All the library interfaces simply return EFI_SUCCESS without performing any operation.
# Copyright (c) 2007, Intel Corporation.
#
# All rights reserved.
# This software and associated documentation (if any) is furnished
# under a license and may only be used or copied in accordance
# with the terms of the license. Except as permitted by such
# license, no part of this software or documentation may be
# reproduced, stored in a retrieval system, or transmitted in any
# form or by any means without the express written consent of
# Intel Corporation.
#
#
#**/
################################################################################
#
# Defines Section - statements that will be processed to create a Makefile.
#
################################################################################
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = DxeBootScriptLibNull
FILE_GUID = 9A6DC1AC-94C0-43b1-8714-4C70FD58A815
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = BootScriptLib
EDK_RELEASE_VERSION = 0x00020000
EFI_SPECIFICATION_VERSION = 0x00020000
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
#
################################################################################
#
# Sources Section - list of files that are required for the build to succeed.
#
################################################################################
[Sources.common]
BootScriptLib.c
################################################################################
#
# Includes Section - list of Include locations that are required for
# this module.
#
################################################################################
[Includes]
################################################################################
#
# Package Dependency Section - list of Package files that are required for
# this module.
#
################################################################################
[Packages]
MdePkg/MdePkg.dec
IntelFrameworkPkg/IntelFrameworkPkg.dec

View File

@ -0,0 +1,44 @@
<?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>DxeBootScriptLibNull</ModuleName>
<ModuleType>DXE_DRIVER</ModuleType>
<GuidValue>9A6DC1AC-94C0-43b1-8714-4C70FD58A815</GuidValue>
<Version>1.0</Version>
<Abstract>BootScriptLib instance that always produces NOP operation.</Abstract>
<Description>This library is primarily used by platform that does not support ACPI S3 resume.
All the library interfaces simply return EFI_SUCCESS without performing any operation.</Description>
<Copyright>Copyright (c) 2007, Intel Corporation.</Copyright>
<License>All rights reserved.
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms of the license. Except as permitted by such
license, no part of this software or documentation may be
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.</License>
<Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
</MsaHeader>
<ModuleDefinitions>
<SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>
<BinaryModule>false</BinaryModule>
<OutputFileBasename>DxeBootScriptLibNull</OutputFileBasename>
</ModuleDefinitions>
<LibraryClassDefinitions>
<LibraryClass Usage="ALWAYS_PRODUCED">
<Keyword>BootScriptLib</Keyword>
</LibraryClass>
</LibraryClassDefinitions>
<SourceFiles>
<Filename>BootScriptLib.c</Filename>
</SourceFiles>
<PackageDependencies>
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>
<Package PackageGuid="bea835f9-fd62-464a-81ff-f3a806360c6b"/>
</PackageDependencies>
<Externs>
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>
<Specification>EDK_RELEASE_VERSION 0x00020000</Specification>
</Externs>
</ModuleSurfaceArea>