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