TianoCore EDK2 master
|
#include "PxeBcImpl.h"
Go to the source code of this file.
Variables | |
EFI_DRIVER_BINDING_PROTOCOL | gPxeBcIp4DriverBinding |
EFI_DRIVER_BINDING_PROTOCOL | gPxeBcIp6DriverBinding |
Driver Binding functions implementation for UefiPxeBc Driver.
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.
Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PxeBcDriver.c.
EFI_STATUS PxeBcCheckIpv6Support | ( | IN EFI_HANDLE | ControllerHandle, |
IN PXEBC_PRIVATE_DATA * | Private, | ||
OUT BOOLEAN * | Ipv6Support | ||
) |
Check whether UNDI protocol supports IPv6.
[in] | ControllerHandle | Controller handle. |
[in] | Private | Pointer to PXEBC_PRIVATE_DATA. |
[out] | Ipv6Support | TRUE if UNDI supports IPv6. |
EFI_SUCCESS | Get the result whether UNDI supports IPv6 by NII or AIP protocol successfully. |
EFI_NOT_FOUND | Don't know whether UNDI supports IPv6 since NII or AIP is not available. |
Definition at line 453 of file PxeBcDriver.c.
EFI_STATUS PxeBcCreateIp4Children | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN PXEBC_PRIVATE_DATA * | Private | ||
) |
Create the opened instances based on IPv4.
[in] | This | Pointer to EFI_DRIVER_BINDING_PROTOCOL. |
[in] | ControllerHandle | Handle of the child to destroy. |
[in] | Private | Handle Pointer to PXEBC_PRIVATE_DATA. |
EFI_SUCCESS | The instances based on IPv4 were all created successfully. |
Others | An unexpected error occurred. |
Definition at line 550 of file PxeBcDriver.c.
EFI_STATUS PxeBcCreateIp6Children | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN PXEBC_PRIVATE_DATA * | Private | ||
) |
Create the opened instances based on IPv6.
[in] | This | Pointer to EFI_DRIVER_BINDING_PROTOCOL. |
[in] | ControllerHandle | Handle of the child to destroy. |
[in] | Private | Handle Pointer to PXEBC_PRIVATE_DATA. |
EFI_SUCCESS | The instances based on IPv6 were all created successfully. |
Others | An unexpected error occurred. |
Definition at line 882 of file PxeBcDriver.c.
VOID PxeBcDestroyIp4Children | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN PXEBC_PRIVATE_DATA * | Private | ||
) |
Destroy the opened instances based on IPv4.
[in] | This | Pointer to the EFI_DRIVER_BINDING_PROTOCOL. |
[in] | Private | Pointer to PXEBC_PRIVATE_DATA. |
Definition at line 107 of file PxeBcDriver.c.
VOID PxeBcDestroyIp6Children | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN PXEBC_PRIVATE_DATA * | Private | ||
) |
Destroy the opened instances based on IPv6.
[in] | This | Pointer to the EFI_DRIVER_BINDING_PROTOCOL. |
[in] | Private | Pointer to PXEBC_PRIVATE_DATA. |
Definition at line 289 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcDriverEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The entry point for UefiPxeBc driver that installs the driver binding and component name protocol on its image.
[in] | ImageHandle | The Image handle of the driver. |
[in] | SystemTable | The system table. |
Definition at line 1241 of file PxeBcDriver.c.
EFI_HANDLE PxeBcGetNicByIp4Children | ( | IN EFI_HANDLE | ControllerHandle | ) |
Get the Nic handle using any child handle in the IPv4 stack.
[in] | ControllerHandle | Pointer to child handle over IPv4. |
Definition at line 41 of file PxeBcDriver.c.
EFI_HANDLE PxeBcGetNicByIp6Children | ( | IN EFI_HANDLE | ControllerHandle | ) |
Get the Nic handle using any child handle in the IPv6 stack.
[in] | ControllerHandle | Pointer to child handle over IPv6. |
Definition at line 76 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcIp4DriverBindingStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL | ||
) |
Start this driver on ControllerHandle. This service is called by the EFI boot service ConnectController(). In order to make drivers as small as possible, there are a few calling restrictions for this service. ConnectController() must follow these calling restrictions. If any other agent wishes to call Start() it must also follow these calling restrictions.
[in] | This | The pointer to the driver binding protocol. |
[in] | ControllerHandle | The handle of device to be started. |
[in] | RemainingDevicePath | Optional parameter used to pick a specific child device to be started. |
EFI_SUCCESS | This driver is installed to ControllerHandle. |
EFI_ALREADY_STARTED | This driver is already running on ControllerHandle. |
other | This driver does not support this device. |
Definition at line 1703 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcIp4DriverBindingStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE * | ChildHandleBuffer | ||
) |
Stop this driver on ControllerHandle. This service is called by the EFI boot service DisconnectController(). In order to make drivers as small as possible, there are a few calling restrictions for this service. DisconnectController() must follow these calling restrictions. If any other agent wishes to call Stop() it must also follow these calling restrictions.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to stop driver on |
[in] | NumberOfChildren | Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. |
[in] | ChildHandleBuffer | List of Child Handles to Stop. |
EFI_SUCCESS | This driver is removed ControllerHandle |
EFI_DEVICE_ERROR | An unexpected system or network error occurred. |
Others | This driver was not removed from this device. |
Definition at line 1738 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcIp4DriverBindingSupported | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL | ||
) |
Test to see if this driver supports ControllerHandle. This service is called by the EFI boot service ConnectController(). In order to make drivers as small as possible, there are a few calling restrictions for this service. ConnectController() must follow these calling restrictions. If any other agent wishes to call Supported() it must also follow these calling restrictions.
[in] | This | The pointer to the driver binding protocol. |
[in] | ControllerHandle | The handle of device to be tested. |
[in] | RemainingDevicePath | Optional parameter used to pick a specific child device to be started. |
EFI_SUCCESS | This driver supports this device. |
EFI_UNSUPPORTED | This driver does not support this device. |
Definition at line 1669 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcIp6DriverBindingStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL | ||
) |
Start this driver on ControllerHandle. This service is called by the EFI boot service ConnectController(). In order to make drivers as small as possible, there are a few calling restrictions for this service. ConnectController() must follow these calling restrictions. If any other agent wishes to call Start() it must also follow these calling restrictions.
[in] | This | The pointer to the driver binding protocol. |
[in] | ControllerHandle | The handle of device to be started. |
[in] | RemainingDevicePath | Optional parameter used to pick a specific child device to be started. |
EFI_SUCCESS | This driver is installed to ControllerHandle. |
EFI_ALREADY_STARTED | This driver is already running on ControllerHandle. |
other | This driver does not support this device. |
Definition at line 1807 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcIp6DriverBindingStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE * | ChildHandleBuffer | ||
) |
Stop this driver on ControllerHandle. This service is called by the EFI boot service DisconnectController(). In order to make drivers as small as possible, there are a few calling restrictions for this service. DisconnectController() must follow these calling restrictions. If any other agent wishes to call Stop() it must also follow these calling restrictions.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to stop driver on |
[in] | NumberOfChildren | Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. |
[in] | ChildHandleBuffer | List of Child Handles to Stop. |
EFI_SUCCESS | This driver is removed ControllerHandle |
EFI_DEVICE_ERROR | An unexpected system or network error occurred. |
Others | This driver was not removed from this device. |
Definition at line 1842 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcIp6DriverBindingSupported | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL | ||
) |
Test to see if this driver supports ControllerHandle. This service is called by the EFI boot service ConnectController(). In order to make drivers as small as possible, there are a few calling restrictions for this service. ConnectController() must follow these calling restrictions. If any other agent wishes to call Supported() it must also follow these calling restrictions.
[in] | This | The pointer to the driver binding protocol. |
[in] | ControllerHandle | The handle of device to be tested. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to be started. |
EFI_SUCCESS | This driver supports this device. |
EFI_UNSUPPORTED | This driver does not support this device. |
Definition at line 1773 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL, | ||
IN UINT8 | IpVersion | ||
) |
Start this driver on ControllerHandle. This is the worker function for PxeBcIp4(6)DriverBindingStart.
[in] | This | The pointer to the driver binding protocol. |
[in] | ControllerHandle | The handle of device to be started. |
[in] | RemainingDevicePath | Optional parameter used to pick a specific child device to be started. |
[in] | IpVersion | IP_VERSION_4 or IP_VERSION_6. |
EFI_SUCCESS | This driver is installed to ControllerHandle. |
EFI_ALREADY_STARTED | This driver is already running on ControllerHandle. |
other | This driver does not support this device. |
Definition at line 1376 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE * | ChildHandleBuffer, | ||
IN UINT8 | IpVersion | ||
) |
Stop this driver on ControllerHandle. This is the worker function for PxeBcIp4(6)DriverBindingStop.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to stop driver on. |
[in] | NumberOfChildren | Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. |
[in] | ChildHandleBuffer | List of Child Handles to Stop. |
[in] | IpVersion | IP_VERSION_4 or IP_VERSION_6. |
EFI_SUCCESS | This driver was removed ControllerHandle. |
EFI_DEVICE_ERROR | An unexpected system or network error occurred. |
Others | This driver was not removed from this device |
Definition at line 1542 of file PxeBcDriver.c.
EFI_STATUS EFIAPI PxeBcSupported | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL, | ||
IN UINT8 | IpVersion | ||
) |
Test to see if this driver supports ControllerHandle. This is the worker function for PxeBcIp4(6)DriverBindingSupported.
[in] | This | The pointer to the driver binding protocol. |
[in] | ControllerHandle | The handle of device to be tested. |
[in] | RemainingDevicePath | Optional parameter used to pick a specific child device to be started. |
[in] | IpVersion | IP_VERSION_4 or IP_VERSION_6. |
EFI_SUCCESS | This driver supports this device. |
EFI_UNSUPPORTED | This driver does not support this device. |
Definition at line 1299 of file PxeBcDriver.c.
EFI_DRIVER_BINDING_PROTOCOL gPxeBcIp4DriverBinding |
Definition at line 14 of file PxeBcDriver.c.
EFI_DRIVER_BINDING_PROTOCOL gPxeBcIp6DriverBinding |
Definition at line 23 of file PxeBcDriver.c.