TianoCore EDK2 master
|
#include "TlsImpl.h"
Go to the source code of this file.
Functions | |
VOID | TlsCleanInstance (IN TLS_INSTANCE *Instance) |
EFI_STATUS | TlsCreateInstance (IN TLS_SERVICE *Service, OUT TLS_INSTANCE **Instance) |
VOID | TlsCleanService (IN TLS_SERVICE *Service) |
EFI_STATUS | TlsCreateService (IN EFI_HANDLE Image, OUT TLS_SERVICE **Service) |
EFI_STATUS EFIAPI | TlsUnload (IN EFI_HANDLE ImageHandle) |
EFI_STATUS EFIAPI | TlsDriverEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | TlsServiceBindingCreateChild (IN EFI_SERVICE_BINDING_PROTOCOL *This, IN EFI_HANDLE *ChildHandle) |
EFI_STATUS EFIAPI | TlsServiceBindingDestroyChild (IN EFI_SERVICE_BINDING_PROTOCOL *This, IN EFI_HANDLE ChildHandle) |
Variables | |
EFI_SERVICE_BINDING_PROTOCOL | mTlsServiceBinding |
The Driver Binding and Service Binding Protocol for TlsDxe driver.
Copyright (c) 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TlsDriver.c.
VOID TlsCleanInstance | ( | IN TLS_INSTANCE * | Instance | ) |
Release all the resources used by the TLS instance.
[in] | Instance | The TLS instance data. |
Definition at line 24 of file TlsDriver.c.
VOID TlsCleanService | ( | IN TLS_SERVICE * | Service | ) |
Release all the resources used by the TLS service binding instance.
[in] | Service | The TLS service data. |
Definition at line 84 of file TlsDriver.c.
EFI_STATUS TlsCreateInstance | ( | IN TLS_SERVICE * | Service, |
OUT TLS_INSTANCE ** | Instance | ||
) |
Create the TLS instance and initialize it.
[in] | Service | The pointer to the TLS service. |
[out] | Instance | The pointer to the TLS instance. |
EFI_OUT_OF_RESOURCES | Failed to allocate resources. |
EFI_SUCCESS | The TLS instance is created. |
Definition at line 48 of file TlsDriver.c.
EFI_STATUS TlsCreateService | ( | IN EFI_HANDLE | Image, |
OUT TLS_SERVICE ** | Service | ||
) |
Create then initialize a TLS service.
[in] | Image | ImageHandle of the TLS driver |
[out] | Service | The service for TLS driver |
EFI_OUT_OF_RESOURCES | Failed to allocate resource to create the service. |
EFI_SUCCESS | The service is created for the driver. |
Definition at line 108 of file TlsDriver.c.
EFI_STATUS EFIAPI TlsDriverEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
This is the declaration of an EFI image entry point. This entry point is the same for UEFI Applications, UEFI OS Loaders, and UEFI Drivers including both device drivers and bus drivers.
ImageHandle | The firmware allocated handle for the UEFI image. |
SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The operation completed successfully. |
Others | An unexpected error occurred. |
Definition at line 235 of file TlsDriver.c.
EFI_STATUS EFIAPI TlsServiceBindingCreateChild | ( | IN EFI_SERVICE_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE * | ChildHandle | ||
) |
Creates a child handle and installs a protocol.
The CreateChild() function installs a protocol on ChildHandle. If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.
[in] | This | Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance. |
[in] | ChildHandle | Pointer to the handle of the child to create. If it is NULL, then a new handle is created. If it is a pointer to an existing UEFI handle, then the protocol is added to the existing UEFI handle. |
EFI_SUCCESS | The protocol was added to ChildHandle. |
EFI_INVALID_PARAMETER | ChildHandle is NULL. |
EFI_OUT_OF_RESOURCES | There are not enough resources available to create the child. |
other | The child handle was not created. |
Definition at line 311 of file TlsDriver.c.
EFI_STATUS EFIAPI TlsServiceBindingDestroyChild | ( | IN EFI_SERVICE_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ChildHandle | ||
) |
Destroys a child handle with a protocol installed on it.
The DestroyChild() function does the opposite of CreateChild(). It removes a protocol that was installed by CreateChild() from ChildHandle. If the removed protocol is the last protocol on ChildHandle, then ChildHandle is destroyed.
This | Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance. |
ChildHandle | Handle of the child to destroy. |
EFI_SUCCESS | The protocol was removed from ChildHandle. |
EFI_UNSUPPORTED | ChildHandle does not support the protocol that is being removed. |
EFI_INVALID_PARAMETER | Child handle is NULL. |
EFI_ACCESS_DENIED | The protocol could not be removed from the ChildHandle because its services are being used. |
other | The child handle was not destroyed. |
Definition at line 405 of file TlsDriver.c.
EFI_STATUS EFIAPI TlsUnload | ( | IN EFI_HANDLE | ImageHandle | ) |
Unloads an image.
[in] | ImageHandle | Handle that identifies the image to be unloaded. |
EFI_SUCCESS | The image has been unloaded. |
EFI_INVALID_PARAMETER | ImageHandle is not a valid image handle. |
Definition at line 152 of file TlsDriver.c.
EFI_SERVICE_BINDING_PROTOCOL mTlsServiceBinding |
Definition at line 12 of file TlsDriver.c.