]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Include/Dxe/ArchProtocol/Bds.h
f6b72d2b00e25b0cca45d5daf8165ad5bd55a365
[mirror_edk2.git] / Tools / Source / TianoTools / Include / Dxe / ArchProtocol / Bds.h
1 /** @file
2 Boot Device Selection Architectural Protocol as defined in DXE CIS
3
4 When the DXE core is done it calls the BDS via this protocol.
5
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 Module Name: Bds.h
16
17 @par Revision Reference:
18 Version 0.91B.
19
20 **/
21
22 #ifndef __ARCH_PROTOCOL_BDS_H__
23 #define __ARCH_PROTOCOL_BDS_H__
24
25 //
26 // Global ID for the BDS Architectural Protocol
27 //
28 #define EFI_BDS_ARCH_PROTOCOL_GUID \
29 { 0x665E3FF6, 0x46CC, 0x11d4, {0x9A, 0x38, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } }
30
31 //
32 // Declare forward reference for the BDS Architectural Protocol
33 //
34 typedef struct _EFI_BDS_ARCH_PROTOCOL EFI_BDS_ARCH_PROTOCOL;
35
36 /**
37 This function uses policy data from the platform to determine what operating
38 system or system utility should be loaded and invoked. This function call
39 also optionally make the use of user input to determine the operating system
40 or system utility to be loaded and invoked. When the DXE Core has dispatched
41 all the drivers on the dispatch queue, this function is called. This
42 function will attempt to connect the boot devices required to load and invoke
43 the selected operating system or system utility. During this process,
44 additional firmware volumes may be discovered that may contain addition DXE
45 drivers that can be dispatched by the DXE Core. If a boot device cannot be
46 fully connected, this function calls the DXE Service Dispatch() to allow the
47 DXE drivers from any newly discovered firmware volumes to be dispatched.
48 Then the boot device connection can be attempted again. If the same boot
49 device connection operation fails twice in a row, then that boot device has
50 failed, and should be skipped. This function should never return.
51
52 @param This The EFI_BDS_ARCH_PROTOCOL instance.
53
54 @return None.
55
56 **/
57 typedef
58 VOID
59 (EFIAPI *EFI_BDS_ENTRY) (
60 IN EFI_BDS_ARCH_PROTOCOL *This
61 );
62
63 /**
64 Interface stucture for the BDS Architectural Protocol.
65
66 @par Protocol Description:
67 The EFI_BDS_ARCH_PROTOCOL transfers control from DXE to an operating
68 system or a system utility. If there are not enough drivers initialized
69 when this protocol is used to access the required boot device(s), then
70 this protocol should add drivers to the dispatch queue and return control
71 back to the dispatcher. Once the required boot devices are available, then
72 the boot device can be used to load and invoke an OS or a system utility.
73
74 @par Protocol Parameters:
75 Entry - The entry point to BDS. This call does not take any parameters,
76 and the return value can be ignored. If it returns, then the
77 dispatcher must be invoked again, if it never returns, then an
78 operating system or a system utility have been invoked.
79
80 **/
81 struct _EFI_BDS_ARCH_PROTOCOL {
82 EFI_BDS_ENTRY Entry;
83 };
84
85 extern EFI_GUID gEfiBdsArchProtocolGuid;
86
87 #endif