TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | _TCP_HEARTBEAT_TIMER |
struct | _TCP_SERVICE_DATA |
struct | _TCP_PROTO_DATA |
Macros | |
#define | TCP_DRIVER_SIGNATURE SIGNATURE_32 ('T', 'C', 'P', 'D') |
#define | TCP_PORT_KNOWN 1024 |
#define | TCP_PORT_USER_RESERVED 65535 |
#define | TCP_SERVICE_FROM_THIS(a) |
Typedefs | |
typedef struct _TCP_HEARTBEAT_TIMER | TCP_HEARTBEAT_TIMER |
typedef struct _TCP_SERVICE_DATA | TCP_SERVICE_DATA |
typedef struct _TCP_PROTO_DATA | TCP_PROTO_DATA |
The prototype of driver binding and service binding protocol for TCP driver.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TcpDriver.h.
#define TCP_DRIVER_SIGNATURE SIGNATURE_32 ('T', 'C', 'P', 'D') |
Definition at line 13 of file TcpDriver.h.
#define TCP_PORT_KNOWN 1024 |
Definition at line 15 of file TcpDriver.h.
#define TCP_PORT_USER_RESERVED 65535 |
Definition at line 16 of file TcpDriver.h.
#define TCP_SERVICE_FROM_THIS | ( | a | ) |
Definition at line 38 of file TcpDriver.h.
EFI_STATUS EFIAPI Tcp4DriverBindingStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL | ||
) |
Start this driver on ControllerHandle.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to bind driver to. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | The driver was added to ControllerHandle. |
EFI_OUT_OF_RESOURCES | There are not enough resources to start the driver. |
other | The driver cannot be added to ControllerHandle. |
Start this driver on ControllerHandle.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to bind driver to. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | The driver is added to ControllerHandle. |
EFI_OUT_OF_RESOURCES | There are not enough resources to start the driver. |
other | The driver cannot be added to ControllerHandle. |
Definition at line 646 of file TcpDriver.c.
EFI_STATUS EFIAPI Tcp4DriverBindingStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE *ChildHandleBuffer | OPTIONAL | ||
) |
Stop this driver on ControllerHandle.
[in] | This | A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance. |
[in] | ControllerHandle | A handle to the device being stopped. The handle must support a bus specific I/O protocol for the driver to use to stop the device. |
[in] | NumberOfChildren | The number of child device handles in ChildHandleBuffer. |
[in] | ChildHandleBuffer | An array of child handles to be freed. May be NULL if NumberOfChildren is 0. |
EFI_SUCCESS | The device was stopped. |
EFI_DEVICE_ERROR | The device could not be stopped due to a device error. |
Definition at line 679 of file TcpDriver.c.
EFI_STATUS EFIAPI Tcp4DriverBindingSupported | ( | 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.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of the device to test. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | This driver supports this device. |
EFI_ALREADY_STARTED | This driver is already running on this device. |
other | This driver does not support this device. |
Test to see if this driver supports ControllerHandle.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to test. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | This driver supports this device. |
EFI_ALREADY_STARTED | This driver is already running on this device. |
other | This driver does not support this device. |
Definition at line 593 of file TcpDriver.c.
EFI_STATUS EFIAPI Tcp6DriverBindingStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath | OPTIONAL | ||
) |
Start this driver on ControllerHandle.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to bind driver to. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | The driver was added to ControllerHandle. |
EFI_OUT_OF_RESOURCES | There are not enough resources to start the driver. |
other | The driver cannot be added to ControllerHandle. |
Start this driver on ControllerHandle.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to bind driver to. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | The driver is added to ControllerHandle. |
EFI_OUT_OF_RESOURCES | There are not enough resources to start the driver. |
other | The driver cannot be added to ControllerHandle. |
Definition at line 763 of file TcpDriver.c.
EFI_STATUS EFIAPI Tcp6DriverBindingStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE *ChildHandleBuffer | OPTIONAL | ||
) |
Stop this driver on ControllerHandle.
[in] | This | A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance. |
[in] | ControllerHandle | A handle to the device being stopped. The handle must support a bus specific I/O protocol for the driver to use to stop the device. |
[in] | NumberOfChildren | The number of child device handles in ChildHandleBuffer. |
[in] | ChildHandleBuffer | An array of child handles to be freed. May be NULL if NumberOfChildren is 0. |
EFI_SUCCESS | The device was stopped. |
EFI_DEVICE_ERROR | The device could not be stopped due to a device error. |
Definition at line 796 of file TcpDriver.c.
EFI_STATUS EFIAPI Tcp6DriverBindingSupported | ( | 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.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of the device to test. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | This driver supports this device. |
EFI_ALREADY_STARTED | This driver is already running on this device. |
other | This driver does not support this device. |
Test to see if this driver supports ControllerHandle.
[in] | This | Protocol instance pointer. |
[in] | ControllerHandle | Handle of device to test. |
[in] | RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | This driver supports this device. |
EFI_ALREADY_STARTED | This driver is already running on this device. |
other | This driver does not support this device. |
Definition at line 710 of file TcpDriver.c.
EFI_STATUS TcpCreateSocketCallback | ( | IN SOCKET * | This, |
IN VOID * | Context | ||
) |
The Callback function called after the TCP socket is created.
[in] | This | Pointer to the socket just created. |
[in] | Context | The context of the socket. |
EFI_SUCCESS | This protocol is installed successfully. |
other | An error occurred. |
The Callback function called after the TCP socket was created.
[in] | This | Pointer to the socket just created |
[in] | Context | Context of the socket |
EFI_SUCCESS | This protocol installed successfully. |
other | An error occurred. |
Definition at line 823 of file TcpDriver.c.
The callback function called before the TCP socket is to be destroyed.
[in] | This | The TCP socket to be destroyed. |
[in] | Context | The context of the socket. |
The callback function called before the TCP socket was to be destroyed.
[in] | This | The TCP socket to be destroyed. |
[in] | Context | The context of the socket. |
Definition at line 892 of file TcpDriver.c.
EFI_STATUS EFIAPI TcpDriverEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The entry point for Tcp driver, used to install Tcp driver on the ImageHandle.
[in] | ImageHandle | The firmware allocated handle for this driver image. |
[in] | SystemTable | Pointer to the EFI system table. |
EFI_SUCCESS | The driver loaded. |
other | The driver did not load. |
The entry point for Tcp driver, which is used to install Tcp driver on the ImageHandle.
[in] | ImageHandle | The firmware allocated handle for this driver image. |
[in] | SystemTable | Pointer to the EFI system table. |
EFI_SUCCESS | The driver loaded. |
other | The driver did not load. |
Definition at line 166 of file TcpDriver.c.
EFI_STATUS EFIAPI TcpServiceBindingCreateChild | ( | IN EFI_SERVICE_BINDING_PROTOCOL * | This, |
IN OUT EFI_HANDLE * | ChildHandle | ||
) |
Creates a child handle with a set of TCP services.
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,out] | 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 946 of file TcpDriver.c.
EFI_STATUS EFIAPI TcpServiceBindingDestroyChild | ( | IN EFI_SERVICE_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | ChildHandle | ||
) |
Destroys a child handle with a set of TCP services.
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 | The 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. |
Destroys a child handle with a set of TCP services.
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 be destroyed. |
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 1021 of file TcpDriver.c.