]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/Bds/Bds.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Core / Dxe / ArchProtocol / Bds / Bds.h
diff --git a/EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/Bds/Bds.h b/EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/Bds/Bds.h
new file mode 100644 (file)
index 0000000..ac8560a
--- /dev/null
@@ -0,0 +1,100 @@
+/*++ \r
+\r
+Copyright (c) 2004, 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
+  Bds.h\r
+\r
+Abstract:\r
+\r
+  Boot Device Selection Architectural Protocol as defined in Tiano\r
+\r
+  When the DXE core is done it calls the BDS via this protocol.\r
+\r
+--*/\r
+\r
+#ifndef _ARCH_PROTOCOL_BDS_H_\r
+#define _ARCH_PROTOCOL_BDS_H_\r
+\r
+//\r
+// Global ID for the BDS Architectural Protocol\r
+//\r
+#define EFI_BDS_ARCH_PROTOCOL_GUID \\r
+  { 0x665E3FF6, 0x46CC, 0x11d4, 0x9A, 0x38, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }\r
+\r
+//\r
+// Declare forward reference for the BDS Architectural Protocol\r
+//\r
+EFI_FORWARD_DECLARATION (EFI_BDS_ARCH_PROTOCOL);\r
+\r
+typedef\r
+VOID\r
+(EFIAPI *EFI_BDS_ENTRY) (\r
+  IN EFI_BDS_ARCH_PROTOCOL  * This\r
+  );\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  This function uses policy data from the platform to determine what operating \r
+  system or system utility should be loaded and invoked.  This function call \r
+  also optionally make the use of user input to determine the operating system \r
+  or system utility to be loaded and invoked.  When the DXE Core has dispatched \r
+  all the drivers on the dispatch queue, this function is called.  This \r
+  function will attempt to connect the boot devices required to load and invoke \r
+  the selected operating system or system utility.  During this process, \r
+  additional firmware volumes may be discovered that may contain addition DXE \r
+  drivers that can be dispatched by the DXE Core.   If a boot device cannot be \r
+  fully connected, this function calls the DXE Service Dispatch() to allow the \r
+  DXE drivers from any newly discovered firmware volumes to be dispatched.  \r
+  Then the boot device connection can be attempted again.  If the same boot \r
+  device connection operation fails twice in a row, then that boot device has \r
+  failed, and should be skipped.  This function should never return.\r
+\r
+Arguments:\r
+\r
+  This - The EFI_BDS_ARCH_PROTOCOL instance.\r
+\r
+Returns: \r
+\r
+  None.\r
+\r
+--*/\r
+\r
+//\r
+// Interface stucture for the BDS Architectural Protocol\r
+//\r
+typedef struct _EFI_BDS_ARCH_PROTOCOL {\r
+  EFI_BDS_ENTRY Entry;\r
+} EFI_BDS_ARCH_PROTOCOL;\r
+\r
+/*++\r
+\r
+  Protocol Description:\r
+    The EFI_BDS_ARCH_PROTOCOL transfers control from DXE to an operating \r
+    system or a system utility.  If there are not enough drivers initialized \r
+    when this protocol is used to access the required boot device(s), then \r
+    this protocol should add drivers to the dispatch queue and return control \r
+    back to the dispatcher.  Once the required boot devices are available, then \r
+    the boot device can be used to load and invoke an OS or a system utility.\r
+\r
+  Parameters:\r
+\r
+    Entry - The entry point to BDS.  This call does not take any parameters, \r
+            and the return value can be ignored.  If it returns, then the \r
+            dispatcher must be invoked again, if it never returns, then an \r
+            operating system or a system utility have been invoked.\r
+\r
+--*/\r
+\r
+extern EFI_GUID gEfiBdsArchProtocolGuid;\r
+\r
+#endif\r