TianoCore EDK2 master
|
#include "InternalBm.h"
Go to the source code of this file.
Functions | |
CHAR16 * | BmGetControllerName (IN EFI_HANDLE DriverHealthHandle, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle) |
VOID | BmDisplayMessages (IN EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO *DriverHealthInfo) |
EFI_STATUS EFIAPI | BmRepairNotify (IN UINTN Value, IN UINTN Limit) |
EFI_STATUS | BmGetSingleControllerHealthStatus (IN OUT EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO **DriverHealthInfo, IN OUT UINTN *Count, IN EFI_HANDLE DriverHealthHandle, IN EFI_HANDLE ControllerHandle OPTIONAL, IN EFI_HANDLE ChildHandle OPTIONAL) |
EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO *EFIAPI | EfiBootManagerGetDriverHealthInfo (UINTN *Count) |
EFI_STATUS EFIAPI | EfiBootManagerFreeDriverHealthInfo (EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO *DriverHealthInfo, UINTN Count) |
VOID | BmRepairAllControllers (UINTN ReconnectRepairCount) |
Variables | |
GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 * | mBmHealthStatusText [] |
Library functions which relates with driver health.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BmDriverHealth.c.
VOID BmDisplayMessages | ( | IN EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO * | DriverHealthInfo | ) |
Display a set of messages returned by the GetHealthStatus () service of the EFI Driver Health Protocol
DriverHealthInfo | Pointer to the Driver Health information entry. |
Definition at line 113 of file BmDriverHealth.c.
CHAR16 * BmGetControllerName | ( | IN EFI_HANDLE | DriverHealthHandle, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_HANDLE | ChildHandle | ||
) |
Return the controller name.
DriverHealthHandle | The handle on which the Driver Health protocol instance is retrieved. |
ControllerHandle | The handle of a controller that the driver specified by DriverBindingHandle is managing. This handle specifies the controller whose name is to be returned. |
ChildHandle | The handle of the child controller to retrieve the name of. This is an optional parameter that may be NULL. It will be NULL for device drivers. It will also be NULL for bus drivers that attempt to retrieve the name of the bus controller. It will not be NULL for a bus driver that attempts to retrieve the name of a child controller. |
Definition at line 39 of file BmDriverHealth.c.
EFI_STATUS BmGetSingleControllerHealthStatus | ( | IN OUT EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO ** | DriverHealthInfo, |
IN OUT UINTN * | Count, | ||
IN EFI_HANDLE | DriverHealthHandle, | ||
IN EFI_HANDLE ControllerHandle | OPTIONAL, | ||
IN EFI_HANDLE ChildHandle | OPTIONAL | ||
) |
Collect the Driver Health status of a single controller.
DriverHealthInfo | A pointer to the array containing all of the platform driver health information. |
Count | Return the updated array count. |
DriverHealthHandle | The handle on which the Driver Health protocol instance is retrieved. |
ControllerHandle | The handle of the controller.. |
ChildHandle | The handle of the child controller to retrieve the health status on. This is an optional parameter that may be NULL. |
Status | The status returned from GetHealthStatus. |
EFI_ABORTED | The health status is healthy so no further query is needed. |
Definition at line 192 of file BmDriverHealth.c.
VOID BmRepairAllControllers | ( | UINTN | ReconnectRepairCount | ) |
Repair all the controllers according to the Driver Health status queried.
ReconnectRepairCount | To record the number of recursive call of this function itself. |
Definition at line 429 of file BmDriverHealth.c.
EFI_STATUS EFIAPI BmRepairNotify | ( | IN UINTN | Value, |
IN UINTN | Limit | ||
) |
The repair notify function.
Value | A value between 0 and Limit that identifies the current progress of the repair operation. |
Limit | The maximum value of Value for the current repair operation. If Limit is 0, then the completion progress is indeterminate. For example, a driver that wants to specify progress in percent would use a Limit value of 100. |
EFI_SUCCESS | Successfully return from the notify function. |
Definition at line 166 of file BmDriverHealth.c.
EFI_STATUS EFIAPI EfiBootManagerFreeDriverHealthInfo | ( | EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO * | DriverHealthInfo, |
UINTN | Count | ||
) |
Free the Driver Health information array.
DriverHealthInfo | Pointer to array of the Driver Health information. |
Count | Count of the array. |
EFI_SUCCESS | The array is freed. |
EFI_INVALID_PARAMETER | The array is NULL. |
Definition at line 406 of file BmDriverHealth.c.
EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO *EFIAPI EfiBootManagerGetDriverHealthInfo | ( | UINTN * | Count | ) |
Return all the Driver Health information.
When the cumulative health status of all the controllers managed by the driver who produces the EFI_DRIVER_HEALTH_PROTOCOL is healthy, only one EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO entry is created for such EFI_DRIVER_HEALTH_PROTOCOL instance. Otherwise, every controller creates one EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO entry. Additionally every child controller creates one EFI_BOOT_MANAGER_DRIVER_HEALTH_INFO entry if the driver is a bus driver.
Count | Return the count of the Driver Health information. |
NULL | No Driver Health information is returned. |
!NULL | Pointer to the Driver Health information array. |
Definition at line 288 of file BmDriverHealth.c.
GLOBAL_REMOVE_IF_UNREFERENCED CHAR16* mBmHealthStatusText[] |
Definition at line 14 of file BmDriverHealth.c.