MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Tcp driver function header.
|
||||
|
||||
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -30,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
Tcp4ServiceBinding, \
|
||||
TCP4_DRIVER_SIGNATURE \
|
||||
)
|
||||
|
||||
|
||||
///
|
||||
/// TCP heartbeat tick timer.
|
||||
///
|
||||
@ -148,32 +148,32 @@ Tcp4DriverEntryPoint (
|
||||
|
||||
/**
|
||||
Tests to see if this driver supports a given controller.
|
||||
|
||||
If a child device is provided, it further tests to see if this driver supports
|
||||
|
||||
If a child device is provided, it further tests to see if this driver supports
|
||||
creating a handle for the specified child device.
|
||||
|
||||
@param This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
|
||||
@param ControllerHandle The handle of the controller to test. This handle
|
||||
must support a protocol interface that supplies
|
||||
@param ControllerHandle The handle of the controller to test. This handle
|
||||
must support a protocol interface that supplies
|
||||
an I/O abstraction to the driver.
|
||||
@param RemainingDevicePath A pointer to the remaining portion of a device path.
|
||||
@param RemainingDevicePath A pointer to the remaining portion of a device path.
|
||||
This parameter is ignored by device drivers, and is optional for bus drivers.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The device specified by ControllerHandle and
|
||||
RemainingDevicePath is supported by the driver
|
||||
RemainingDevicePath is supported by the driver
|
||||
specified by This.
|
||||
@retval EFI_ALREADY_STARTED The device specified by ControllerHandle and
|
||||
RemainingDevicePath is already being managed by
|
||||
RemainingDevicePath is already being managed by
|
||||
the driver specified by This.
|
||||
@retval EFI_ACCESS_DENIED The device specified by ControllerHandle and
|
||||
RemainingDevicePath is already being managed by a
|
||||
different driver or an application that requires
|
||||
RemainingDevicePath is already being managed by a
|
||||
different driver or an application that requires
|
||||
exclusive access.
|
||||
@retval EFI_UNSUPPORTED The device specified by ControllerHandle and
|
||||
RemainingDevicePath is not supported by the driver
|
||||
RemainingDevicePath is not supported by the driver
|
||||
specified by This.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
@ -184,31 +184,31 @@ Tcp4DriverBindingSupported (
|
||||
);
|
||||
|
||||
/**
|
||||
Start this driver on ControllerHandle.
|
||||
|
||||
The Start() function is designed to be invoked from the EFI boot service
|
||||
ConnectController(). As a result, much of the error checking on the parameters
|
||||
to Start() has been moved into this common boot service. It is legal to call
|
||||
Start() from other locations, but the following calling restrictions must be
|
||||
Start this driver on ControllerHandle.
|
||||
|
||||
The Start() function is designed to be invoked from the EFI boot service
|
||||
ConnectController(). As a result, much of the error checking on the parameters
|
||||
to Start() has been moved into this common boot service. It is legal to call
|
||||
Start() from other locations, but the following calling restrictions must be
|
||||
followed or the system behavior will not be deterministic.
|
||||
1. ControllerHandle must be a valid EFI_HANDLE.
|
||||
2. If RemainingDevicePath is not NULL, then it must be a pointer to a naturally
|
||||
2. If RemainingDevicePath is not NULL, then it must be a pointer to a naturally
|
||||
aligned EFI_DEVICE_PATH_PROTOCOL.
|
||||
3. Prior to calling Start(), the Supported() function for the driver specified
|
||||
by This must have been called with the same calling parameters, and Supported()
|
||||
3. Prior to calling Start(), the Supported() function for the driver specified
|
||||
by This must have been called with the same calling parameters, and Supported()
|
||||
must have returned EFI_SUCCESS.
|
||||
|
||||
@param This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
|
||||
@param ControllerHandle The handle of the controller to start. This handle
|
||||
must support a protocol interface that supplies
|
||||
@param ControllerHandle The handle of the controller to start. This handle
|
||||
must support a protocol interface that supplies
|
||||
an I/O abstraction to the driver.
|
||||
@param RemainingDevicePath A pointer to the remaining portion of a device path.
|
||||
This parameter is ignored by device drivers, and is
|
||||
@param RemainingDevicePath A pointer to the remaining portion of a device path.
|
||||
This parameter is ignored by device drivers, and is
|
||||
optional for bus drivers.
|
||||
|
||||
@retval EFI_SUCCESS The device was started.
|
||||
@retval EFI_ALREADY_STARTED The device could not be started due to a device error.
|
||||
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
|
||||
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
|
||||
of resources.
|
||||
|
||||
**/
|
||||
@ -222,25 +222,25 @@ Tcp4DriverBindingStart (
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle.
|
||||
|
||||
The Stop() function is designed to be invoked from the EFI boot service
|
||||
DisconnectController(). As a result, much of the error checking on the parameters
|
||||
to Stop() has been moved into this common boot service. It is legal to call Stop()
|
||||
from other locations, but the following calling restrictions must be followed
|
||||
|
||||
The Stop() function is designed to be invoked from the EFI boot service
|
||||
DisconnectController(). As a result, much of the error checking on the parameters
|
||||
to Stop() has been moved into this common boot service. It is legal to call Stop()
|
||||
from other locations, but the following calling restrictions must be followed
|
||||
or the system behavior will not be deterministic.
|
||||
1. ControllerHandle must be a valid EFI_HANDLE that was used on a previous call
|
||||
1. ControllerHandle must be a valid EFI_HANDLE that was used on a previous call
|
||||
to this same driver's Start() function.
|
||||
2. The first NumberOfChildren handles of ChildHandleBuffer must all be a valid
|
||||
EFI_HANDLE. In addition, all of these handles must have been created in this
|
||||
driver's Start() function, and the Start() function must have called OpenProtocol()
|
||||
EFI_HANDLE. In addition, all of these handles must have been created in this
|
||||
driver's Start() function, and the Start() function must have called OpenProtocol()
|
||||
on ControllerHandle with an Attribute of EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER.
|
||||
|
||||
|
||||
@param This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
|
||||
@param ControllerHandle A handle to the device being stopped. The handle must
|
||||
support a bus specific I/O protocol for the driver
|
||||
@param 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.
|
||||
@param NumberOfChildren The number of child device handles in ChildHandleBuffer.
|
||||
@param ChildHandleBuffer An array of child handles to be freed. May be NULL if
|
||||
@param ChildHandleBuffer An array of child handles to be freed. May be NULL if
|
||||
NumberOfChildren is 0.
|
||||
|
||||
@retval EFI_SUCCESS The device was stopped.
|
||||
@ -257,15 +257,15 @@ Tcp4DriverBindingStop (
|
||||
);
|
||||
|
||||
/**
|
||||
Open Ip4 and device path protocols for a created socket, and insert it in
|
||||
Open Ip4 and device path protocols for a created socket, and insert it in
|
||||
socket list.
|
||||
|
||||
|
||||
@param This Pointer to the socket just created
|
||||
@param Context Context of the socket
|
||||
|
||||
|
||||
@retval EFI_SUCCESS This protocol is installed successfully.
|
||||
@retval other Some error occured.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
Tcp4CreateSocketCallback (
|
||||
@ -274,11 +274,11 @@ Tcp4CreateSocketCallback (
|
||||
);
|
||||
|
||||
/**
|
||||
Close Ip4 and device path protocols for a socket, and remove it from socket list.
|
||||
|
||||
Close Ip4 and device path protocols for a socket, and remove it from socket list.
|
||||
|
||||
@param This Pointer to the socket to be removed
|
||||
@param Context Context of the socket
|
||||
|
||||
|
||||
**/
|
||||
VOID
|
||||
Tcp4DestroySocketCallback (
|
||||
@ -288,15 +288,15 @@ Tcp4DestroySocketCallback (
|
||||
|
||||
/**
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
@param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
|
||||
@param 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
|
||||
@param 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.
|
||||
|
||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||
@ -315,22 +315,22 @@ Tcp4ServiceBindingCreateChild (
|
||||
|
||||
/**
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
@param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
|
||||
@param ChildHandle Handle of the child to destroy
|
||||
|
||||
@retval EFI_SUCCES The protocol was removed from ChildHandle.
|
||||
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is
|
||||
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is
|
||||
being removed.
|
||||
@retval EFI_INVALID_PARAMETER Child handle is NULL.
|
||||
@retval EFI_ACCESS_DENIED The protocol could not be removed from the ChildHandle
|
||||
because its services are being used.
|
||||
@retval other The child handle was not destroyed.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
|
Reference in New Issue
Block a user