]> git.proxmox.com Git - mirror_edk2.git/blame - UnixPkg/Include/Library/SecDispatchTableLib.h
Finish spliting SecDispatchTableLib into two functions so it can be a BaseLib
[mirror_edk2.git] / UnixPkg / Include / Library / SecDispatchTableLib.h
CommitLineData
249383cf 1/** @file
2 Allows an override of the SEC SEC PPI Dispatch Table. This allows
3 customized PPIs to be passed into the PEI Core.
4
5Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
6This program and the accompanying materials
7are licensed and made available under the terms and conditions of the BSD License
8which accompanies this distribution. The full text of the license may be found at
9http://opensource.org/licenses/bsd-license.php.
10
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14**/
15
16
17#ifndef __SEC_DISPATCH_TABLE_LIB_H__
18#define __SEC_DISPATCH_TABLE_LIB_H__
19
69cf40e0 20
249383cf 21/**
69cf40e0 22 Return the number of bytes that OverrideDispatchTable() will append to
23 the dispatch table.
24
25 @return Size of table in bytes OverrideDispatchTable() will return
249383cf 26
69cf40e0 27**/
28UINTN
29EFIAPI
30OverrideDispatchTableExtraSize (
31 VOID
32 );
33
34
35/**
36 Allow an override of the Sec PPI Dispatch Table. This table contains PPIs passed
37 up from SEC to PEI.
249383cf 38
69cf40e0 39 @param OriginalTable SECs default PPI dispatch table
40 @param OriginalTableSize Size of SECs default PPI dispatch table
41 @param NewTable New dispatch table
42 @param NewTableSize Size of of the NewTable in bytes
249383cf 43
69cf40e0 44 @return EFI_SUCCESS table was copied
249383cf 45
46**/
69cf40e0 47EFI_STATUS
249383cf 48EFIAPI
49OverrideDispatchTable (
69cf40e0 50 IN CONST EFI_PEI_PPI_DESCRIPTOR *OriginalTable,
51 IN UINTN OriginalTableSize,
52 IN OUT EFI_PEI_PPI_DESCRIPTOR *NewTable,
53 IN UINTN NewTableSize
249383cf 54 );
55
56
57#endif