]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/Bds.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Protocol / Bds.h
CommitLineData
d1f95000 1/** @file\r
4ca9b6c4 2 Boot Device Selection Architectural Protocol as defined in PI spec Volume 2 DXE\r
d1f95000 3\r
4 When the DXE core is done it calls the BDS via this protocol.\r
5\r
9095d37b 6 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
d1f95000 8\r
d1f95000 9**/\r
10\r
11#ifndef __ARCH_PROTOCOL_BDS_H__\r
12#define __ARCH_PROTOCOL_BDS_H__\r
13\r
99e8ed21 14///\r
15/// Global ID for the BDS Architectural Protocol\r
16///\r
d1f95000 17#define EFI_BDS_ARCH_PROTOCOL_GUID \\r
18 { 0x665E3FF6, 0x46CC, 0x11d4, {0x9A, 0x38, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } }\r
19\r
99e8ed21 20///\r
21/// Declare forward reference for the BDS Architectural Protocol\r
22///\r
d1f95000 23typedef struct _EFI_BDS_ARCH_PROTOCOL EFI_BDS_ARCH_PROTOCOL;\r
24\r
25/**\r
9095d37b
LG
26 This function uses policy data from the platform to determine what operating\r
27 system or system utility should be loaded and invoked. This function call\r
28 also optionally make the use of user input to determine the operating system\r
29 or system utility to be loaded and invoked. When the DXE Core has dispatched\r
30 all the drivers on the dispatch queue, this function is called. This\r
31 function will attempt to connect the boot devices required to load and invoke\r
32 the selected operating system or system utility. During this process,\r
33 additional firmware volumes may be discovered that may contain addition DXE\r
34 drivers that can be dispatched by the DXE Core. If a boot device cannot be\r
35 fully connected, this function calls the DXE Service Dispatch() to allow the\r
36 DXE drivers from any newly discovered firmware volumes to be dispatched.\r
37 Then the boot device connection can be attempted again. If the same boot\r
38 device connection operation fails twice in a row, then that boot device has\r
d1f95000 39 failed, and should be skipped. This function should never return.\r
40\r
41 @param This The EFI_BDS_ARCH_PROTOCOL instance.\r
42\r
43 @return None.\r
44\r
45**/\r
46typedef\r
47VOID\r
8b13229b 48(EFIAPI *EFI_BDS_ENTRY)(\r
d1f95000 49 IN EFI_BDS_ARCH_PROTOCOL *This\r
50 );\r
51\r
44717a39 52///\r
9095d37b
LG
53/// The EFI_BDS_ARCH_PROTOCOL transfers control from DXE to an operating\r
54/// system or a system utility. If there are not enough drivers initialized\r
55/// when this protocol is used to access the required boot device(s), then\r
56/// this protocol should add drivers to the dispatch queue and return control\r
57/// back to the dispatcher. Once the required boot devices are available, then\r
44717a39 58/// the boot device can be used to load and invoke an OS or a system utility.\r
59///\r
d1f95000 60struct _EFI_BDS_ARCH_PROTOCOL {\r
61 EFI_BDS_ENTRY Entry;\r
62};\r
63\r
64extern EFI_GUID gEfiBdsArchProtocolGuid;\r
65\r
66#endif\r