Port EdkUnixPkg to UnixPkg. The changes are listed as follows:
[edk2.git] / UnixPkg / Include / Ppi / UnixFwh.h
bloba9885a57bf5663b14e26515b466c2b825d56097d
1 /*++
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 Module Name:
14 UnixFwh.h
16 Abstract:
18 Unix FWH PPI as defined in Tiano
20 --*/
22 #ifndef __UNIX_PEI_FWH_H__
23 #define __UNIX_PEI_FWH_H__
25 #include <UnixDxe.h>
27 #define UNIX_FWH_PPI_GUID \
28 { \
29 0xf2f0dc30, 0x8985, 0x11db, {0xa1, 0x5b, 0x00, 0x40, 0xd0, 0x2b, 0x18, 0x35 } \
32 typedef
33 EFI_STATUS
34 (EFIAPI *UNIX_FWH_INFORMATION) (
35 IN UINTN Index,
36 IN OUT EFI_PHYSICAL_ADDRESS *FdBase,
37 IN OUT UINT64 *FdSize
40 /*++
42 Routine Description:
43 Return the FD Size and base address. Since the FD is loaded from a
44 file into host memory only the SEC will know it's address.
46 Arguments:
47 Index - Which FD, starts at zero.
48 FdSize - Size of the FD in bytes
49 FdBase - Start address of the FD. Assume it points to an FV Header
51 Returns:
52 EFI_SUCCESS - Return the Base address and size of the FV
53 EFI_UNSUPPORTED - Index does nto map to an FD in the system
55 --*/
56 typedef struct {
57 UNIX_FWH_INFORMATION UnixFwh;
58 } UNIX_FWH_PPI;
60 extern EFI_GUID gUnixFwhPpiGuid;
62 #endif