]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/ServiceBinding.h
Import Pal.h and Sal.h.
[mirror_edk2.git] / MdePkg / Include / Protocol / ServiceBinding.h
CommitLineData
d1f95000 1/** @file\r
2 Copyright (c) 2006, Intel Corporation \r
3 All rights reserved. This program and the accompanying materials \r
4 are licensed and made available under the terms and conditions of the BSD License \r
5 which accompanies this distribution. The full text of the license may be found at \r
6 http://opensource.org/licenses/bsd-license.php \r
7\r
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
10\r
11 Module Name: ServiceBinding.h\r
12\r
13**/\r
14\r
15#ifndef __EFI_SERVICE_BINDING_H__\r
16#define __EFI_SERVICE_BINDING_H__\r
17\r
18//\r
19// Forward reference for pure ANSI compatability\r
20//\r
21typedef struct _EFI_SERVICE_BINDING_PROTOCOL EFI_SERVICE_BINDING_PROTOCOL;\r
22\r
23/**\r
24 Creates a child handle with a set of I/O services.\r
25\r
26 @param This Protocol instance pointer.\r
27 @param ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
28 then a new handle is created. If it is not NULL, then the\r
29 I/O services are added to the existing child handle.\r
30\r
31 @retval EFI_SUCCES The child handle was created with the I/O services\r
32 @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
33 @retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create\r
34 the child\r
35 @retval other The child handle was not created\r
36\r
37**/\r
38typedef\r
39EFI_STATUS\r
40(EFIAPI *EFI_SERVICE_BINDING_CREATE_CHILD) (\r
41 IN EFI_SERVICE_BINDING_PROTOCOL *This,\r
42 IN OUT EFI_HANDLE *ChildHandle\r
43 )\r
44;\r
45\r
46/**\r
47 Destroys a child handle with a set of I/O services.\r
48\r
49 @param This Protocol instance pointer.\r
50 @param ChildHandle Handle of the child to destroy\r
51\r
52 @retval EFI_SUCCES The I/O services were removed from the child handle\r
53 @retval EFI_UNSUPPORTED The child handle does not support the I/O services\r
54 that are being removed.\r
55 @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
56 @retval EFI_ACCESS_DENIED The child handle could not be destroyed because its\r
57 I/O services are being used.\r
58 @retval other The child handle was not destroyed\r
59\r
60**/\r
61typedef\r
62EFI_STATUS\r
63(EFIAPI *EFI_SERVICE_BINDING_DESTROY_CHILD) (\r
64 IN EFI_SERVICE_BINDING_PROTOCOL *This,\r
65 IN EFI_HANDLE ChildHandle\r
66 )\r
67;\r
68\r
69struct _EFI_SERVICE_BINDING_PROTOCOL {\r
70 EFI_SERVICE_BINDING_CREATE_CHILD CreateChild;\r
71 EFI_SERVICE_BINDING_DESTROY_CHILD DestroyChild;\r
72};\r
73\r
74#endif\r