forked from tianocore/edk2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdeModulePkg: Add DxeGcdCorePlatformHookLib
The library provides the function to perform the platform hooks after Gcd core is initialized. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
- Loading branch information
Showing
9 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** @file | ||
Library that provides platform hooks to perform post processing of Gcd memory map. | ||
Copyright (c) 2017, AMD Inc. All rights reserved.<BR> | ||
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 __DXE_GCD_CORE_PLATFORM_HOOK_LIB_H__ | ||
#define __DXE_GCD_CORE_PLATFORM_HOOK_LIB_H__ | ||
|
||
|
||
/** | ||
This function is hook point called after the GCD memory map is initialized, | ||
it allows the platform to perform post processing before the GCD maps are | ||
made available to other drivers. | ||
**/ | ||
VOID | ||
EFIAPI | ||
DxeGcdCorePlatformHookReady ( | ||
EFI_DXE_SERVICES *gDS | ||
); | ||
|
||
|
||
#endif | ||
|
30 changes: 30 additions & 0 deletions
30
MdeModulePkg/Library/DxeGcdCorePlatformHookLib/DxeGcdCorePlatformHookLibNull.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** @file | ||
DxeCore Gcd Platform Hook NULL library instance. | ||
Copyright (c) 2017, AMD Inc. All rights reserved.<BR> | ||
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. | ||
**/ | ||
|
||
#include <PiDxe.h> | ||
|
||
#include <Library/DxeGcdCorePlatformHookLib.h> | ||
|
||
/** | ||
This function is hook point called after the GCD memory map is initialized, | ||
it allows the platform to perform post processing before the GCD maps are | ||
made available to other drivers. | ||
**/ | ||
VOID | ||
EFIAPI | ||
DxeGcdCorePlatformHookReady ( | ||
EFI_DXE_SERVICES *gDS | ||
) | ||
{ | ||
} |
33 changes: 33 additions & 0 deletions
33
MdeModulePkg/Library/DxeGcdCorePlatformHookLib/DxeGcdCorePlatformHookLibNull.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## @file | ||
# GCD core platform hook lib | ||
|
||
# Copyright (c) 2017, AMD Inc. All rights reserved.<BR> | ||
# 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. | ||
# | ||
## | ||
|
||
[Defines] | ||
INF_VERSION = 1.25 | ||
BASE_NAME = DxeGcdCorePlatformHookLib | ||
FILE_GUID = 7C1DC10D-D271-422a-AFF3-CBCF70344431 | ||
MODULE_TYPE = DXE_CORE | ||
VERSION_STRING = 1.0 | ||
|
||
LIBRARY_CLASS = DxeGcdCorePlatformHookLib | DXE_CORE | ||
|
||
[Sources] | ||
DxeGcdCorePlatformHookLibNull.c | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec | ||
MdeModulePkg/MdeModulePkg.dec | ||
|
||
[LibraryClasses] | ||
BaseLib | ||
DebugLib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters