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