summaryrefslogtreecommitdiff
path: root/UnixPkg/Include
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-16 20:23:33 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-16 20:23:33 +0000
commit249383cf15342d386e7cf832191653e8232b0a3d (patch)
treee7dbbd89efafb92306165851488601dd08d021ad /UnixPkg/Include
parent45059fab2a4fdff047d4f485c9691f28d47f135e (diff)
downloadedk2-249383cf15342d386e7cf832191653e8232b0a3d.zip
edk2-249383cf15342d386e7cf832191653e8232b0a3d.tar.gz
edk2-249383cf15342d386e7cf832191653e8232b0a3d.tar.bz2
Added SecDispatchTable library to allow custom PPIs to be passed up to into PEI Core. This will allow platform specific libraries to do thinks like map hardware devices directly into the emulator.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10882 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/Include')
-rw-r--r--UnixPkg/Include/Library/SecDispatchTableLib.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/UnixPkg/Include/Library/SecDispatchTableLib.h b/UnixPkg/Include/Library/SecDispatchTableLib.h
new file mode 100644
index 0000000..6cebb58
--- /dev/null
+++ b/UnixPkg/Include/Library/SecDispatchTableLib.h
@@ -0,0 +1,38 @@
+/** @file
+ Allows an override of the SEC SEC PPI Dispatch Table. This allows
+ customized PPIs to be passed into the PEI Core.
+
+Copyright (c) 2008 - 2010, Apple 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 __SEC_DISPATCH_TABLE_LIB_H__
+#define __SEC_DISPATCH_TABLE_LIB_H__
+
+/**
+ Allow an override of the Sec PPI Dispatch Table. This table contains PPIs passed
+ up from SEC to PEI. This function is responcible for allocating space for the
+ overridden table.
+
+
+ @param OriginalTable SECs default PPI dispatch table
+
+ @return OriginalTable or override of the table
+
+**/
+EFI_PEI_PPI_DESCRIPTOR *
+EFIAPI
+OverrideDispatchTable (
+ IN CONST EFI_PEI_PPI_DESCRIPTOR *OriginalTable
+ );
+
+
+#endif