]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/Include/Ppi/NtFwh.h
Initialize the include folder for NT32Pkg
[mirror_edk2.git] / Nt32Pkg / Include / Ppi / NtFwh.h
diff --git a/Nt32Pkg/Include/Ppi/NtFwh.h b/Nt32Pkg/Include/Ppi/NtFwh.h
new file mode 100644 (file)
index 0000000..90b4109
--- /dev/null
@@ -0,0 +1,62 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+\r
+  NtFwh.h\r
+\r
+Abstract:\r
+\r
+  WinNt FWH PPI as defined in Tiano\r
+\r
+--*/\r
+\r
+#ifndef __NT_PEI_FWH_H__\r
+#define __NT_PEI_FWH_H__\r
+\r
+#include <WinNtDxe.h>\r
+\r
+#define NT_FWH_PPI_GUID \\r
+  { \\r
+    0x4e76928f, 0x50ad, 0x4334, {0xb0, 0x6b, 0xa8, 0x42, 0x13, 0x10, 0x8a, 0x57 } \\r
+  }\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *NT_FWH_INFORMATION) (\r
+  IN     UINTN                  Index,\r
+  IN OUT EFI_PHYSICAL_ADDRESS   * FdBase,\r
+  IN OUT UINT64                 *FdSize\r
+  );\r
+\r
+/*++\r
+\r
+Routine Description:\r
+  Return the FD Size and base address. Since the FD is loaded from a \r
+  file into Windows memory only the SEC will know it's address.\r
+\r
+Arguments:\r
+  Index  - Which FD, starts at zero.\r
+  FdSize - Size of the FD in bytes\r
+  FdBase - Start address of the FD. Assume it points to an FV Header\r
+\r
+Returns:\r
+  EFI_SUCCESS     - Return the Base address and size of the FV\r
+  EFI_UNSUPPORTED - Index does nto map to an FD in the system\r
+\r
+--*/\r
+typedef struct {\r
+  NT_FWH_INFORMATION  NtFwh;\r
+} NT_FWH_PPI;\r
+\r
+extern EFI_GUID gNtFwhPpiGuid;\r
+\r
+#endif\r