]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/ServiceBinding.h
Updated headers to follow coding standard
[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
d1f95000 11**/\r
12\r
13#ifndef __EFI_SERVICE_BINDING_H__\r
14#define __EFI_SERVICE_BINDING_H__\r
15\r
16//\r
17// Forward reference for pure ANSI compatability\r
18//\r
19typedef struct _EFI_SERVICE_BINDING_PROTOCOL EFI_SERVICE_BINDING_PROTOCOL;\r
20\r
21/**\r
22 Creates a child handle with a set of I/O services.\r
23\r
24 @param This Protocol instance pointer.\r
25 @param ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
26 then a new handle is created. If it is not NULL, then the\r
27 I/O services are added to the existing child handle.\r
28\r
29 @retval EFI_SUCCES The child handle was created with the I/O services\r
30 @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
31 @retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create\r
32 the child\r
33 @retval other The child handle was not created\r
34\r
35**/\r
36typedef\r
37EFI_STATUS\r
38(EFIAPI *EFI_SERVICE_BINDING_CREATE_CHILD) (\r
39 IN EFI_SERVICE_BINDING_PROTOCOL *This,\r
40 IN OUT EFI_HANDLE *ChildHandle\r
41 )\r
42;\r
43\r
44/**\r
45 Destroys a child handle with a set of I/O services.\r
46\r
47 @param This Protocol instance pointer.\r
48 @param ChildHandle Handle of the child to destroy\r
49\r
50 @retval EFI_SUCCES The I/O services were removed from the child handle\r
51 @retval EFI_UNSUPPORTED The child handle does not support the I/O services\r
52 that are being removed.\r
53 @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
54 @retval EFI_ACCESS_DENIED The child handle could not be destroyed because its\r
55 I/O services are being used.\r
56 @retval other The child handle was not destroyed\r
57\r
58**/\r
59typedef\r
60EFI_STATUS\r
61(EFIAPI *EFI_SERVICE_BINDING_DESTROY_CHILD) (\r
62 IN EFI_SERVICE_BINDING_PROTOCOL *This,\r
63 IN EFI_HANDLE ChildHandle\r
64 )\r
65;\r
66\r
67struct _EFI_SERVICE_BINDING_PROTOCOL {\r
68 EFI_SERVICE_BINDING_CREATE_CHILD CreateChild;\r
69 EFI_SERVICE_BINDING_DESTROY_CHILD DestroyChild;\r
70};\r
71\r
72#endif\r