]> git.proxmox.com Git - mirror_edk2.git/commitdiff
remove some comments.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 1 Mar 2010 08:00:28 +0000 (08:00 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 1 Mar 2010 08:00:28 +0000 (08:00 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10141 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Protocol/Ip6.h
MdePkg/Include/Protocol/Mtftp4.h
MdePkg/Include/Protocol/Mtftp6.h
MdePkg/Include/Protocol/Tcp4.h
MdePkg/Include/Protocol/Tcp6.h

index 83cd4925344f56bca0766f3eaa4bf8158250e067..70ffe265d1b183df588d485a61b60b49217ae778 100644 (file)
@@ -9,18 +9,18 @@
   which includes support for Neighbor Discovery Protocol (ND), Multicast\r
   Listener Discovery Protocol (MLD), and a subset of the Internet Control\r
   Message Protocol (ICMPv6).\r
-  \r
-  Copyright (c) 2008 - 2010, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.    \r
+  Copyright (c) 2008 - 2010, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-  @par Revision Reference:          \r
-  This Protocol is introduced in UEFI Specification 2.2       \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+  @par Revision Reference:\r
+  This Protocol is introduced in UEFI Specification 2.2\r
 \r
 **/\r
 \r
 typedef struct _EFI_IP6_PROTOCOL EFI_IP6_PROTOCOL;\r
 \r
 ///\r
-/// EFI_IP6_ADDRESS_PAIR \r
-/// which is not defined in the UEFI 2.3 Specification.\r
+/// EFI_IP6_ADDRESS_PAIR\r
 ///\r
-typedef struct{ \r
+typedef struct{\r
   ///\r
   /// The EFI IPv6 Protocol instance handle that is using this address/prefix pair.\r
   ///\r
@@ -59,11 +58,10 @@ typedef struct{
   /// The length of the prefix associated with the Ip6Address.\r
   ///\r
   UINT8               PrefixLength;\r
-} EFI_IP6_ADDRESS_PAIR; \r
+} EFI_IP6_ADDRESS_PAIR;\r
 \r
 ///\r
 /// EFI_IP6_VARIABLE_DATA\r
-/// which is not defined in the UEFI 2.3 Specification.\r
 ///\r
 typedef struct {\r
   ///\r
@@ -114,12 +112,12 @@ typedef struct {
 #define ICMP_V6_NO_ROUTE_TO_DEST                 0x0\r
 #define ICMP_V6_COMM_PROHIBITED                  0x1\r
 #define ICMP_V6_BEYOND_SCOPE                     0x2\r
-#define ICMP_V6_ADDR_UNREACHABLE                 0x3 \r
+#define ICMP_V6_ADDR_UNREACHABLE                 0x3\r
 #define ICMP_V6_PORT_UNREACHABLE                 0x4\r
 #define ICMP_V6_SOURCE_ADDR_FAILED               0x5\r
 #define ICMP_V6_ROUTE_REJECTED                   0x6\r
 ///@}\r
-       \r
+\r
 ///\r
 /// ICMPv6 code definitions for ICMP_V6_TIME_EXCEEDED\r
 ///\r
@@ -127,7 +125,7 @@ typedef struct {
 #define ICMP_V6_TIMEOUT_HOP_LIMIT                0x0\r
 #define ICMP_V6_TIMEOUT_REASSEMBLE               0x1\r
 ///@}\r
-       \r
+\r
 ///\r
 /// ICMPv6 code definitions for ICMP_V6_PARAMETER_PROBLEM\r
 ///\r
@@ -142,82 +140,82 @@ typedef struct {
 /// is used to report and change IPv6 session parameters.\r
 ///\r
 typedef struct {\r
-  /// \r
-  /// For the IPv6 packet to send and receive, this is the default value \r
-  /// of the 'Next Header' field in the last IPv6 extension header or in \r
-  /// the IPv6 header if there are no extension headers. Ignored when \r
+  ///\r
+  /// For the IPv6 packet to send and receive, this is the default value\r
+  /// of the 'Next Header' field in the last IPv6 extension header or in\r
+  /// the IPv6 header if there are no extension headers. Ignored when\r
   /// AcceptPromiscuous is TRUE.\r
-  /// \r
+  ///\r
   UINT8                   DefaultProtocol;\r
-  /// \r
-  /// Set to TRUE to receive all IPv6 packets that get through the \r
-  /// receive filters.  \r
-  /// Set to FALSE to receive only the DefaultProtocol IPv6 \r
-  /// packets that get through the receive filters. Ignored when \r
+  ///\r
+  /// Set to TRUE to receive all IPv6 packets that get through the\r
+  /// receive filters.\r
+  /// Set to FALSE to receive only the DefaultProtocol IPv6\r
+  /// packets that get through the receive filters. Ignored when\r
   /// AcceptPromiscuous is TRUE.\r
-  /// \r
+  ///\r
   BOOLEAN                 AcceptAnyProtocol;\r
-  /// \r
-  /// Set to TRUE to receive ICMP error report packets. Ignored when \r
+  ///\r
+  /// Set to TRUE to receive ICMP error report packets. Ignored when\r
   /// AcceptPromiscuous or AcceptAnyProtocol is TRUE.\r
-  /// \r
+  ///\r
   BOOLEAN                 AcceptIcmpErrors;\r
-  /// \r
-  /// Set to TRUE to receive all IPv6 packets that are sent to any \r
-  /// hardware address or any protocol address. Set to FALSE to stop \r
+  ///\r
+  /// Set to TRUE to receive all IPv6 packets that are sent to any\r
+  /// hardware address or any protocol address. Set to FALSE to stop\r
   /// receiving all promiscuous IPv6 packets.\r
-  /// \r
+  ///\r
   BOOLEAN                 AcceptPromiscuous;\r
-  /// \r
-  /// The destination address of the packets that will be transmitted. \r
+  ///\r
+  /// The destination address of the packets that will be transmitted.\r
   /// Ignored if it is unspecified.\r
-  /// \r
+  ///\r
   EFI_IPv6_ADDRESS        DestinationAddress;\r
-  /// \r
-  /// The station IPv6 address that will be assigned to this EFI IPv6 \r
-  /// Protocol instance. This field can be set and changed only when \r
-  /// the EFI IPv6 driver is transitioning from the stopped to the started \r
-  /// states. If the StationAddress is specified, the EFI IPv6 Protocol \r
-  /// driver will deliver only incoming IPv6 packets whose destination \r
-  /// matches this IPv6 address exactly. The StationAddress is required \r
-  /// to be one of currently configured IPv6 addresses. An address \r
-  /// containing all zeroes is also accepted as a special case. Under this \r
-  /// situation, the IPv6 driver is responsible for binding a source \r
-  /// address to this EFI IPv6 protocol instance according to the source \r
-  /// address selection algorithm. Only incoming packets destined to \r
-  /// the selected address will be delivered to the user.  And the \r
-  /// selected station address can be retrieved through later \r
-  /// GetModeData() call. If no address is available for selecting, \r
-  /// EFI_NO_MAPPING will be returned, and the station address will \r
-  /// only be successfully bound to this EFI IPv6 protocol instance \r
+  ///\r
+  /// The station IPv6 address that will be assigned to this EFI IPv6\r
+  /// Protocol instance. This field can be set and changed only when\r
+  /// the EFI IPv6 driver is transitioning from the stopped to the started\r
+  /// states. If the StationAddress is specified, the EFI IPv6 Protocol\r
+  /// driver will deliver only incoming IPv6 packets whose destination\r
+  /// matches this IPv6 address exactly. The StationAddress is required\r
+  /// to be one of currently configured IPv6 addresses. An address\r
+  /// containing all zeroes is also accepted as a special case. Under this\r
+  /// situation, the IPv6 driver is responsible for binding a source\r
+  /// address to this EFI IPv6 protocol instance according to the source\r
+  /// address selection algorithm. Only incoming packets destined to\r
+  /// the selected address will be delivered to the user.  And the\r
+  /// selected station address can be retrieved through later\r
+  /// GetModeData() call. If no address is available for selecting,\r
+  /// EFI_NO_MAPPING will be returned, and the station address will\r
+  /// only be successfully bound to this EFI IPv6 protocol instance\r
   /// after IP6ModeData.IsConfigured changed to TRUE.\r
-  /// \r
-  EFI_IPv6_ADDRESS        StationAddress; \r
-  /// \r
-  /// TrafficClass field in transmitted IPv6 packets. Default value \r
+  ///\r
+  EFI_IPv6_ADDRESS        StationAddress;\r
+  ///\r
+  /// TrafficClass field in transmitted IPv6 packets. Default value\r
   /// is zero.\r
-  /// \r
+  ///\r
   UINT8                   TrafficClass;\r
-  /// \r
-  /// HopLimit field in transmitted IPv6 packets. \r
-  /// \r
+  ///\r
+  /// HopLimit field in transmitted IPv6 packets.\r
+  ///\r
   UINT8                   HopLimit;\r
-  /// \r
-  /// FlowLabel field in transmitted IPv6 packets. Default value is \r
+  ///\r
+  /// FlowLabel field in transmitted IPv6 packets. Default value is\r
   /// zero.\r
-  /// \r
+  ///\r
   UINT32                  FlowLabel;\r
-  /// \r
-  /// The timer timeout value (number of microseconds) for the \r
-  /// receive timeout event to be associated with each assembled \r
+  ///\r
+  /// The timer timeout value (number of microseconds) for the\r
+  /// receive timeout event to be associated with each assembled\r
   /// packet. Zero means do not drop assembled packets.\r
-  /// \r
+  ///\r
   UINT32                  ReceiveTimeout;\r
-  /// \r
-  /// The timer timeout value (number of microseconds) for the \r
-  /// transmit timeout event to be associated with each outgoing \r
+  ///\r
+  /// The timer timeout value (number of microseconds) for the\r
+  /// transmit timeout event to be associated with each outgoing\r
   /// packet. Zero means do not drop outgoing packets.\r
-  /// \r
+  ///\r
   UINT32                  TransmitTimeout;\r
 } EFI_IP6_CONFIG_DATA;\r
 \r
@@ -226,24 +224,24 @@ typedef struct {
 ///\r
 typedef struct {\r
   EFI_IPv6_ADDRESS        Address;       ///< The IPv6 address.\r
-  UINT8                   PrefixLength;  ///< The length of the prefix associated with the Address. \r
+  UINT8                   PrefixLength;  ///< The length of the prefix associated with the Address.\r
 } EFI_IP6_ADDRESS_INFO;\r
 \r
 ///\r
 /// EFI_IP6_ROUTE_TABLE\r
 /// is the entry structure that is used in routing tables\r
-/// \r
+///\r
 typedef struct {\r
   ///\r
-  /// The IPv6 address of the gateway to be used as the next hop for \r
-  /// packets to this prefix. If the IPv6 address is all zeros, then the \r
+  /// The IPv6 address of the gateway to be used as the next hop for\r
+  /// packets to this prefix. If the IPv6 address is all zeros, then the\r
   /// prefix is on-link.\r
   ///\r
-  EFI_IPv6_ADDRESS        Gateway;    \r
+  EFI_IPv6_ADDRESS        Gateway;\r
   ///\r
   /// The destination prefix to be routed.\r
   ///\r
-  EFI_IPv6_ADDRESS        Destination;  \r
+  EFI_IPv6_ADDRESS        Destination;\r
   ///\r
   /// The length of the prefix associated with the Destination.\r
   ///\r
@@ -255,31 +253,31 @@ typedef struct {
 ///\r
 typedef enum {\r
   ///\r
-  /// Address resolution is being performed on this entry. Specially, \r
-  /// Neighbor Solicitation has been sent to the solicited-node \r
-  /// multicast address of the target, but corresponding Neighbor \r
+  /// Address resolution is being performed on this entry. Specially,\r
+  /// Neighbor Solicitation has been sent to the solicited-node\r
+  /// multicast address of the target, but corresponding Neighbor\r
   /// Advertisement has not been received.\r
   ///\r
-  EfiNeighborInComplete, \r
+  EfiNeighborInComplete,\r
   ///\r
-  /// Positive confirmation was received that the forward path to the \r
+  /// Positive confirmation was received that the forward path to the\r
   /// neighbor was functioning properly.\r
   ///\r
   EfiNeighborReachable,\r
   ///\r
-  ///Reachable Time has elapsed since the last positive confirmation \r
-  ///was received. In this state, the forward path to the neighbor was \r
+  ///Reachable Time has elapsed since the last positive confirmation\r
+  ///was received. In this state, the forward path to the neighbor was\r
   ///functioning properly.\r
   ///\r
   EfiNeighborStale,\r
   ///\r
-  /// This state is an optimization that gives upper-layer protocols \r
+  /// This state is an optimization that gives upper-layer protocols\r
   /// additional time to provide reachability confirmation.\r
   ///\r
   EfiNeighborDelay,\r
   ///\r
-  /// A reachability confirmation is actively sought by retransmitting \r
-  /// Neighbor Solicitations every RetransTimer milliseconds until a \r
+  /// A reachability confirmation is actively sought by retransmitting\r
+  /// Neighbor Solicitations every RetransTimer milliseconds until a\r
   /// reachability confirmation is received.\r
   ///\r
   EfiNeighborProbe\r
@@ -287,107 +285,107 @@ typedef enum {
 \r
 ///\r
 /// EFI_IP6_NEIGHBOR_CACHE\r
-/// is the entry structure that is used in neighbor cache. It records a set \r
-/// of entries about individual neighbors to which traffic has been sent recently. \r
+/// is the entry structure that is used in neighbor cache. It records a set\r
+/// of entries about individual neighbors to which traffic has been sent recently.\r
 ///\r
 typedef struct {\r
   EFI_IPv6_ADDRESS        Neighbor;    ///< The on-link unicast/anycast IP address of the neighbor.\r
-  EFI_MAC_ADDRESS         LinkAddress; ///< Link-layer address of the neighbor. \r
-  EFI_IP6_NEIGHBOR_STATE  State;       ///< State of this neighbor cache entry. \r
+  EFI_MAC_ADDRESS         LinkAddress; ///< Link-layer address of the neighbor.\r
+  EFI_IP6_NEIGHBOR_STATE  State;       ///< State of this neighbor cache entry.\r
 } EFI_IP6_NEIGHBOR_CACHE;\r
 \r
 ///\r
 /// EFI_IP6_ICMP_TYPE\r
-/// is used to describe those ICMP messages that are supported by this EFI \r
+/// is used to describe those ICMP messages that are supported by this EFI\r
 /// IPv6 Protocol driver.\r
 ///\r
 typedef struct {\r
   UINT8                   Type;   ///< The type of ICMP message.\r
   UINT8                   Code;   ///< The code of the ICMP message.\r
-} EFI_IP6_ICMP_TYPE;                       \r
+} EFI_IP6_ICMP_TYPE;\r
 \r
 ///\r
 /// EFI_IP6_MODE_DATA\r
 ///\r
-typedef struct {  \r
+typedef struct {\r
   ///\r
-  /// Set to TRUE after this EFI IPv6 Protocol instance is started. \r
-  /// All other fields in this structure are undefined until this field is TRUE. \r
+  /// Set to TRUE after this EFI IPv6 Protocol instance is started.\r
+  /// All other fields in this structure are undefined until this field is TRUE.\r
   /// Set to FALSE when the EFI IPv6 Protocol instance is stopped.\r
-  /// \r
+  ///\r
   BOOLEAN                 IsStarted;\r
   ///\r
   /// The maximum packet size, in bytes, of the packet which the upper layer driver could feed.\r
   ///\r
   UINT32                  MaxPacketSize;\r
-  /// \r
+  ///\r
   /// Current configuration settings. Undefined until IsStarted is TRUE.\r
   ///\r
   EFI_IP6_CONFIG_DATA     ConfigData;\r
-  /// \r
-  /// Set to TRUE when the EFI IPv6 Protocol instance is configured. \r
-  /// The instance is configured when it has a station address and \r
-  /// corresponding prefix length. \r
+  ///\r
+  /// Set to TRUE when the EFI IPv6 Protocol instance is configured.\r
+  /// The instance is configured when it has a station address and\r
+  /// corresponding prefix length.\r
   /// Set to FALSE when the EFI IPv6 Protocol instance is not configured.\r
   ///\r
   BOOLEAN                 IsConfigured;\r
-  /// \r
-  /// Number of configured IPv6 addresses on this interface. \r
+  ///\r
+  /// Number of configured IPv6 addresses on this interface.\r
   ///\r
   UINT32                  AddressCount;\r
-  /// \r
-  /// List of currently configured IPv6 addresses and corresponding \r
-  /// prefix lengths assigned to this interface. It is caller's \r
+  ///\r
+  /// List of currently configured IPv6 addresses and corresponding\r
+  /// prefix lengths assigned to this interface. It is caller's\r
   /// responsibility to free this buffer.\r
-  /// \r
+  ///\r
   EFI_IP6_ADDRESS_INFO    *AddressList;\r
-  /// \r
-  /// Number of joined multicast groups. Undefined until \r
+  ///\r
+  /// Number of joined multicast groups. Undefined until\r
   /// IsConfigured is TRUE.\r
   ///\r
   UINT32                  GroupCount;\r
-  /// \r
-  /// List of joined multicast group addresses. It is caller's \r
-  /// responsibility to free this buffer. Undefined until \r
+  ///\r
+  /// List of joined multicast group addresses. It is caller's\r
+  /// responsibility to free this buffer. Undefined until\r
   /// IsConfigured is TRUE.\r
   ///\r
   EFI_IPv6_ADDRESS        *GroupTable;\r
-  /// \r
-  /// Number of entries in the routing table. Undefined until \r
+  ///\r
+  /// Number of entries in the routing table. Undefined until\r
   /// IsConfigured is TRUE.\r
   ///\r
   UINT32                  RouteCount;\r
-  /// \r
+  ///\r
   /// Routing table entries. It is caller's responsibility to free this buffer.\r
   ///\r
   EFI_IP6_ROUTE_TABLE     *RouteTable;\r
   ///\r
-  /// Number of entries in the neighbor cache. Undefined until \r
+  /// Number of entries in the neighbor cache. Undefined until\r
   /// IsConfigured is TRUE.\r
   ///\r
   UINT32                  NeighborCount;\r
-  /// \r
-  /// Neighbor cache entries. It is caller's responsibility to free this \r
-  /// buffer. Undefined until IsConfigured is TRUE. \r
   ///\r
-  EFI_IP6_NEIGHBOR_CACHE  *NeighborCache;  \r
-  /// \r
-  /// Number of entries in the prefix table. Undefined until \r
+  /// Neighbor cache entries. It is caller's responsibility to free this\r
+  /// buffer. Undefined until IsConfigured is TRUE.\r
+  ///\r
+  EFI_IP6_NEIGHBOR_CACHE  *NeighborCache;\r
+  ///\r
+  /// Number of entries in the prefix table. Undefined until\r
   /// IsConfigured is TRUE.\r
   ///\r
   UINT32                  PrefixCount;\r
-  /// \r
-  /// On-link Prefix table entries. It is caller's responsibility to free this \r
-  /// buffer. Undefined until IsConfigured is TRUE. \r
+  ///\r
+  /// On-link Prefix table entries. It is caller's responsibility to free this\r
+  /// buffer. Undefined until IsConfigured is TRUE.\r
   ///\r
   EFI_IP6_ADDRESS_INFO    *PrefixTable;\r
-  /// \r
+  ///\r
   /// Number of entries in the supported ICMP types list.\r
   ///\r
   UINT32                  IcmpTypeCount;\r
-  /// \r
-  /// Array of ICMP types and codes that are supported by this EFI \r
-  /// IPv6 Protocol driver. It is caller's responsibility to free this \r
+  ///\r
+  /// Array of ICMP types and codes that are supported by this EFI\r
+  /// IPv6 Protocol driver. It is caller's responsibility to free this\r
   /// buffer.\r
   ///\r
   EFI_IP6_ICMP_TYPE       *IcmpTypeList;\r
@@ -403,7 +401,7 @@ typedef struct _EFI_IP6_HEADER {
   UINT8                   TrafficClassH:4;\r
   UINT8                   Version:4;\r
   UINT8                   FlowLabelH:4;\r
-  UINT8                   TrafficClassL:4;  \r
+  UINT8                   TrafficClassL:4;\r
   UINT16                  FlowLabelL;\r
   UINT16                  PayloadLength;\r
   UINT8                   NextHeader;\r
@@ -415,7 +413,7 @@ typedef struct _EFI_IP6_HEADER {
 \r
 ///\r
 /// EFI_IP6_FRAGMENT_DATA\r
-/// describes the location and length of the IPv6 packet \r
+/// describes the location and length of the IPv6 packet\r
 /// fragment to transmit or that has been received.\r
 ///\r
 typedef struct _EFI_IP6_FRAGMENT_DATA {\r
@@ -427,93 +425,93 @@ typedef struct _EFI_IP6_FRAGMENT_DATA {
 /// EFI_IP6_RECEIVE_DATA\r
 ///\r
 typedef struct _EFI_IP6_RECEIVE_DATA {\r
-  /// \r
-  /// Time when the EFI IPv6 Protocol driver accepted the packet. \r
+  ///\r
+  /// Time when the EFI IPv6 Protocol driver accepted the packet.\r
   /// Ignored if it is zero.\r
-  /// \r
+  ///\r
   EFI_TIME                TimeStamp;\r
-  /// \r
-  /// After this event is signaled, the receive data structure is released \r
+  ///\r
+  /// After this event is signaled, the receive data structure is released\r
   /// and must not be referenced.\r
-  /// \r
+  ///\r
   EFI_EVENT               RecycleSignal;\r
   ///\r
-  ///Length of the IPv6 packet headers, including both the IPv6 \r
-  ///header and any extension headers. \r
+  ///Length of the IPv6 packet headers, including both the IPv6\r
+  ///header and any extension headers.\r
   ///\r
   UINT32                  HeaderLength;\r
-  /// \r
-  /// Pointer to the IPv6 packet header. If the IPv6 packet was \r
-  /// fragmented, this argument is a pointer to the header in the first \r
-  /// fragment. \r
-  /// \r
+  ///\r
+  /// Pointer to the IPv6 packet header. If the IPv6 packet was\r
+  /// fragmented, this argument is a pointer to the header in the first\r
+  /// fragment.\r
+  ///\r
   EFI_IP6_HEADER          *Header;\r
-  /// \r
-  /// Sum of the lengths of IPv6 packet buffers in FragmentTable. May \r
+  ///\r
+  /// Sum of the lengths of IPv6 packet buffers in FragmentTable. May\r
   /// be zero.\r
-  /// \r
+  ///\r
   UINT32                  DataLength;\r
-  /// \r
+  ///\r
   /// Number of IPv6 payload fragments. May be zero.\r
-  /// \r
+  ///\r
   UINT32                  FragmentCount;\r
-  /// \r
+  ///\r
   /// Array of payload fragment lengths and buffer pointers.\r
-  /// \r
+  ///\r
   EFI_IP6_FRAGMENT_DATA   FragmentTable[1];\r
 } EFI_IP6_RECEIVE_DATA;\r
 \r
 ///\r
 /// EFI_IP6_OVERRIDE_DATA\r
-/// The information and flags in the override data structure will override \r
-/// default parameters or settings for one Transmit() function call.                                                                     \r
+/// The information and flags in the override data structure will override\r
+/// default parameters or settings for one Transmit() function call.\r
 ///\r
 typedef struct _EFI_IP6_OVERRIDE_DATA {\r
   UINT8                   Protocol;   ///< Protocol type override.\r
   UINT8                   HopLimit;   ///< Hop-Limit override.\r
   UINT32                  FlowLabel;  ///< Flow-Label override.\r
 } EFI_IP6_OVERRIDE_DATA;\r
-          \r
+\r
 ///\r
-/// EFI_IP6_TRANSMIT_DATA \r
+/// EFI_IP6_TRANSMIT_DATA\r
 ///\r
-typedef struct _EFI_IP6_TRANSMIT_DATA {   \r
-  /// \r
-  /// The destination IPv6 address.  If it is unspecified, \r
+typedef struct _EFI_IP6_TRANSMIT_DATA {\r
+  ///\r
+  /// The destination IPv6 address.  If it is unspecified,\r
   /// ConfigData.DestinationAddress will be used instead.\r
-  /// \r
+  ///\r
   EFI_IPv6_ADDRESS        DestinationAddress;\r
-  /// \r
+  ///\r
   /// If not NULL, the IPv6 transmission control override data.\r
-  /// \r
+  ///\r
   EFI_IP6_OVERRIDE_DATA   *OverrideData;\r
-  /// \r
-  /// Total length in byte of the IPv6 extension headers specified in \r
+  ///\r
+  /// Total length in byte of the IPv6 extension headers specified in\r
   /// ExtHdrs.\r
-  /// \r
+  ///\r
   UINT32                  ExtHdrsLength;\r
-  /// \r
-  /// Pointer to the IPv6 extension headers. The IP layer will append \r
-  /// the required extension headers if they are not specified by \r
+  ///\r
+  /// Pointer to the IPv6 extension headers. The IP layer will append\r
+  /// the required extension headers if they are not specified by\r
   /// ExtHdrs. Ignored if ExtHdrsLength is zero.\r
-  /// \r
+  ///\r
   VOID                    *ExtHdrs;\r
-  /// \r
-  /// The protocol of first extension header in ExtHdrs. Ignored if \r
+  ///\r
+  /// The protocol of first extension header in ExtHdrs. Ignored if\r
   /// ExtHdrsLength is zero.\r
-  /// \r
+  ///\r
   UINT8                   NextHeader;\r
-  ///   \r
+  ///\r
   /// Total length in bytes of the FragmentTable data to transmit.\r
-  /// \r
+  ///\r
   UINT32                  DataLength;\r
-  /// \r
+  ///\r
   /// Number of entries in the fragment data table.\r
-  /// \r
+  ///\r
   UINT32                  FragmentCount;\r
-  /// \r
+  ///\r
   /// Start of the fragment data table.\r
-  /// \r
+  ///\r
   EFI_IP6_FRAGMENT_DATA   FragmentTable[1];\r
 } EFI_IP6_TRANSMIT_DATA;\r
 \r
@@ -523,20 +521,20 @@ typedef struct _EFI_IP6_TRANSMIT_DATA {
 ///\r
 typedef struct {\r
   ///\r
-  /// This Event will be signaled after the Status field is updated by \r
+  /// This Event will be signaled after the Status field is updated by\r
   /// the EFI IPv6 Protocol driver. The type of Event must be EFI_NOTIFY_SIGNAL.\r
   ///\r
   EFI_EVENT               Event;\r
   ///\r
   /// Will be set to one of the following values:\r
-  /// - EFI_SUCCESS:  The receive or transmit completed \r
+  /// - EFI_SUCCESS:  The receive or transmit completed\r
   ///   successfully.\r
   /// - EFI_ABORTED:  The receive or transmit was aborted\r
   /// - EFI_TIMEOUT:  The transmit timeout expired.\r
   /// - EFI_ICMP_ERROR:  An ICMP error packet was received.\r
-  /// - EFI_DEVICE_ERROR:  An unexpected system or network \r
+  /// - EFI_DEVICE_ERROR:  An unexpected system or network\r
   ///   error occurred.\r
-  /// - EFI_SECURITY_VIOLATION: The transmit or receive was \r
+  /// - EFI_SECURITY_VIOLATION: The transmit or receive was\r
   ///   failed because of an IPsec policy check.\r
   /// - EFI_NO_MEDIA: There was a media error.\r
   ///\r
@@ -555,22 +553,22 @@ typedef struct {
 \r
 /**\r
   Gets the current operational settings for this instance of the EFI IPv6 Protocol driver.\r
-  \r
-  The GetModeData() function returns the current operational mode data for this driver instance. \r
-  The data fields in EFI_IP6_MODE_DATA are read only. This function is used optionally to \r
+\r
+  The GetModeData() function returns the current operational mode data for this driver instance.\r
+  The data fields in EFI_IP6_MODE_DATA are read only. This function is used optionally to\r
   retrieve the operational mode data of underlying networks or drivers..\r
 \r
   @param[in]  This               Pointer to the EFI_IP6_PROTOCOL instance.\r
   @param[out] Ip6ModeData        Pointer to the EFI IPv6 Protocol mode data structure.\r
   @param[out] MnpConfigData      Pointer to the managed network configuration data structure.\r
   @param[out] SnpModeData        Pointer to the simple network mode data structure.\r
-                                 \r
+\r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER  This is NULL.\r
   @retval EFI_OUT_OF_RESOURCES   The required mode data could not be allocated.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_GET_MODE_DATA)(\r
   IN EFI_IP6_PROTOCOL                 *This,\r
@@ -581,51 +579,51 @@ EFI_STATUS
 \r
 /**\r
   Assigns an IPv6 address and subnet mask to this EFI IPv6 Protocol driver instance.\r
-  \r
-  The Configure() function is used to set, change, or reset the operational parameters and filter \r
-  settings for this EFI IPv6 Protocol instance. Until these parameters have been set, no network traffic \r
-  can be sent or received by this instance. Once the parameters have been reset (by calling this \r
-  function with Ip6ConfigData set to NULL), no more traffic can be sent or received until these \r
-  parameters have been set again. Each EFI IPv6 Protocol instance can be started and stopped \r
-  independently of each other by enabling or disabling their receive filter settings with the \r
+\r
+  The Configure() function is used to set, change, or reset the operational parameters and filter\r
+  settings for this EFI IPv6 Protocol instance. Until these parameters have been set, no network traffic\r
+  can be sent or received by this instance. Once the parameters have been reset (by calling this\r
+  function with Ip6ConfigData set to NULL), no more traffic can be sent or received until these\r
+  parameters have been set again. Each EFI IPv6 Protocol instance can be started and stopped\r
+  independently of each other by enabling or disabling their receive filter settings with the\r
   Configure() function.\r
-  \r
-  If Ip6ConfigData.StationAddress is a valid non-zero IPv6 unicast address, it is required \r
-  to be one of the currently configured IPv6 addresses list in the EFI IPv6 drivers, or else \r
-  EFI_INVALID_PARAMETER will be returned. If Ip6ConfigData.StationAddress is \r
-  unspecified, the IPv6 driver will bind a source address according to the source address selection \r
-  algorithm. Clients could frequently call GetModeData() to check get currently configured IPv6 \r
-  address list in the EFI IPv6 driver. If both Ip6ConfigData.StationAddress and \r
-  Ip6ConfigData.Destination are unspecified, when transmitting the packet afterwards, the \r
+\r
+  If Ip6ConfigData.StationAddress is a valid non-zero IPv6 unicast address, it is required\r
+  to be one of the currently configured IPv6 addresses list in the EFI IPv6 drivers, or else\r
+  EFI_INVALID_PARAMETER will be returned. If Ip6ConfigData.StationAddress is\r
+  unspecified, the IPv6 driver will bind a source address according to the source address selection\r
+  algorithm. Clients could frequently call GetModeData() to check get currently configured IPv6\r
+  address list in the EFI IPv6 driver. If both Ip6ConfigData.StationAddress and\r
+  Ip6ConfigData.Destination are unspecified, when transmitting the packet afterwards, the\r
   source address filled in each outgoing IPv6 packet is decided based on the destination of this packet. .\r
-  \r
-  If operational parameters are reset or changed, any pending transmit and receive requests will be \r
-  cancelled. Their completion token status will be set to EFI_ABORTED and their events will be \r
+\r
+  If operational parameters are reset or changed, any pending transmit and receive requests will be\r
+  cancelled. Their completion token status will be set to EFI_ABORTED and their events will be\r
   signaled.\r
 \r
   @param[in]  This               Pointer to the EFI_IP6_PROTOCOL instance.\r
   @param[in]  Ip6ConfigData      Pointer to the EFI IPv6 Protocol configuration data structure.\r
-                                 \r
+\r
   @retval EFI_SUCCESS            The driver instance was successfully opened.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following conditions is TRUE:\r
                                  - This is NULL.\r
-                                 - Ip6ConfigData.StationAddress is neither zero nor \r
+                                 - Ip6ConfigData.StationAddress is neither zero nor\r
                                    a unicast IPv6 address.\r
-                                 - Ip6ConfigData.StationAddress is neither zero nor \r
+                                 - Ip6ConfigData.StationAddress is neither zero nor\r
                                    one of the configured IP addresses in the EFI IPv6 driver.\r
-                                 - Ip6ConfigData.DefaultProtocol is illegal. \r
+                                 - Ip6ConfigData.DefaultProtocol is illegal.\r
   @retval EFI_OUT_OF_RESOURCES   The EFI IPv6 Protocol driver instance data could not be allocated.\r
-  @retval EFI_NO_MAPPING         The IPv6 driver was responsible for choosing a source address for \r
-                                 this instance, but no source address was available for use. \r
-  @retval EFI_ALREADY_STARTED    The interface is already open and must be stopped before the IPv6 \r
+  @retval EFI_NO_MAPPING         The IPv6 driver was responsible for choosing a source address for\r
+                                 this instance, but no source address was available for use.\r
+  @retval EFI_ALREADY_STARTED    The interface is already open and must be stopped before the IPv6\r
                                  address or prefix length can be changed.\r
-  @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred. The EFI IPv6 \r
+  @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred. The EFI IPv6\r
                                  Protocol driver instance is not opened.\r
-  @retval EFI_UNSUPPORTED        Default protocol specified through \r
+  @retval EFI_UNSUPPORTED        Default protocol specified through\r
                                  Ip6ConfigData.DefaulProtocol isn't supported.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_CONFIGURE)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
@@ -634,24 +632,24 @@ EFI_STATUS
 \r
 /**\r
   Joins and leaves multicast groups.\r
-  \r
-  The Groups() function is used to join and leave multicast group sessions. Joining a group will \r
-  enable reception of matching multicast packets. Leaving a group will disable reception of matching \r
+\r
+  The Groups() function is used to join and leave multicast group sessions. Joining a group will\r
+  enable reception of matching multicast packets. Leaving a group will disable reception of matching\r
   multicast packets. Source-Specific Multicast isn't required to be supported.\r
-  \r
+\r
   If JoinFlag is FALSE and GroupAddress is NULL, all joined groups will be left.\r
 \r
   @param[in]  This               Pointer to the EFI_IP6_PROTOCOL instance.\r
   @param[in]  JoinFlag           Set to TRUE to join the multicast group session and FALSE to leave.\r
   @param[in]  GroupAddress       Pointer to the IPv6 multicast address.\r
-                                 \r
+\r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following is TRUE:\r
                                  - This is NULL.\r
                                  - JoinFlag is TRUE and GroupAddress is NULL.\r
                                  - GroupAddress is not NULL and *GroupAddress is\r
-                                   not a multicast IPv6 address.  \r
-                                 - GroupAddress is not NULL and *GroupAddress is in the \r
+                                   not a multicast IPv6 address.\r
+                                 - GroupAddress is not NULL and *GroupAddress is in the\r
                                    range of SSM destination address.\r
   @retval EFI_NOT_STARTED        This instance has not been started.\r
   @retval EFI_OUT_OF_RESOURCES   System resources could not be allocated.\r
@@ -662,7 +660,7 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_GROUPS)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
@@ -674,23 +672,23 @@ EFI_STATUS
   Adds and deletes routing table entries.\r
 \r
   The Routes() function adds a route to or deletes a route from the routing table.\r
-  \r
-  Routes are determined by comparing the leftmost PrefixLength bits of Destination with \r
+\r
+  Routes are determined by comparing the leftmost PrefixLength bits of Destination with\r
   the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the\r
   configured station address.\r
-  \r
-  The default route is added with Destination and PrefixLegth both set to all zeros. The \r
+\r
+  The default route is added with Destination and PrefixLegth both set to all zeros. The\r
   default route matches all destination IPv6 addresses that do not match any other routes.\r
 \r
   All EFI IPv6 Protocol instances share a routing table.\r
-  \r
+\r
   @param[in]  This               Pointer to the EFI_IP6_PROTOCOL instance.\r
-  @param[in]  DeleteRoute        Set to TRUE to delete this route from the routing table. Set to \r
-                                 FALSE to add this route to the routing table. Destination, \r
-                                 PrefixLength and Gateway are used as the key to each \r
+  @param[in]  DeleteRoute        Set to TRUE to delete this route from the routing table. Set to\r
+                                 FALSE to add this route to the routing table. Destination,\r
+                                 PrefixLength and Gateway are used as the key to each\r
                                  route entry.\r
   @param[in]  Destination        The address prefix of the subnet that needs to be routed.\r
-  @param[in]  PrefixLength       The prefix length of Destination. Ignored if Destination \r
+  @param[in]  PrefixLength       The prefix length of Destination. Ignored if Destination\r
                                  is NULL.\r
   @param[in]  GatewayAddress     The unicast gateway IPv6 address for this route.\r
 \r
@@ -698,55 +696,55 @@ EFI_STATUS
   @retval EFI_NOT_STARTED        The driver instance has not been started.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following conditions is TRUE:\r
                                  - This is NULL.\r
-                                 - When DeleteRoute is TRUE, both Destination and \r
+                                 - When DeleteRoute is TRUE, both Destination and\r
                                    GatewayAddress are NULL.\r
-                                 - When DeleteRoute is FALSE, either Destination or \r
+                                 - When DeleteRoute is FALSE, either Destination or\r
                                    GatewayAddress is NULL.\r
                                  - *GatewayAddress is not a valid unicast IPv6 address.\r
-                                 - *GatewayAddress is one of the local configured IPv6 \r
+                                 - *GatewayAddress is one of the local configured IPv6\r
                                    addresses.\r
   @retval EFI_OUT_OF_RESOURCES   Could not add the entry to the routing table.\r
   @retval EFI_NOT_FOUND          This route is not in the routing table (when DeleteRoute is TRUE).\r
   @retval EFI_ACCESS_DENIED      The route is already defined in the routing table (when\r
                                  DeleteRoute is FALSE).\r
-                                 \r
+\r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_ROUTES)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
   IN BOOLEAN                     DeleteRoute,\r
   IN EFI_IPv6_ADDRESS            *Destination OPTIONAL,\r
   IN UINT8                       PrefixLength,\r
-  IN EFI_IPv6_ADDRESS            *GatewayAddress OPTIONAL \r
+  IN EFI_IPv6_ADDRESS            *GatewayAddress OPTIONAL\r
   );\r
 \r
 /**\r
   Add or delete Neighbor cache entries.\r
 \r
-  The Neighbors() function is used to add, update, or delete an entry from neighbor cache. \r
-  IPv6 neighbor cache entries are typically inserted and updated by the network protocol driver as \r
-  network traffic is processed. Most neighbor cache entries will time out and be deleted if the network \r
-  traffic stops. Neighbor cache entries that were inserted by Neighbors() may be static (will not \r
+  The Neighbors() function is used to add, update, or delete an entry from neighbor cache.\r
+  IPv6 neighbor cache entries are typically inserted and updated by the network protocol driver as\r
+  network traffic is processed. Most neighbor cache entries will time out and be deleted if the network\r
+  traffic stops. Neighbor cache entries that were inserted by Neighbors() may be static (will not\r
   timeout) or dynamic (will time out).\r
-       \r
-  The implementation should follow the neighbor cache timeout mechanism which is defined in \r
-  RFC4861. The default neighbor cache timeout value should be tuned for the expected network \r
+\r
+  The implementation should follow the neighbor cache timeout mechanism which is defined in\r
+  RFC4861. The default neighbor cache timeout value should be tuned for the expected network\r
   environment\r
 \r
   @param[in]  This               Pointer to the EFI_IP6_PROTOCOL instance.\r
-  @param[in]  DeleteFlag         Set to TRUE to delete the specified cache entry, set to FALSE to \r
-                                 add (or update, if it already exists and Override is TRUE) the \r
-                                 specified cache entry. TargetIp6Address is used as the key \r
+  @param[in]  DeleteFlag         Set to TRUE to delete the specified cache entry, set to FALSE to\r
+                                 add (or update, if it already exists and Override is TRUE) the\r
+                                 specified cache entry. TargetIp6Address is used as the key\r
                                  to find the requested cache entry.\r
   @param[in]  TargetIp6Address   Pointer to Target IPv6 address.\r
-  @param[in]  TargetLinkAddress  Pointer to link-layer address of the target. Ignored if NULL. \r
-  @param[in]  Timeout            Time in 100-ns units that this entry will remain in the neighbor \r
-                                 cache, it will be deleted after Timeout. A value of zero means that \r
-                                 the entry is permanent. A non-zero value means that the entry is \r
-                                 dynamic. \r
-  @param[in]  Override           If TRUE, the cached link-layer address of the matching entry will \r
-                                 be overridden and updated; if FALSE, EFI_ACCESS_DENIED \r
+  @param[in]  TargetLinkAddress  Pointer to link-layer address of the target. Ignored if NULL.\r
+  @param[in]  Timeout            Time in 100-ns units that this entry will remain in the neighbor\r
+                                 cache, it will be deleted after Timeout. A value of zero means that\r
+                                 the entry is permanent. A non-zero value means that the entry is\r
+                                 dynamic.\r
+  @param[in]  Override           If TRUE, the cached link-layer address of the matching entry will\r
+                                 be overridden and updated; if FALSE, EFI_ACCESS_DENIED\r
                                  will be returned if a corresponding cache entry already existed.\r
 \r
   @retval  EFI_SUCCESS           The data has been queued for transmission.\r
@@ -756,18 +754,18 @@ EFI_STATUS
                                  - TargetIpAddress is NULL.\r
                                  - *TargetLinkAddress is invalid when not NULL.\r
                                  - *TargetIpAddress is not a valid unicast IPv6 address.\r
-                                 - *TargetIpAddress is one of the local configured IPv6 \r
+                                 - *TargetIpAddress is one of the local configured IPv6\r
                                    addresses.\r
   @retval  EFI_OUT_OF_RESOURCES  Could not add the entry to the neighbor cache.\r
-  @retval  EFI_NOT_FOUND         This entry is not in the neighbor cache (when DeleteFlag  is \r
-                                 TRUE or when DeleteFlag  is FALSE while \r
+  @retval  EFI_NOT_FOUND         This entry is not in the neighbor cache (when DeleteFlag  is\r
+                                 TRUE or when DeleteFlag  is FALSE while\r
                                  TargetLinkAddress is NULL.).\r
-  @retval  EFI_ACCESS_DENIED     The to-be-added entry is already defined in the neighbor cache, \r
-                                 and that entry is tagged as un-overridden (when DeleteFlag \r
+  @retval  EFI_ACCESS_DENIED     The to-be-added entry is already defined in the neighbor cache,\r
+                                 and that entry is tagged as un-overridden (when DeleteFlag\r
                                  is FALSE).\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_NEIGHBORS)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
@@ -790,7 +788,7 @@ EFI_STATUS
 \r
   @retval  EFI_SUCCESS           The data has been queued for transmission.\r
   @retval  EFI_NOT_STARTED       This instance has not been started.\r
-  @retval  EFI_NO_MAPPING        The IPv6 driver was responsible for choosing a source address for \r
+  @retval  EFI_NO_MAPPING        The IPv6 driver was responsible for choosing a source address for\r
                                  this transmission, but no source address was available for use.\r
   @retval  EFI_INVALID_PARAMETER One or more of the following is TRUE:\r
                                  - This is NULL.\r
@@ -802,25 +800,25 @@ EFI_STATUS
                                  - One or more of the Token.Packet.TxData.FragmentTable[].FragmentLength fields is zero.\r
                                  - One or more of the Token.Packet.TxData.FragmentTable[].FragmentBuffer fields is NULL.\r
                                  - Token.Packet.TxData.DataLength is zero or not equal to the sum of fragment lengths.\r
-                                 - Token.Packet.TxData.DestinationAddress is non-zero when DestinationAddress is configured as \r
+                                 - Token.Packet.TxData.DestinationAddress is non-zero when DestinationAddress is configured as\r
                                    non-zero when doing Configure() for this EFI IPv6 protocol instance.\r
-                                 - Token.Packet.TxData.DestinationAddress is unspecified when DestinationAddress is unspecified \r
+                                 - Token.Packet.TxData.DestinationAddress is unspecified when DestinationAddress is unspecified\r
                                    when doing Configure() for this EFI IPv6 protocol instance.\r
   @retval  EFI_ACCESS_DENIED     The transmit completion token with the same Token.Event\r
                                  was already in the transmit queue.\r
   @retval  EFI_NOT_READY         The completion token could not be queued because the transmit\r
-                                 queue is full. \r
+                                 queue is full.\r
   @retval  EFI_NOT_FOUND         Not route is found to destination address.\r
   @retval  EFI_OUT_OF_RESOURCES  Could not queue the transmit data.\r
   @retval  EFI_BUFFER_TOO_SMALL  Token.Packet.TxData.TotalDataLength is too\r
                                  short to transmit.\r
-  @retval  EFI_BAD_BUFFER_SIZE   If Token.Packet.TxData.DataLength is beyond the \r
+  @retval  EFI_BAD_BUFFER_SIZE   If Token.Packet.TxData.DataLength is beyond the\r
                                  maximum that which can be described through the Fragment Offset\r
                                  field in Fragment header when performing fragmentation.\r
   @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_TRANSMIT)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
@@ -829,10 +827,10 @@ EFI_STATUS
 \r
 /**\r
   Places a receiving request into the receiving queue.\r
-  \r
+\r
   The Receive() function places a completion token into the receive packet queue.\r
   This function is always asynchronous.\r
-  \r
+\r
   The Token.Event field in the completion token must be filled in by the caller\r
   and cannot be NULL. When the receive operation completes, the EFI IPv6 Protocol\r
   driver updates the Token.Status and Token.Packet.RxData fields and the Token.Event\r
@@ -840,10 +838,10 @@ EFI_STATUS
 \r
   @param[in]  This               Pointer to the EFI_IP6_PROTOCOL instance.\r
   @param[in]  Token              Pointer to a token that is associated with the receive data descriptor.\r
-                                 \r
+\r
   @retval EFI_SUCCESS            The receive completion token was cached.\r
   @retval EFI_NOT_STARTED        This EFI IPv6 Protocol instance has not been started.\r
-  @retval EFI_NO_MAPPING         When IP6 driver responsible for binding source address to this instance, \r
+  @retval EFI_NO_MAPPING         When IP6 driver responsible for binding source address to this instance,\r
                                  while no source address is available for use.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following conditions is TRUE:\r
                                  - This is NULL.\r
@@ -856,18 +854,18 @@ EFI_STATUS
   @retval EFI_ACCESS_DENIED      The receive completion token with the same Token.Event was already\r
                                  in the receive queue.\r
   @retval EFI_NOT_READY          The receive request could not be queued because the receive queue is full.\r
-                                 \r
-**/                              \r
-typedef                          \r
-EFI_STATUS                       \r
-(EFIAPI *EFI_IP6_RECEIVE)(      \r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_IP6_RECEIVE)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
   IN EFI_IP6_COMPLETION_TOKEN    *Token\r
   );\r
 \r
 /**\r
   Abort an asynchronous transmit or receive request.\r
-  \r
+\r
   The Cancel() function is used to abort a pending transmit or receive request.\r
   If the token is in the transmit or receive request queues, after calling this\r
   function, Token->Status will be set to EFI_ABORTED and then Token->Event will\r
@@ -881,7 +879,7 @@ EFI_STATUS
                                  EFI_IP6_PROTOCOL.Receive(). If NULL, all pending\r
                                  tokens are aborted. Type EFI_IP6_COMPLETION_TOKEN is\r
                                  defined in EFI_IP6_PROTOCOL.Transmit().\r
-                                 \r
+\r
   @retval EFI_SUCCESS            The asynchronous I/O request was aborted and\r
                                  Token->Event was signaled. When Token is NULL, all\r
                                  pending requests were aborted and their events were signaled.\r
@@ -891,23 +889,23 @@ EFI_STATUS
                                  not found in the transmit or receive queue. It has either completed\r
                                  or was not issued by Transmit() and Receive().\r
   @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred.\r
-                                 \r
-**/                              \r
-typedef                          \r
-EFI_STATUS                       \r
-(EFIAPI *EFI_IP6_CANCEL)(        \r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_IP6_CANCEL)(\r
   IN EFI_IP6_PROTOCOL            *This,\r
   IN EFI_IP6_COMPLETION_TOKEN    *Token    OPTIONAL\r
   );\r
 \r
 /**\r
   Polls for incoming data packets and processes outgoing data packets.\r
-  \r
+\r
   The Poll() function polls for incoming data packets and processes outgoing data\r
   packets. Network drivers and applications can call the EFI_IP6_PROTOCOL.Poll()\r
   function to increase the rate that data packets are moved between the communications\r
   device and the transmit and receive queues.\r
-  \r
+\r
   In some systems the periodic timer event may not poll the underlying communications\r
   device fast enough to transmit and/or receive all data packets without missing\r
   incoming packets or dropping outgoing packets. Drivers and applications that are\r
@@ -925,7 +923,7 @@ EFI_STATUS
                                  Consider increasing the polling rate.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_IP6_POLL)(\r
   IN EFI_IP6_PROTOCOL            *This\r
index 10f97e5b97faaf6a2afabab405fdcf012428e301..9ebeec88703efd1eb9bb17a1ee52f5854f0c6c57 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
   EFI Multicast Trivial File Tranfer Protocol Definition\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006 - 2010, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.   \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  @par Revision Reference:          \r
+  @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.0\r
 \r
 **/\r
@@ -165,9 +165,9 @@ typedef struct {
 \r
 typedef struct {\r
   EFI_MTFTP4_CONFIG_DATA  ConfigData;\r
-  UINT8                   SupportedOptionCount;  \r
+  UINT8                   SupportedOptionCount;\r
   UINT8                   **SupportedOptoins;\r
-  UINT8                   UnsupportedOptionCount;  \r
+  UINT8                   UnsupportedOptionCount;\r
   UINT8                   **UnsupportedOptoins;\r
 } EFI_MTFTP4_MODE_DATA;\r
 \r
@@ -185,11 +185,11 @@ typedef struct {
 //\r
 \r
 /**\r
-  A callback function that is provided by the caller to intercept               \r
+  A callback function that is provided by the caller to intercept\r
   the EFI_MTFTP4_OPCODE_DATA or EFI_MTFTP4_OPCODE_DATA8 packets processed in the\r
-  EFI_MTFTP4_PROTOCOL.ReadFile() function, and alternatively to intercept       \r
-  EFI_MTFTP4_OPCODE_OACK or EFI_MTFTP4_OPCODE_ERROR packets during a call to    \r
-  EFI_MTFTP4_PROTOCOL.ReadFile(), WriteFile() or ReadDirectory().                   \r
+  EFI_MTFTP4_PROTOCOL.ReadFile() function, and alternatively to intercept\r
+  EFI_MTFTP4_OPCODE_OACK or EFI_MTFTP4_OPCODE_ERROR packets during a call to\r
+  EFI_MTFTP4_PROTOCOL.ReadFile(), WriteFile() or ReadDirectory().\r
 \r
   @param  This        Pointer to the EFI_MTFTP4_PROTOCOL instance.\r
   @param  Token       The token that the caller provided in the\r
@@ -202,9 +202,9 @@ typedef struct {
   @retval Others      Abort transfer process\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
-(EFIAPI *EFI_MTFTP4_CHECK_PACKET)( \r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_MTFTP4_CHECK_PACKET)(\r
   IN EFI_MTFTP4_PROTOCOL  *This,\r
   IN EFI_MTFTP4_TOKEN     *Token,\r
   IN UINT16               PacketLen,\r
@@ -212,7 +212,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Timeout callback funtion.            \r
+  Timeout callback funtion.\r
 \r
   @param  This           Pointer to the EFI_MTFTP4_PROTOCOL instance.\r
   @param  Token          The token that is provided in the\r
@@ -220,14 +220,14 @@ EFI_STATUS
                          EFI_MTFTP4_PROTOCOL.WriteFile() or\r
                          EFI_MTFTP4_PROTOCOL.ReadDirectory() functions\r
                          by the caller.\r
-                         \r
+\r
   @retval EFI_SUCCESS   Operation sucess\r
   @retval Others        Aborts download process.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
-(EFIAPI *EFI_MTFTP4_TIMEOUT_CALLBACK)( \r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_MTFTP4_TIMEOUT_CALLBACK)(\r
   IN EFI_MTFTP4_PROTOCOL  *This,\r
   IN EFI_MTFTP4_TOKEN     *Token\r
   );\r
@@ -247,9 +247,9 @@ EFI_STATUS
   @retval Others      Aborts session.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
-(EFIAPI *EFI_MTFTP4_PACKET_NEEDED)( \r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_MTFTP4_PACKET_NEEDED)(\r
   IN  EFI_MTFTP4_PROTOCOL *This,\r
   IN  EFI_MTFTP4_TOKEN    *Token,\r
   IN  OUT UINT16          *Length,\r
@@ -268,8 +268,8 @@ EFI_STATUS
   @retval EFI_INVALID_PARAMETER This is NULL or ModeData is NULL.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_GET_MODE_DATA)(\r
   IN  EFI_MTFTP4_PROTOCOL     *This,\r
   OUT EFI_MTFTP4_MODE_DATA    *ModeData\r
@@ -277,7 +277,7 @@ EFI_STATUS
 \r
 \r
 /**\r
-  Initializes, changes, or resets the default operational setting for this \r
+  Initializes, changes, or resets the default operational setting for this\r
   EFI MTFTPv4 Protocol driver instance.\r
 \r
   @param  This            Pointer to the EFI_MTFTP4_PROTOCOL instance.\r
@@ -298,14 +298,14 @@ EFI_STATUS
                                  MTFTPv4 Protocol driver instance is not configured.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_CONFIGURE)(\r
   IN EFI_MTFTP4_PROTOCOL       *This,\r
   IN EFI_MTFTP4_CONFIG_DATA    *MtftpConfigData OPTIONAL\r
-  );   \r
-    \r
-    \r
+  );\r
+\r
+\r
 /**\r
   Gets information about a file from an MTFTPv4 server.\r
 \r
@@ -323,7 +323,6 @@ EFI_STATUS
                        the caller.\r
 \r
   @retval EFI_SUCCESS              An MTFTPv4 OACK packet was received and is in the Packet.\r
-                                   Note: It does not match UEFI 2.3 Specification.\r
   @retval EFI_INVALID_PARAMETER    One or more of the following conditions is TRUE:\r
                                    - This is NULL.\r
                                    - Filename is NULL.\r
@@ -341,24 +340,18 @@ EFI_STATUS
   @retval EFI_OUT_OF_RESOURCES     Required system resources could not be allocated.\r
   @retval EFI_TFTP_ERROR           An MTFTPv4 ERROR packet was received and is in the Packet.\r
   @retval EFI_NETWORK_UNREACHABLE  An ICMP network unreachable error packet was received and the Packet is set to NULL.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_HOST_UNREACHABLE     An ICMP host unreachable error packet was received and the Packet is set to NULL.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_PROTOCOL_UNREACHABLE An ICMP protocol unreachable error packet was received and the Packet is set to NULL.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_PORT_UNREACHABLE     An ICMP port unreachable error packet was received and the Packet is set to NULL.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_ICMP_ERROR           Some other ICMP ERROR packet was received and is in the Buffer.\r
-                                   Note: It does not match UEFI 2.3 Specification.\r
   @retval EFI_PROTOCOL_ERROR       An unexpected MTFTPv4 packet was received and is in the Packet.\r
-                                   Note: It does not match UEFI 2.3 Specification.\r
   @retval EFI_TIMEOUT              No responses were received from the MTFTPv4 server.\r
   @retval EFI_DEVICE_ERROR         An unexpected network error or system error occurred.\r
   @retval EFI_NO_MEDIA             There was a media error.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_GET_INFO)(\r
   IN  EFI_MTFTP4_PROTOCOL      *This,\r
   IN  EFI_MTFTP4_OVERRIDE_DATA *OverrideData   OPTIONAL,\r
@@ -392,15 +385,15 @@ EFI_STATUS
   @retval EFI_PROTOCOL_ERROR    One or more of the option fields is invalid.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_PARSE_OPTIONS)(\r
   IN  EFI_MTFTP4_PROTOCOL      *This,\r
   IN  UINT32                   PacketLen,\r
   IN  EFI_MTFTP4_PACKET        *Packet,\r
   OUT UINT32                   *OptionCount,\r
   OUT EFI_MTFTP4_OPTION        **OptionList OPTIONAL\r
-  );  \r
+  );\r
 \r
 \r
 /**\r
@@ -414,31 +407,25 @@ EFI_STATUS
   @retval EFI_OUT_OF_RESOURCES     Required system resources could not be allocated.\r
   @retval EFI_BUFFER_TOO_SMALL     BufferSize is not zero but not large enough to hold the\r
                                    downloaded data in downloading process.\r
-                                   Note: It does not match UEFI 2.3 Specification.\r
   @retval EFI_ABORTED              Current operation is aborted by user.\r
   @retval EFI_NETWORK_UNREACHABLE  An ICMP network unreachable error packet was received.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_HOST_UNREACHABLE     An ICMP host unreachable error packet was received.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_PROTOCOL_UNREACHABLE An ICMP protocol unreachable error packet was received.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_PORT_UNREACHABLE     An ICMP port unreachable error packet was received.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
   @retval EFI_ICMP_ERROR           Some other  ICMP ERROR packet was received.\r
-                                   Note: It does not match UEFI 2.3 Specification.\r
   @retval EFI_TIMEOUT              No responses were received from the MTFTPv4 server.\r
   @retval EFI_TFTP_ERROR           An MTFTPv4 ERROR packet was received.\r
   @retval EFI_DEVICE_ERROR         An unexpected network error or system error occurred.\r
   @retval EFI_NO_MEDIA             There was a media error.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_READ_FILE)(\r
   IN EFI_MTFTP4_PROTOCOL       *This,\r
   IN EFI_MTFTP4_TOKEN          *Token\r
-  );  \r
-  \r
+  );\r
+\r
 \r
 \r
 /**\r
@@ -462,17 +449,17 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR      An unexpected network error or system error occurred.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_WRITE_FILE)(\r
   IN EFI_MTFTP4_PROTOCOL       *This,\r
   IN EFI_MTFTP4_TOKEN          *Token\r
-  );  \r
-  \r
+  );\r
+\r
 \r
 /**\r
   Downloads a data file "directory" from an MTFTPv4 server. May be unsupported in some EFI\r
-  implementations.                                                                                                                                                                                 \r
+  implementations.\r
 \r
   @param  This  Pointer to the EFI_MTFTP4_PROTOCOL instance.\r
   @param  Token Pointer to the token structure to provide the parameters that are\r
@@ -492,12 +479,12 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR      An unexpected network error or system error occurred.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_READ_DIRECTORY)(\r
   IN EFI_MTFTP4_PROTOCOL       *This,\r
   IN EFI_MTFTP4_TOKEN          *Token\r
-  );    \r
+  );\r
 \r
 /**\r
   Polls for incoming data packets and processes outgoing data packets.\r
@@ -518,13 +505,13 @@ typedef
 EFI_STATUS\r
 (EFIAPI *EFI_MTFTP4_POLL)(\r
   IN EFI_MTFTP4_PROTOCOL       *This\r
-  );                                                                                                                 \r
-                                                                                                                  \r
+  );\r
+\r
 ///\r
-/// The EFI_MTFTP4_PROTOCOL is designed to be used by UEFI drivers and applications \r
-/// to transmit and receive data files. The EFI MTFTPv4 Protocol driver uses \r
+/// The EFI_MTFTP4_PROTOCOL is designed to be used by UEFI drivers and applications\r
+/// to transmit and receive data files. The EFI MTFTPv4 Protocol driver uses\r
 /// the underlying EFI UDPv4 Protocol driver and EFI IPv4 Protocol driver.\r
-///  \r
+///\r
 struct _EFI_MTFTP4_PROTOCOL {\r
   EFI_MTFTP4_GET_MODE_DATA     GetModeData;\r
   EFI_MTFTP4_CONFIGURE         Configure;\r
@@ -581,7 +568,7 @@ struct _EFI_MTFTP4_TOKEN {
   ///\r
   VOID                        *Buffer;\r
   ///\r
-  /// Pointer to the context that will be used by CheckPacket, \r
+  /// Pointer to the context that will be used by CheckPacket,\r
   /// TimeoutCallback and PacketNeeded.\r
   ///\r
   VOID                        *Context;\r
@@ -600,7 +587,7 @@ struct _EFI_MTFTP4_TOKEN {
 };\r
 \r
 extern EFI_GUID gEfiMtftp4ServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiMtftp4ProtocolGuid;  \r
+extern EFI_GUID gEfiMtftp4ProtocolGuid;\r
 \r
 #endif\r
 \r
index 107a0fe81708c12ed5b18fa23e112f17895f06d2..f35d42515a04db022e70d4cfd0160d1f3e2b6ebb 100644 (file)
@@ -3,16 +3,16 @@
   the EFI UDPv6 Protocol and provides basic services for client-side unicast and/or\r
   multicast TFTP operations.\r
 \r
-  Copyright (c) 2008 - 2010, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                            \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-  @par Revision Reference:          \r
+  Copyright (c) 2008 - 2010, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+  @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.2\r
 \r
 **/\r
@@ -44,7 +44,7 @@ typedef struct _EFI_MTFTP6_TOKEN    EFI_MTFTP6_TOKEN;
 #define EFI_MTFTP6_OPCODE_ERROR    5 ///< The MTFTPv6 packet is an error packet.\r
 #define EFI_MTFTP6_OPCODE_OACK     6 ///< The MTFTPv6 packet is an option acknowledgement packet.\r
 #define EFI_MTFTP6_OPCODE_DIR      7 ///< The MTFTPv6 packet is a directory query packet.\r
-#define EFI_MTFTP6_OPCODE_DATA8    8 ///< The MTFTPv6 packet is a data packet with a big block number. \r
+#define EFI_MTFTP6_OPCODE_DATA8    8 ///< The MTFTPv6 packet is a data packet with a big block number.\r
 #define EFI_MTFTP6_OPCODE_ACK8     9 ///< The MTFTPv6 packet is an acknowledgement packet with a big block number.\r
 ///@}\r
 \r
@@ -52,7 +52,7 @@ typedef struct _EFI_MTFTP6_TOKEN    EFI_MTFTP6_TOKEN;
 /// MTFTP ERROR Packet ErrorCodes\r
 ///@{\r
 ///\r
-/// The error code is not defined. See the error message in the packet (if any) for details. \r
+/// The error code is not defined. See the error message in the packet (if any) for details.\r
 ///\r
 #define EFI_MTFTP6_ERRORCODE_NOT_DEFINED           0\r
 ///\r
@@ -92,7 +92,7 @@ typedef struct _EFI_MTFTP6_TOKEN    EFI_MTFTP6_TOKEN;
 #pragma pack(1)\r
 \r
 ///\r
-/// EFI_MTFTP6_REQ_HEADER \r
+/// EFI_MTFTP6_REQ_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -107,7 +107,7 @@ typedef struct {
 } EFI_MTFTP6_REQ_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_OACK_HEADER \r
+/// EFI_MTFTP6_OACK_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -121,7 +121,7 @@ typedef struct {
 } EFI_MTFTP6_OACK_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_DATA_HEADER \r
+/// EFI_MTFTP6_DATA_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -139,7 +139,7 @@ typedef struct {
 } EFI_MTFTP6_DATA_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_ACK_HEADER \r
+/// EFI_MTFTP6_ACK_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -153,7 +153,7 @@ typedef struct {
 } EFI_MTFTP6_ACK_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_DATA8_HEADER \r
+/// EFI_MTFTP6_DATA8_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -171,7 +171,7 @@ typedef struct {
 } EFI_MTFTP6_DATA8_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_ACK8_HEADER \r
+/// EFI_MTFTP6_ACK8_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -185,7 +185,7 @@ typedef struct {
 } EFI_MTFTP6_ACK8_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_ERROR_HEADER \r
+/// EFI_MTFTP6_ERROR_HEADER\r
 ///\r
 typedef struct {\r
   ///\r
@@ -193,7 +193,7 @@ typedef struct {
   ///\r
   UINT16    OpCode;\r
   ///\r
-  /// The error number as defined by the MTFTPv6 packet error codes. \r
+  /// The error number as defined by the MTFTPv6 packet error codes.\r
   ///\r
   UINT16    ErrorCode;\r
   ///\r
@@ -203,7 +203,7 @@ typedef struct {
 } EFI_MTFTP6_ERROR_HEADER;\r
 \r
 ///\r
-/// EFI_MTFTP6_PACKET  \r
+/// EFI_MTFTP6_PACKET\r
 ///\r
 typedef union {\r
   UINT16                   OpCode; ///< Type of packets as defined by the MTFTPv6 packet opcodes.\r
@@ -224,8 +224,8 @@ typedef union {
 ///\r
 typedef struct {\r
   ///\r
-  /// The local IP address to use. Set to zero to let the underlying IPv6 \r
-  /// driver choose a source address. If not zero it must be one of the \r
+  /// The local IP address to use. Set to zero to let the underlying IPv6\r
+  /// driver choose a source address. If not zero it must be one of the\r
   /// configured IP addresses in the underlying IPv6 driver.\r
   ///\r
   EFI_IPv6_ADDRESS       StationIp;\r
@@ -238,8 +238,8 @@ typedef struct {
   ///\r
   EFI_IPv6_ADDRESS       ServerIp;\r
   ///\r
-  /// The initial MTFTPv6 server port number. Request packets are \r
-  /// sent to this port. This number is almost always 69 and using zero \r
+  /// The initial MTFTPv6 server port number. Request packets are\r
+  /// sent to this port. This number is almost always 69 and using zero\r
   /// defaults to 69.\r
   UINT16                 InitialServerPort;\r
   ///\r
@@ -247,7 +247,7 @@ typedef struct {
   ///\r
   UINT16                 TryCount;\r
   ///\r
-  /// The number of seconds to wait for a response after sending the MTFTPv6 request packet. \r
+  /// The number of seconds to wait for a response after sending the MTFTPv6 request packet.\r
   ///\r
   UINT16                 TimeoutValue;\r
 } EFI_MTFTP6_CONFIG_DATA;\r
@@ -265,8 +265,8 @@ typedef struct {
   ///\r
   UINT8                   SupportedOptionCount;\r
   ///\r
-  /// An array of option strings that are recognized and supported by \r
-  /// this EFI MTFTPv6 Protocol driver implementation. The buffer is \r
+  /// An array of option strings that are recognized and supported by\r
+  /// this EFI MTFTPv6 Protocol driver implementation. The buffer is\r
   /// read only to the caller and the caller should NOT free the buffer.\r
   ///\r
   UINT8                   **SupportedOptions;\r
@@ -277,24 +277,24 @@ typedef struct {
 ///\r
 typedef struct {\r
   ///\r
-  /// IP address of the MTFTPv6 server. If set to all zero, the value that \r
-  /// was set by the EFI_MTFTP6_PROTOCOL.Configure() function will be used. \r
+  /// IP address of the MTFTPv6 server. If set to all zero, the value that\r
+  /// was set by the EFI_MTFTP6_PROTOCOL.Configure() function will be used.\r
   ///\r
   EFI_IPv6_ADDRESS       ServerIp;\r
   ///\r
-  /// MTFTPv6 server port number. If set to zero, it will use the value \r
-  /// that was set by the EFI_MTFTP6_PROTOCOL.Configure() function. \r
+  /// MTFTPv6 server port number. If set to zero, it will use the value\r
+  /// that was set by the EFI_MTFTP6_PROTOCOL.Configure() function.\r
   ///\r
   UINT16                 ServerPort;\r
   ///\r
-  /// Number of times to transmit MTFTPv6 request packets and wait \r
-  /// for a response. If set to zero, the value that was set by \r
+  /// Number of times to transmit MTFTPv6 request packets and wait\r
+  /// for a response. If set to zero, the value that was set by\r
   /// theEFI_MTFTP6_PROTOCOL.Configure() function will be used.\r
   ///\r
   UINT16                 TryCount;\r
   ///\r
-  /// Number of seconds to wait for a response after sending the \r
-  /// MTFTPv6 request packet. If set to zero, the value that was set by \r
+  /// Number of seconds to wait for a response after sending the\r
+  /// MTFTPv6 request packet. If set to zero, the value that was set by\r
   /// the EFI_MTFTP6_PROTOCOL.Configure() function will be used.\r
   ///\r
   UINT16                 TimeoutValue;\r
@@ -304,18 +304,18 @@ typedef struct {
 /// EFI_MTFTP6_OPTION\r
 ///\r
 typedef struct {\r
-  UINT8                  *OptionStr; ///< Pointer to the ASCIIZ MTFTPv6 option string. \r
+  UINT8                  *OptionStr; ///< Pointer to the ASCIIZ MTFTPv6 option string.\r
   UINT8                  *ValueStr;  ///< Pointer to the ASCIIZ MTFTPv6 value string.\r
 } EFI_MTFTP6_OPTION;\r
 \r
 /**\r
-  EFI_MTFTP6_TIMEOUT_CALLBACK is a callback function that the caller provides to capture the \r
-  timeout event in the EFI_MTFTP6_PROTOCOL.ReadFile(), EFI_MTFTP6_PROTOCOL.WriteFile() or \r
-  EFI_MTFTP6_PROTOCOL.ReadDirectory() functions. \r
-  \r
+  EFI_MTFTP6_TIMEOUT_CALLBACK is a callback function that the caller provides to capture the\r
+  timeout event in the EFI_MTFTP6_PROTOCOL.ReadFile(), EFI_MTFTP6_PROTOCOL.WriteFile() or\r
+  EFI_MTFTP6_PROTOCOL.ReadDirectory() functions.\r
+\r
   Whenever a timeout occurs, the EFI MTFTPv6 Protocol driver will call the EFI_MTFTP6_TIMEOUT_CALLBACK\r
   function to notify the caller of the timeout event. Any status code other than EFI_SUCCESS\r
-  that is returned from this function will abort the current download process. \r
+  that is returned from this function will abort the current download process.\r
 \r
   @param[in] This          Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
   @param[in] Token         The token that the caller provided in the EFI_MTFTP6_PROTOCOl.ReadFile(),\r
@@ -328,8 +328,8 @@ typedef struct {
 \r
 **/\r
 typedef\r
-EFI_STATUS \r
-(EFIAPI *EFI_MTFTP6_CHECK_PACKET)( \r
+EFI_STATUS\r
+(EFIAPI *EFI_MTFTP6_CHECK_PACKET)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_TOKEN         *Token,\r
   IN UINT16                   PacketLen,\r
@@ -337,16 +337,16 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  EFI_MTFTP6_TIMEOUT_CALLBACK is a callback function that the caller provides to capture the \r
-  timeout event in the EFI_MTFTP6_PROTOCOL.ReadFile(), EFI_MTFTP6_PROTOCOL.WriteFile() or \r
-  EFI_MTFTP6_PROTOCOL.ReadDirectory() functions. \r
-  \r
+  EFI_MTFTP6_TIMEOUT_CALLBACK is a callback function that the caller provides to capture the\r
+  timeout event in the EFI_MTFTP6_PROTOCOL.ReadFile(), EFI_MTFTP6_PROTOCOL.WriteFile() or\r
+  EFI_MTFTP6_PROTOCOL.ReadDirectory() functions.\r
+\r
   Whenever a timeout occurs, the EFI MTFTPv6 Protocol driver will call the EFI_MTFTP6_TIMEOUT_CALLBACK\r
   function to notify the caller of the timeout event. Any status code other than EFI_SUCCESS\r
-  that is returned from this function will abort the current download process. \r
+  that is returned from this function will abort the current download process.\r
 \r
   @param[in]      This     Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
-  @param[in]      Token    The token that is provided in the EFI_MTFTP6_PROTOCOL.ReadFile() or \r
+  @param[in]      Token    The token that is provided in the EFI_MTFTP6_PROTOCOL.ReadFile() or\r
                            EFI_MTFTP6_PROTOCOL.WriteFile() or EFI_MTFTP6_PROTOCOL.ReadDirectory()\r
                            functions by the caller.\r
 \r
@@ -354,17 +354,17 @@ EFI_STATUS
   @retval Others           Aborts session.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
-(EFIAPI *EFI_MTFTP6_TIMEOUT_CALLBACK)( \r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_MTFTP6_TIMEOUT_CALLBACK)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_TOKEN         *Token\r
   );\r
 \r
 /**\r
-  EFI_MTFTP6_PACKET_NEEDED is a callback function that the caller provides to feed data to the \r
-  EFI_MTFTP6_PROTOCOL.WriteFile() function. \r
-  \r
+  EFI_MTFTP6_PACKET_NEEDED is a callback function that the caller provides to feed data to the\r
+  EFI_MTFTP6_PROTOCOL.WriteFile() function.\r
+\r
   EFI_MTFTP6_PACKET_NEEDED provides another mechanism for the caller to provide data to upload\r
   other than a static buffer. The EFI MTFTP6 Protocol driver always calls EFI_MTFTP6_PACKET_NEEDED\r
   to get packet data from the caller if no static buffer was given in the initial call to\r
@@ -373,7 +373,7 @@ EFI_STATUS
 \r
   @param[in]      This     Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
   @param[in]      Token    The token provided in the EFI_MTFTP6_PROTOCOL.WriteFile() by the caller.\r
-  @param[in, out] Length   Indicates the length of the raw data wanted on input, and the \r
+  @param[in, out] Length   Indicates the length of the raw data wanted on input, and the\r
                            length the data available on output.\r
   @param[out]     Buffer   Pointer to the buffer where the data is stored.\r
 \r
@@ -381,9 +381,9 @@ EFI_STATUS
   @retval Others           Aborts session.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
-(EFIAPI *EFI_MTFTP6_PACKET_NEEDED)( \r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_MTFTP6_PACKET_NEEDED)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_TOKEN         *Token,\r
   IN OUT UINT16               *Length,\r
@@ -392,20 +392,20 @@ EFI_STATUS
 \r
 struct _EFI_MTFTP6_TOKEN {\r
   ///\r
-  /// The status that is returned to the caller at the end of the operation \r
-  /// to indicate whether this operation completed successfully. \r
+  /// The status that is returned to the caller at the end of the operation\r
+  /// to indicate whether this operation completed successfully.\r
   /// Defined Status values are listed below.\r
   ///\r
   EFI_STATUS                  Status;\r
   ///\r
-  /// The event that will be signaled when the operation completes. If \r
-  /// set to NULL, the corresponding function will wait until the read or \r
-  /// write operation finishes. The type of Event must be EVT_NOTIFY_SIGNAL. \r
+  /// The event that will be signaled when the operation completes. If\r
+  /// set to NULL, the corresponding function will wait until the read or\r
+  /// write operation finishes. The type of Event must be EVT_NOTIFY_SIGNAL.\r
   ///\r
   EFI_EVENT                   Event;\r
   ///\r
-  /// If not NULL, the data that will be used to override the existing \r
-  /// configure data. \r
+  /// If not NULL, the data that will be used to override the existing\r
+  /// configure data.\r
   ///\r
   EFI_MTFTP6_OVERRIDE_DATA    *OverrideData;\r
   ///\r
@@ -421,32 +421,32 @@ struct _EFI_MTFTP6_TOKEN {
   ///\r
   UINT32                      OptionCount;\r
   ///\r
-  /// Pointer to an array of option/value string pairs. Ignored if \r
-  /// OptionCount is zero. Both a remote server and this driver \r
-  /// implementation should support these options. If one or more \r
-  /// options are unrecognized by this implementation, it is sent to the \r
+  /// Pointer to an array of option/value string pairs. Ignored if\r
+  /// OptionCount is zero. Both a remote server and this driver\r
+  /// implementation should support these options. If one or more\r
+  /// options are unrecognized by this implementation, it is sent to the\r
   /// remote server without being changed.\r
   ///\r
   EFI_MTFTP6_OPTION           *OptionList;\r
   ///\r
-  /// On input, the size, in bytes, of Buffer. On output, the number \r
+  /// On input, the size, in bytes, of Buffer. On output, the number\r
   /// of bytes transferred.\r
   ///\r
-  UINT64                      BufferSize;        \r
+  UINT64                      BufferSize;\r
   ///\r
-  /// Pointer to the data buffer. Data that is downloaded from the \r
-  /// MTFTPv6 server is stored here. Data that is uploaded to the \r
+  /// Pointer to the data buffer. Data that is downloaded from the\r
+  /// MTFTPv6 server is stored here. Data that is uploaded to the\r
   /// MTFTPv6 server is read from here. Ignored if BufferSize is zero.\r
   ///\r
   VOID                        *Buffer;\r
   ///\r
-  /// Pointer to the context that will be used by CheckPacket, \r
+  /// Pointer to the context that will be used by CheckPacket,\r
   /// TimeoutCallback and PacketNeeded.\r
   ///\r
   VOID                        *Context;\r
   ///\r
-  /// Pointer to the callback function to check the contents of the \r
-  /// received packet. \r
+  /// Pointer to the callback function to check the contents of the\r
+  /// received packet.\r
   ///\r
   EFI_MTFTP6_CHECK_PACKET      CheckPacket;\r
   ///\r
@@ -454,7 +454,7 @@ struct _EFI_MTFTP6_TOKEN {
   ///\r
   EFI_MTFTP6_TIMEOUT_CALLBACK  TimeoutCallback;\r
   ///\r
-  /// Pointer to the function to provide the needed packet contents. \r
+  /// Pointer to the function to provide the needed packet contents.\r
   /// Only used in WriteFile() operation.\r
   ///\r
   EFI_MTFTP6_PACKET_NEEDED     PacketNeeded;\r
@@ -462,7 +462,7 @@ struct _EFI_MTFTP6_TOKEN {
 \r
 /**\r
   Read the current operational settings.\r
-  \r
+\r
   The GetModeData() function reads the current operational settings of this EFI MTFTPv6\r
   Protocol driver instance.\r
 \r
@@ -475,8 +475,8 @@ struct _EFI_MTFTP6_TOKEN {
   @retval  EFI_INVALID_PARAMETER This is NULL or ModeData is NULL.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_GET_MODE_DATA)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   OUT EFI_MTFTP6_MODE_DATA    *ModeData\r
@@ -485,42 +485,38 @@ EFI_STATUS
 /**\r
   Initializes, changes, or resets the default operational setting for this EFI MTFTPv6\r
   Protocol driver instance.\r
-  \r
-  The Configure() function is used to set and change the configuration data for this EFI \r
-  MTFTPv6 Protocol driver instance. The configuration data can be reset to startup defaults by calling \r
-  Configure() with MtftpConfigData set to NULL. Whenever the instance is reset, any \r
-  pending operation is aborted. By changing the EFI MTFTPv6 Protocol driver instance configuration \r
-  data, the client can connect to different MTFTPv6 servers. The configuration parameters in \r
-  MtftpConfigData are used as the default parameters in later MTFTPv6 operations and can be \r
+\r
+  The Configure() function is used to set and change the configuration data for this EFI\r
+  MTFTPv6 Protocol driver instance. The configuration data can be reset to startup defaults by calling\r
+  Configure() with MtftpConfigData set to NULL. Whenever the instance is reset, any\r
+  pending operation is aborted. By changing the EFI MTFTPv6 Protocol driver instance configuration\r
+  data, the client can connect to different MTFTPv6 servers. The configuration parameters in\r
+  MtftpConfigData are used as the default parameters in later MTFTPv6 operations and can be\r
   overridden in later operations.\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
-  @param[in]  MtftpConfigData    Pointer to the configuration data structure. \r
+  @param[in]  MtftpConfigData    Pointer to the configuration data structure.\r
 \r
   @retval  EFI_SUCCESS           The EFI MTFTPv6 Protocol instance was configured successfully.\r
   @retval  EFI_INVALID_PARAMETER One or more following conditions are TRUE:\r
                                  - This is NULL.\r
-                                 - MtftpConfigData.StationIp is neither zero nor one \r
+                                 - MtftpConfigData.StationIp is neither zero nor one\r
                                    of the configured IP addresses in the underlying IPv6 driver.\r
                                  - MtftpCofigData.ServerIp is not a valid IPv6 unicast address.\r
-                                 Note: It does not match UEFI 2.3 Specification.\r
-  @retval  EFI_ACCESS_DENIED     - The configuration could not be changed at this time because there \r
+  @retval  EFI_ACCESS_DENIED     - The configuration could not be changed at this time because there\r
                                    is some MTFTP background operation in progress.\r
                                  - MtftpCofigData.LocalPort is already in use.\r
-                                 Note: It does not match UEFI 2.3 Specification.\r
-  @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source \r
+  @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source\r
                                  address for this instance, but no source address was available for use.\r
-  @retval  EFI_OUT_OF_RESOURCES  The EFI MTFTPv6 Protocol driver instance data could not be \r
+  @retval  EFI_OUT_OF_RESOURCES  The EFI MTFTPv6 Protocol driver instance data could not be\r
                                  allocated.\r
-                                 Note: It is not defined in UEFI 2.3 Specification.\r
-  @retval  EFI_DEVICE_ERROR      An unexpected system or network error occurred. The EFI \r
+  @retval  EFI_DEVICE_ERROR      An unexpected system or network error occurred. The EFI\r
                                  MTFTPv6 Protocol driver instance is not configured.\r
-                                 Note: It is not defined in UEFI 2.3 Specification.\r
 \r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_CONFIGURE)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_CONFIG_DATA   *MtftpConfigData OPTIONAL\r
@@ -528,27 +524,26 @@ EFI_STATUS
 \r
 /**\r
   Get information about a file from an MTFTPv6 server.\r
-  \r
-  The GetInfo() function assembles an MTFTPv6 request packet with options, sends it to the \r
-  MTFTPv6 server, and may return an MTFTPv6 OACK, MTFTPv6 ERROR, or ICMP ERROR packet. \r
-  Retries occur only if no response packets are received from the MTFTPv6 server before the \r
+\r
+  The GetInfo() function assembles an MTFTPv6 request packet with options, sends it to the\r
+  MTFTPv6 server, and may return an MTFTPv6 OACK, MTFTPv6 ERROR, or ICMP ERROR packet.\r
+  Retries occur only if no response packets are received from the MTFTPv6 server before the\r
   timeout expires.\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
-  @param[in]  OverrideData       Data that is used to override the existing parameters. If NULL, the \r
+  @param[in]  OverrideData       Data that is used to override the existing parameters. If NULL, the\r
                                  default parameters that were set in the EFI_MTFTP6_PROTOCOL.Configure()\r
-                                 function are used. \r
+                                 function are used.\r
   @param[in]  Filename           Pointer to ASCIIZ file name string.\r
-  @param[in]  ModeStr            Pointer to ASCIIZ mode string. If NULL, octet will be used \r
+  @param[in]  ModeStr            Pointer to ASCIIZ mode string. If NULL, octet will be used\r
   @param[in]  OptionCount        Number of option/value string pairs in OptionList.\r
-  @param[in]  OptionList         Pointer to array of option/value string pairs. Ignored if \r
+  @param[in]  OptionList         Pointer to array of option/value string pairs. Ignored if\r
                                  OptionCount is zero.\r
   @param[out] PacketLength       The number of bytes in the returned packet.\r
-  @param[out] Packet             The pointer to the received packet. This buffer must be freed by \r
+  @param[out] Packet             The pointer to the received packet. This buffer must be freed by\r
                                  the caller.\r
 \r
   @retval  EFI_SUCCESS              An MTFTPv6 OACK packet was received and is in the Packet.\r
-                                    Note: It does not match UEFI 2.3 Specification.\r
   @retval  EFI_INVALID_PARAMETER    One or more of the following conditions is TRUE:\r
                                     - This is NULL.\r
                                     - Filename is NULL\r
@@ -556,31 +551,27 @@ EFI_STATUS
                                     - One or more options in OptionList have wrong format.\r
                                     - PacketLength is NULL.\r
                                     - OverrideData.ServerIp is not valid unicast IPv6 addresses.\r
-  @retval  EFI_UNSUPPORTED          One or more options in the OptionList are unsupported by \r
+  @retval  EFI_UNSUPPORTED          One or more options in the OptionList are unsupported by\r
                                     this implementation.\r
   @retval  EFI_NOT_STARTED          The EFI MTFTPv6 Protocol driver has not been started.\r
-  @retval  EFI_NO_MAPPING           The underlying IPv6 driver was responsible for choosing a source \r
+  @retval  EFI_NO_MAPPING           The underlying IPv6 driver was responsible for choosing a source\r
                                     address for this instance, but no source address was available for use.\r
   @retval  EFI_ACCESS_DENIED        The previous operation has not completed yet.\r
   @retval  EFI_OUT_OF_RESOURCES     Required system resources could not be allocated.\r
   @retval  EFI_TFTP_ERROR           An MTFTPv6 ERROR packet was received and is in the Packet.\r
   @retval  EFI_NETWORK_UNREACHABLE  An ICMP network unreachable error packet was received and the Packet is set to NULL.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_HOST_UNREACHABLE     An ICMP host unreachable error packet was received and the Packet is set to NULL.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_PROTOCOL_UNREACHABLE An ICMP protocol unreachable error packet was received and the Packet is set to NULL.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_PORT_UNREACHABLE     An ICMP port unreachable error packet was received and the Packet is set to NULL.\r
   @retval  EFI_ICMP_ERROR           Some other ICMP ERROR packet was received and the Packet is set to NULL.\r
-                                    Note: It does not match UEFI 2.3 Specification.\r
   @retval  EFI_PROTOCOL_ERROR       An unexpected MTFTPv6 packet was received and is in the Packet.\r
   @retval  EFI_TIMEOUT              No responses were received from the MTFTPv6 server.\r
   @retval  EFI_DEVICE_ERROR         An unexpected network error or system error occurred.\r
   @retval  EFI_NO_MEDIA             There was a media error.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_GET_INFO)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_OVERRIDE_DATA *OverrideData OPTIONAL,\r
@@ -595,23 +586,23 @@ EFI_STATUS
 /**\r
   Parse the options in an MTFTPv6 OACK packet.\r
 \r
-  The ParseOptions() function parses the option fields in an MTFTPv6 OACK packet and \r
-  returns the number of options that were found and optionally a list of pointers to \r
+  The ParseOptions() function parses the option fields in an MTFTPv6 OACK packet and\r
+  returns the number of options that were found and optionally a list of pointers to\r
   the options in the packet.\r
   If one or more of the option fields are not valid, then EFI_PROTOCOL_ERROR is returned\r
   and *OptionCount and *OptionList stop at the last valid option.\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
   @param[in]  PacketLen          Length of the OACK packet to be parsed.\r
-  @param[in]  Packet             Pointer to the OACK packet to be parsed. \r
-  @param[out] OptionCount        Pointer to the number of options in the following OptionList. \r
-  @param[out] OptionList         Pointer to EFI_MTFTP6_OPTION storage. Each pointer in the \r
-                                 OptionList points to the corresponding MTFTP option buffer \r
-                                 in the Packet. Call the EFI Boot Service FreePool() to \r
-                                 release the OptionList if the options in this OptionList \r
-                                 are not needed any more. \r
-\r
-  @retval  EFI_SUCCESS           The OACK packet was valid and the OptionCount and \r
+  @param[in]  Packet             Pointer to the OACK packet to be parsed.\r
+  @param[out] OptionCount        Pointer to the number of options in the following OptionList.\r
+  @param[out] OptionList         Pointer to EFI_MTFTP6_OPTION storage. Each pointer in the\r
+                                 OptionList points to the corresponding MTFTP option buffer\r
+                                 in the Packet. Call the EFI Boot Service FreePool() to\r
+                                 release the OptionList if the options in this OptionList\r
+                                 are not needed any more.\r
+\r
+  @retval  EFI_SUCCESS           The OACK packet was valid and the OptionCount and\r
                                  OptionList parameters have been updated.\r
   @retval  EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
                                  - PacketLen is 0.\r
@@ -622,8 +613,8 @@ EFI_STATUS
   @retval  EFI_PROTOCOL_ERROR    One or more of the option fields is invalid.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_PARSE_OPTIONS)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN UINT32                   PacketLen,\r
@@ -635,36 +626,31 @@ EFI_STATUS
 /**\r
   Download a file from an MTFTPv6 server.\r
 \r
-  The ReadFile() function is used to initialize and start an MTFTPv6 download process and \r
-  optionally wait for completion. When the download operation completes, whether successfully or \r
-  not, the Token.Status field is updated by the EFI MTFTPv6 Protocol driver and then \r
+  The ReadFile() function is used to initialize and start an MTFTPv6 download process and\r
+  optionally wait for completion. When the download operation completes, whether successfully or\r
+  not, the Token.Status field is updated by the EFI MTFTPv6 Protocol driver and then\r
   Token.Event is signaled if it is not NULL.\r
-  \r
+\r
   Data can be downloaded from the MTFTPv6 server into either of the following locations:\r
-  - A fixed buffer that is pointed to by Token.Buffer \r
-  - A download service function that is pointed to by Token.CheckPacket \r
+  - A fixed buffer that is pointed to by Token.Buffer\r
+  - A download service function that is pointed to by Token.CheckPacket\r
 \r
-  If both Token.Buffer and Token.CheckPacket are used, then Token.CheckPacket \r
+  If both Token.Buffer and Token.CheckPacket are used, then Token.CheckPacket\r
   will be called first. If the call is successful, the packet will be stored in Token.Buffer.\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
-  @param[in]  Token              Pointer to the token structure to provide the parameters that are \r
+  @param[in]  Token              Pointer to the token structure to provide the parameters that are\r
                                  used in this operation.\r
 \r
   @retval  EFI_SUCCESS              The data file has been transferred successfully.\r
   @retval  EFI_OUT_OF_RESOURCES     Required system resources could not be allocated.\r
   @retval  EFI_BUFFER_TOO_SMALL     BufferSize is not zero but not large enough to hold the\r
                                     downloaded data in downloading process.\r
-                                    Note: It does not match UEFI 2.3 Specification.\r
   @retval  EFI_ABORTED              Current operation is aborted by user.\r
   @retval  EFI_NETWORK_UNREACHABLE  An ICMP network unreachable error packet was received.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_HOST_UNREACHABLE     An ICMP host unreachable error packet was received.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_PROTOCOL_UNREACHABLE An ICMP protocol unreachable error packet was received.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_PORT_UNREACHABLE     An ICMP port unreachable error packet was received.\r
-                                    Note: It is not defined in UEFI 2.3 Specification.\r
   @retval  EFI_ICMP_ERROR           An ICMP ERROR packet was received.\r
   @retval  EFI_TIMEOUT              No responses were received from the MTFTPv6 server.\r
   @retval  EFI_TFTP_ERROR           An MTFTPv6 ERROR packet was received.\r
@@ -672,8 +658,8 @@ EFI_STATUS
   @retval  EFI_NO_MEDIA             There was a media error.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_READ_FILE)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_TOKEN         *Token\r
@@ -682,25 +668,25 @@ EFI_STATUS
 /**\r
   Send a file to an MTFTPv6 server. May be unsupported in some implementations.\r
 \r
-  The WriteFile() function is used to initialize an uploading operation with the given option list \r
-  and optionally wait for completion. If one or more of the options is not supported by the server, the \r
-  unsupported options are ignored and a standard TFTP process starts instead. When the upload \r
-  process completes, whether successfully or not, Token.Event is signaled, and the EFI MTFTPv6 \r
+  The WriteFile() function is used to initialize an uploading operation with the given option list\r
+  and optionally wait for completion. If one or more of the options is not supported by the server, the\r
+  unsupported options are ignored and a standard TFTP process starts instead. When the upload\r
+  process completes, whether successfully or not, Token.Event is signaled, and the EFI MTFTPv6\r
   Protocol driver updates Token.Status.\r
 \r
   The caller can supply the data to be uploaded in the following two modes:\r
   - Through the user-provided buffer\r
   - Through a callback function\r
 \r
-  With the user-provided buffer, the Token.BufferSize field indicates the length of the buffer, \r
-  and the driver will upload the data in the buffer. With an EFI_MTFTP6_PACKET_NEEDED \r
-  callback function, the driver will call this callback function to get more data from the user to upload. \r
-  See the definition of EFI_MTFTP6_PACKET_NEEDED for more information. These two modes \r
-  cannot be used at the same time. The callback function will be ignored if the user provides the \r
+  With the user-provided buffer, the Token.BufferSize field indicates the length of the buffer,\r
+  and the driver will upload the data in the buffer. With an EFI_MTFTP6_PACKET_NEEDED\r
+  callback function, the driver will call this callback function to get more data from the user to upload.\r
+  See the definition of EFI_MTFTP6_PACKET_NEEDED for more information. These two modes\r
+  cannot be used at the same time. The callback function will be ignored if the user provides the\r
   buffer.\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
-  @param[in]  Token              Pointer to the token structure to provide the parameters that are \r
+  @param[in]  Token              Pointer to the token structure to provide the parameters that are\r
                                  used in this operation.\r
 \r
   @retval  EFI_SUCCESS           The upload session has started.\r
@@ -713,10 +699,10 @@ EFI_STATUS
                                  - One or more options in Token.OptionList have wrong format.\r
                                  - Token.Buffer and Token.PacketNeeded are both NULL.\r
                                  - Token.OverrideData.ServerIp is not valid unicast IPv6 addresses.\r
-  @retval  EFI_UNSUPPORTED       One or more options in the Token.OptionList are not \r
+  @retval  EFI_UNSUPPORTED       One or more options in the Token.OptionList are not\r
                                  supported by this implementation.\r
   @retval  EFI_NOT_STARTED       The EFI MTFTPv6 Protocol driver has not been started.\r
-  @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source \r
+  @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source\r
                                  address for this instance, but no source address was available for use.\r
   @retval  EFI_ALREADY_STARTED   This Token is already being used in another MTFTPv6 session.\r
   @retval  EFI_OUT_OF_RESOURCES  Required system resources could not be allocated.\r
@@ -724,8 +710,8 @@ EFI_STATUS
   @retval  EFI_DEVICE_ERROR      An unexpected network error or system error occurred.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_WRITE_FILE)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_TOKEN         *Token\r
@@ -734,31 +720,31 @@ EFI_STATUS
 /**\r
   Download a data file directory from an MTFTPv6 server. May be unsupported in some implementations.\r
 \r
-  The ReadDirectory() function is used to return a list of files on the MTFTPv6 server that are \r
-  logically (or operationally) related to Token.Filename. The directory request packet that is sent \r
+  The ReadDirectory() function is used to return a list of files on the MTFTPv6 server that are\r
+  logically (or operationally) related to Token.Filename. The directory request packet that is sent\r
   to the server is built with the option list that was provided by caller, if present.\r
-  \r
+\r
   The file information that the server returns is put into either of the following locations:\r
-  - A fixed buffer that is pointed to by Token.Buffer \r
-  - A download service function that is pointed to by Token.CheckPacket \r
-  \r
-  If both Token.Buffer and Token.CheckPacket are used, then Token.CheckPacket \r
+  - A fixed buffer that is pointed to by Token.Buffer\r
+  - A download service function that is pointed to by Token.CheckPacket\r
+\r
+  If both Token.Buffer and Token.CheckPacket are used, then Token.CheckPacket\r
   will be called first. If the call is successful, the packet will be stored in Token.Buffer.\r
-  \r
-  The returned directory listing in the Token.Buffer or EFI_MTFTP6_PACKET consists of a list \r
-  of two or three variable-length ASCII strings, each terminated by a null character, for each file in the \r
-  directory. If the multicast option is involved, the first field of each directory entry is the static \r
-  multicast IP address and UDP port number that is associated with the file name. The format of the \r
-  field is ip:ip:ip:ip:port. If the multicast option is not involved, this field and its terminating \r
+\r
+  The returned directory listing in the Token.Buffer or EFI_MTFTP6_PACKET consists of a list\r
+  of two or three variable-length ASCII strings, each terminated by a null character, for each file in the\r
+  directory. If the multicast option is involved, the first field of each directory entry is the static\r
+  multicast IP address and UDP port number that is associated with the file name. The format of the\r
+  field is ip:ip:ip:ip:port. If the multicast option is not involved, this field and its terminating\r
   null character are not present.\r
-  \r
-  The next field of each directory entry is the file name and the last field is the file information string. \r
-  The information string contains the file size and the create/modify timestamp. The format of the \r
-  information string is filesize yyyy-mm-dd hh:mm:ss:ffff. The timestamp is \r
+\r
+  The next field of each directory entry is the file name and the last field is the file information string.\r
+  The information string contains the file size and the create/modify timestamp. The format of the\r
+  information string is filesize yyyy-mm-dd hh:mm:ss:ffff. The timestamp is\r
   Coordinated Universal Time (UTC; also known as Greenwich Mean Time [GMT]).\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
-  @param[in]  Token              Pointer to the token structure to provide the parameters that are \r
+  @param[in]  Token              Pointer to the token structure to provide the parameters that are\r
                                  used in this operation.\r
 \r
   @retval  EFI_SUCCESS           The MTFTPv6 related file "directory" has been downloaded.\r
@@ -771,10 +757,10 @@ EFI_STATUS
                                  - One or more options in Token.OptionList have wrong format.\r
                                  - Token.Buffer and Token.CheckPacket are both NULL.\r
                                  - Token.OverrideData.ServerIp is not valid unicast IPv6 addresses.\r
-  @retval  EFI_UNSUPPORTED       One or more options in the Token.OptionList are not \r
+  @retval  EFI_UNSUPPORTED       One or more options in the Token.OptionList are not\r
                                  supported by this implementation.\r
   @retval  EFI_NOT_STARTED       The EFI MTFTPv6 Protocol driver has not been started.\r
-  @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source \r
+  @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source\r
                                  address for this instance, but no source address was available for use.\r
   @retval  EFI_ALREADY_STARTED   This Token is already being used in another MTFTPv6 session.\r
   @retval  EFI_OUT_OF_RESOURCES  Required system resources could not be allocated.\r
@@ -782,29 +768,29 @@ EFI_STATUS
   @retval  EFI_DEVICE_ERROR      An unexpected network error or system error occurred.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EFI_MTFTP6_READ_DIRECTORY)(\r
   IN EFI_MTFTP6_PROTOCOL      *This,\r
   IN EFI_MTFTP6_TOKEN         *Token\r
 );\r
 \r
 /**\r
-  Polls for incoming data packets and processes outgoing data packets. \r
+  Polls for incoming data packets and processes outgoing data packets.\r
 \r
-  The Poll() function can be used by network drivers and applications to increase the rate that data \r
+  The Poll() function can be used by network drivers and applications to increase the rate that data\r
   packets are moved between the communications device and the transmit and receive queues.\r
-  In some systems, the periodic timer event in the managed network driver may not poll the \r
-  underlying communications device fast enough to transmit and/or receive all data packets without \r
-  missing incoming packets or dropping outgoing packets. Drivers and applications that are \r
-  experiencing packet loss should try calling the Poll() function more often. \r
+  In some systems, the periodic timer event in the managed network driver may not poll the\r
+  underlying communications device fast enough to transmit and/or receive all data packets without\r
+  missing incoming packets or dropping outgoing packets. Drivers and applications that are\r
+  experiencing packet loss should try calling the Poll() function more often.\r
 \r
   @param[in]  This               Pointer to the EFI_MTFTP6_PROTOCOL instance.\r
 \r
   @retval  EFI_SUCCESS           Incoming or outgoing data was processed.\r
   @retval  EFI_NOT_STARTED       This EFI MTFTPv6 Protocol instance has not been started.\r
   @retval  EFI_INVALID_PARAMETER This is NULL.\r
-  @retval  EFI_DEVICE_ERROR      An unexpected system or network error occurred. \r
+  @retval  EFI_DEVICE_ERROR      An unexpected system or network error occurred.\r
   @retval  EFI_TIMEOUT           Data was dropped out of the transmit and/or receive queue.\r
                                  Consider increasing the polling rate.\r
 \r
@@ -816,8 +802,8 @@ EFI_STATUS
   );\r
 \r
 ///\r
-/// The EFI_MTFTP6_PROTOCOL is designed to be used by UEFI drivers and applications to transmit \r
-/// and receive data files. The EFI MTFTPv6 Protocol driver uses the underlying EFI UDPv6 Protocol \r
+/// The EFI_MTFTP6_PROTOCOL is designed to be used by UEFI drivers and applications to transmit\r
+/// and receive data files. The EFI MTFTPv6 Protocol driver uses the underlying EFI UDPv6 Protocol\r
 /// driver and EFI IPv6 Protocol driver.\r
 ///\r
 struct _EFI_MTFTP6_PROTOCOL {\r
index 3ea69c2c7e100deff360a3592c650033a35d62ec..82c7344c3e7a149e3a32c87582aac8b2f0cab48b 100644 (file)
@@ -13,7 +13,7 @@
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  @par Revision Reference:          \r
+  @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.0\r
 \r
 **/\r
@@ -119,32 +119,31 @@ typedef struct {
 \r
 typedef struct {\r
   ///\r
-  /// The Status in the CompletionToken will be set to one of \r
-  /// the following values if the active open succeeds or an unexpected \r
+  /// The Status in the CompletionToken will be set to one of\r
+  /// the following values if the active open succeeds or an unexpected\r
   /// error happens:\r
-  /// EFI_SUCCESS:              The active open succeeds and the instance's \r
+  /// EFI_SUCCESS:              The active open succeeds and the instance's\r
   ///                           state is Tcp4StateEstablished.\r
   /// EFI_CONNECTION_RESET:     The connect fails because the connection is reset\r
   ///                           either by instance itself or the communication peer.\r
   /// EFI_CONNECTION_REFUSED:   The connect fails because this connection is initiated with\r
   ///                           an active open and the connection is refused.\r
-  ///                           Note: It is not defined in UEFI 2.3 Specification.\r
   /// EFI_ABORTED:              The active open is aborted.\r
-  /// EFI_TIMEOUT:              The connection establishment timer expires and \r
+  /// EFI_TIMEOUT:              The connection establishment timer expires and\r
   ///                           no more specific information is available.\r
-  /// EFI_NETWORK_UNREACHABLE:  The active open fails because \r
-  ///                           an ICMP network unreachable error is received. \r
-  /// EFI_HOST_UNREACHABLE:     The active open fails because an \r
-  ///                           ICMP host unreachable error is received. \r
-  /// EFI_PROTOCOL_UNREACHABLE: The active open fails \r
+  /// EFI_NETWORK_UNREACHABLE:  The active open fails because\r
+  ///                           an ICMP network unreachable error is received.\r
+  /// EFI_HOST_UNREACHABLE:     The active open fails because an\r
+  ///                           ICMP host unreachable error is received.\r
+  /// EFI_PROTOCOL_UNREACHABLE: The active open fails\r
   ///                           because an ICMP protocol unreachable error is received.\r
-  /// EFI_PORT_UNREACHABLE:     The connection establishment \r
+  /// EFI_PORT_UNREACHABLE:     The connection establishment\r
   ///                           timer times out and an ICMP port unreachable error is received.\r
   /// EFI_ICMP_ERROR:           The connection establishment timer timeout and some other ICMP\r
   ///                           error is received.\r
   /// EFI_DEVICE_ERROR:         An unexpected system or network error occurred.\r
   /// EFI_NO_MEDIA:             There was a media error.\r
-  /// \r
+  ///\r
   EFI_TCP4_COMPLETION_TOKEN CompletionToken;\r
 } EFI_TCP4_CONNECTION_TOKEN;\r
 \r
@@ -174,31 +173,30 @@ typedef struct {
 } EFI_TCP4_TRANSMIT_DATA;\r
 \r
 typedef struct {\r
-  /// \r
-  /// When transmission finishes or meets any unexpected error it will \r
+  ///\r
+  /// When transmission finishes or meets any unexpected error it will\r
   /// be set to one of the following values:\r
-  /// EFI_SUCCESS:              The receiving or transmission operation \r
+  /// EFI_SUCCESS:              The receiving or transmission operation\r
   ///                           completes successfully.\r
-  /// EFI_CONNECTION_FIN:       The receiving operation fails because the communication peer \r
-  ///                           has closed the connection and there is no more data in the \r
+  /// EFI_CONNECTION_FIN:       The receiving operation fails because the communication peer\r
+  ///                           has closed the connection and there is no more data in the\r
   ///                           receive buffer of the instance.\r
-  ///                           Note: It is not defined in UEFI 2.3 Specification.\r
   /// EFI_CONNECTION_RESET:     The receiving or transmission operation fails\r
-  ///                           because this connection is reset either by instance \r
+  ///                           because this connection is reset either by instance\r
   ///                           itself or the communication peer.\r
   /// EFI_ABORTED:              The receiving or transmission is aborted.\r
-  /// EFI_TIMEOUT:              The transmission timer expires and no more \r
+  /// EFI_TIMEOUT:              The transmission timer expires and no more\r
   ///                           specific information is available.\r
-  /// EFI_NETWORK_UNREACHABLE:  The transmission fails \r
-  ///                           because an ICMP network unreachable error is received. \r
-  /// EFI_HOST_UNREACHABLE:     The transmission fails because an \r
-  ///                           ICMP host unreachable error is received. \r
-  /// EFI_PROTOCOL_UNREACHABLE: The transmission fails \r
-  ///                           because an ICMP protocol unreachable error is received. \r
-  /// EFI_PORT_UNREACHABLE:     The transmission fails and an \r
-  ///                           ICMP port unreachable error is received. \r
-  /// EFI_ICMP_ERROR:           The transmission fails and some other \r
-  ///                           ICMP error is received. \r
+  /// EFI_NETWORK_UNREACHABLE:  The transmission fails\r
+  ///                           because an ICMP network unreachable error is received.\r
+  /// EFI_HOST_UNREACHABLE:     The transmission fails because an\r
+  ///                           ICMP host unreachable error is received.\r
+  /// EFI_PROTOCOL_UNREACHABLE: The transmission fails\r
+  ///                           because an ICMP protocol unreachable error is received.\r
+  /// EFI_PORT_UNREACHABLE:     The transmission fails and an\r
+  ///                           ICMP port unreachable error is received.\r
+  /// EFI_ICMP_ERROR:           The transmission fails and some other\r
+  ///                           ICMP error is received.\r
   /// EFI_DEVICE_ERROR:         An unexpected system or network error occurs.\r
   /// EFI_NO_MEDIA:             There was a media error.\r
   ///\r
@@ -512,11 +510,10 @@ EFI_STATUS
   @retval  EFI_NOT_STARTED         This instance hasn't been configured.\r
   @retval  EFI_NO_MAPPING          When using the default address, configuration\r
                                    (DHCP, BOOTP,RARP, etc.) hasn't finished yet.\r
-  @retval  EFI_NOT_FOUND           The asynchronous I/O request isn't found in the \r
-                                   transmission or receive queue. It has either \r
+  @retval  EFI_NOT_FOUND           The asynchronous I/O request isn't found in the\r
+                                   transmission or receive queue. It has either\r
                                    completed or wasn't issued by Transmit() and Receive().\r
   @retval  EFI_UNSUPPORTED         The implementation does not support this function.\r
-                                   Note: It is not defined in UEFI 2.3 Specification.\r
 \r
 **/\r
 typedef\r
@@ -547,10 +544,10 @@ EFI_STATUS
   );\r
 \r
 ///\r
-/// The EFI_TCP4_PROTOCOL defines the EFI TCPv4 Protocol child to be used by \r
-/// any network drivers or applications to send or receive data stream. \r
-/// It can either listen on a specified port as a service or actively connected \r
-/// to remote peer as a client. Each instance has its own independent settings, \r
+/// The EFI_TCP4_PROTOCOL defines the EFI TCPv4 Protocol child to be used by\r
+/// any network drivers or applications to send or receive data stream.\r
+/// It can either listen on a specified port as a service or actively connected\r
+/// to remote peer as a client. Each instance has its own independent settings,\r
 /// such as the routing table.\r
 ///\r
 struct _EFI_TCP4_PROTOCOL {\r
index fc1f9ef04ef198be6c33a34e80fe6b11e7d22f6d..ed8d44bdb547b00a5ee4e3b29118ed627213e3c1 100644 (file)
@@ -13,7 +13,7 @@
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  @par Revision Reference:          \r
+  @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.2\r
 \r
 **/\r
@@ -42,33 +42,33 @@ typedef struct _EFI_TCP6_PROTOCOL EFI_TCP6_PROTOCOL;
 ///\r
 typedef struct {\r
   ///\r
-  /// The EFI TCPv6 Protocol instance handle that is using this \r
+  /// The EFI TCPv6 Protocol instance handle that is using this\r
   /// address/port pair.\r
   ///\r
   EFI_HANDLE        InstanceHandle;\r
-  /// \r
-  /// The local IPv6 address to which this TCP instance is bound. Set \r
-  /// to 0::/128, if this TCP instance is configured to listen on all \r
+  ///\r
+  /// The local IPv6 address to which this TCP instance is bound. Set\r
+  /// to 0::/128, if this TCP instance is configured to listen on all\r
   /// available source addresses.\r
-  /// \r
+  ///\r
   EFI_IPv6_ADDRESS  LocalAddress;\r
-  /// \r
+  ///\r
   /// The local port number in host byte order.\r
-  /// \r
+  ///\r
   UINT16            LocalPort;\r
-  /// \r
-  /// The remote IPv6 address. It may be 0::/128 if this TCP instance is \r
-  /// not connected to any remote host. \r
-  /// \r
+  ///\r
+  /// The remote IPv6 address. It may be 0::/128 if this TCP instance is\r
+  /// not connected to any remote host.\r
+  ///\r
   EFI_IPv6_ADDRESS  RemoteAddress;\r
-  /// \r
-  /// The remote port number in host byte order. It may be zero if this \r
+  ///\r
+  /// The remote port number in host byte order. It may be zero if this\r
   /// TCP instance is not connected to any remote host.\r
-  /// \r
+  ///\r
   UINT16            RemotePort;\r
 } EFI_TCP6_SERVICE_POINT;\r
 \r
-/// \r
+///\r
 /// EFI_TCP6_VARIABLE_DATA\r
 ///\r
 typedef struct {\r
@@ -81,46 +81,46 @@ typedef struct {
 /// EFI_TCP6_ACCESS_POINT\r
 ///\r
 typedef struct {\r
-  /// \r
-  /// The local IP address assigned to this TCP instance. The EFI \r
-  /// TCPv6 driver will only deliver incoming packets whose \r
-  /// destination addresses exactly match the IP address. Set to zero to \r
-  /// let the underlying IPv6 driver choose a source address. If not zero \r
-  /// it must be one of the configured IP addresses in the underlying \r
+  ///\r
+  /// The local IP address assigned to this TCP instance. The EFI\r
+  /// TCPv6 driver will only deliver incoming packets whose\r
+  /// destination addresses exactly match the IP address. Set to zero to\r
+  /// let the underlying IPv6 driver choose a source address. If not zero\r
+  /// it must be one of the configured IP addresses in the underlying\r
   /// IPv6 driver.\r
-  /// \r
+  ///\r
   EFI_IPv6_ADDRESS  StationAddress;\r
-  /// \r
-  /// The local port number to which this EFI TCPv6 Protocol instance \r
-  /// is bound. If the instance doesn't care the local port number, set \r
+  ///\r
+  /// The local port number to which this EFI TCPv6 Protocol instance\r
+  /// is bound. If the instance doesn't care the local port number, set\r
   /// StationPort to zero to use an ephemeral port.\r
-  /// \r
+  ///\r
   UINT16            StationPort;\r
-  /// \r
-  /// The remote IP address to which this EFI TCPv6 Protocol instance \r
-  /// is connected. If ActiveFlag is FALSE (i.e. a passive TCPv6 \r
-  /// instance), the instance only accepts connections from the \r
-  /// RemoteAddress. If ActiveFlag is TRUE the instance will \r
-  /// connect to the RemoteAddress, i.e., outgoing segments will be \r
-  /// sent to this address and only segments from this address will be \r
-  /// delivered to the application. When ActiveFlag is FALSE, it \r
-  /// can be set to zero and means that incoming connection requests \r
+  ///\r
+  /// The remote IP address to which this EFI TCPv6 Protocol instance\r
+  /// is connected. If ActiveFlag is FALSE (i.e. a passive TCPv6\r
+  /// instance), the instance only accepts connections from the\r
+  /// RemoteAddress. If ActiveFlag is TRUE the instance will\r
+  /// connect to the RemoteAddress, i.e., outgoing segments will be\r
+  /// sent to this address and only segments from this address will be\r
+  /// delivered to the application. When ActiveFlag is FALSE, it\r
+  /// can be set to zero and means that incoming connection requests\r
   /// from any address will be accepted.\r
-  /// \r
+  ///\r
   EFI_IPv6_ADDRESS  RemoteAddress;\r
-  /// \r
-  /// The remote port to which this EFI TCPv6 Protocol instance \r
-  /// connects or from which connection request will be accepted by \r
-  /// this EFI TCPv6 Protocol instance. If ActiveFlag is FALSE it \r
-  /// can be zero and means that incoming connection request from \r
-  /// any port will be accepted. Its value can not be zero when \r
+  ///\r
+  /// The remote port to which this EFI TCPv6 Protocol instance\r
+  /// connects or from which connection request will be accepted by\r
+  /// this EFI TCPv6 Protocol instance. If ActiveFlag is FALSE it\r
+  /// can be zero and means that incoming connection request from\r
+  /// any port will be accepted. Its value can not be zero when\r
   /// ActiveFlag is TRUE.\r
-  /// \r
+  ///\r
   UINT16            RemotePort;\r
-  /// \r
-  /// Set it to TRUE to initiate an active open. Set it to FALSE to \r
+  ///\r
+  /// Set it to TRUE to initiate an active open. Set it to FALSE to\r
   /// initiate a passive open to act as a server.\r
-  /// \r
+  ///\r
   BOOLEAN           ActiveFlag;\r
 } EFI_TCP6_ACCESS_POINT;\r
 \r
@@ -128,94 +128,94 @@ typedef struct {
 /// EFI_TCP6_OPTION\r
 ///\r
 typedef struct {\r
-  /// \r
+  ///\r
   /// The size of the TCP receive buffer.\r
-  /// \r
+  ///\r
   UINT32   ReceiveBufferSize;\r
-  /// \r
+  ///\r
   /// The size of the TCP send buffer.\r
-  /// \r
+  ///\r
   UINT32   SendBufferSize;\r
-  /// \r
-  /// The length of incoming connect request queue for a passive \r
+  ///\r
+  /// The length of incoming connect request queue for a passive\r
   /// instance. When set to zero, the value is implementation specific.\r
-  /// \r
+  ///\r
   UINT32   MaxSynBackLog;\r
-  /// \r
-  /// The maximum seconds a TCP instance will wait for before a TCP \r
-  /// connection established. When set to zero, the value is \r
+  ///\r
+  /// The maximum seconds a TCP instance will wait for before a TCP\r
+  /// connection established. When set to zero, the value is\r
   /// implementation specific.\r
-  /// \r
+  ///\r
   UINT32   ConnectionTimeout;\r
   ///\r
-  ///The number of times TCP will attempt to retransmit a packet on \r
-  ///an established connection. When set to zero, the value is \r
+  ///The number of times TCP will attempt to retransmit a packet on\r
+  ///an established connection. When set to zero, the value is\r
   ///implementation specific.\r
   ///\r
   UINT32   DataRetries;\r
-  /// \r
-  /// How many seconds to wait in the FIN_WAIT_2 states for a final \r
-  /// FIN flag before the TCP instance is closed. This timeout is in \r
-  /// effective only if the application has called Close() to \r
-  /// disconnect the connection completely. It is also called \r
-  /// FIN_WAIT_2 timer in other implementations. When set to zero, \r
-  /// it should be disabled because the FIN_WAIT_2 timer itself is \r
+  ///\r
+  /// How many seconds to wait in the FIN_WAIT_2 states for a final\r
+  /// FIN flag before the TCP instance is closed. This timeout is in\r
+  /// effective only if the application has called Close() to\r
+  /// disconnect the connection completely. It is also called\r
+  /// FIN_WAIT_2 timer in other implementations. When set to zero,\r
+  /// it should be disabled because the FIN_WAIT_2 timer itself is\r
   /// against the standard. The default value is 60.\r
-  /// \r
+  ///\r
   UINT32   FinTimeout;\r
-  ///  \r
-  /// How many seconds to wait in TIME_WAIT state before the TCP \r
-  /// instance is closed. The timer is disabled completely to provide a \r
-  /// method to close the TCP connection quickly if it is set to zero. It \r
+  ///\r
+  /// How many seconds to wait in TIME_WAIT state before the TCP\r
+  /// instance is closed. The timer is disabled completely to provide a\r
+  /// method to close the TCP connection quickly if it is set to zero. It\r
   /// is against the related RFC documents.\r
-  /// \r
+  ///\r
   UINT32   TimeWaitTimeout;\r
-  /// \r
-  /// The maximum number of TCP keep-alive probes to send before \r
-  /// giving up and resetting the connection if no response from the \r
+  ///\r
+  /// The maximum number of TCP keep-alive probes to send before\r
+  /// giving up and resetting the connection if no response from the\r
   /// other end. Set to zero to disable keep-alive probe.\r
-  /// \r
+  ///\r
   UINT32   KeepAliveProbes;\r
-  /// \r
-  /// The number of seconds a connection needs to be idle before TCP \r
-  /// sends out periodical keep-alive probes. When set to zero, the \r
+  ///\r
+  /// The number of seconds a connection needs to be idle before TCP\r
+  /// sends out periodical keep-alive probes. When set to zero, the\r
   /// value is implementation specific. It should be ignored if keep-\r
   /// alive probe is disabled.\r
-  /// \r
+  ///\r
   UINT32   KeepAliveTime;\r
-  /// \r
-  /// The number of seconds between TCP keep-alive probes after the \r
-  /// periodical keep-alive probe if no response. When set to zero, the \r
+  ///\r
+  /// The number of seconds between TCP keep-alive probes after the\r
+  /// periodical keep-alive probe if no response. When set to zero, the\r
   /// value is implementation specific. It should be ignored if keep-\r
   /// alive probe is disabled.\r
-  /// \r
+  ///\r
   UINT32   KeepAliveInterval;\r
-  /// \r
-  /// Set it to TRUE to enable the Nagle algorithm as defined in \r
+  ///\r
+  /// Set it to TRUE to enable the Nagle algorithm as defined in\r
   /// RFC896. Set it to FALSE to disable it.\r
-  /// \r
+  ///\r
   BOOLEAN  EnableNagle;\r
-  /// \r
-  /// Set it to TRUE to enable TCP timestamps option as defined in \r
+  ///\r
+  /// Set it to TRUE to enable TCP timestamps option as defined in\r
   /// RFC1323. Set to FALSE to disable it.\r
-  /// \r
+  ///\r
   BOOLEAN  EnableTimeStamp;\r
-  /// \r
-  /// Set it to TRUE to enable TCP window scale option as defined in \r
-  /// RFC1323. Set it to FALSE to disable it. \r
-  /// \r
+  ///\r
+  /// Set it to TRUE to enable TCP window scale option as defined in\r
+  /// RFC1323. Set it to FALSE to disable it.\r
+  ///\r
   BOOLEAN  EnableWindowScaling;\r
-  /// \r
-  /// Set it to TRUE to enable selective acknowledge mechanism \r
-  /// described in RFC 2018. Set it to FALSE to disable it. \r
-  /// Implementation that supports SACK can optionally support \r
+  ///\r
+  /// Set it to TRUE to enable selective acknowledge mechanism\r
+  /// described in RFC 2018. Set it to FALSE to disable it.\r
+  /// Implementation that supports SACK can optionally support\r
   /// DSAK as defined in RFC 2883.\r
-  /// \r
+  ///\r
   BOOLEAN  EnableSelectiveAck;\r
-  /// \r
-  /// Set it to TRUE to enable path MTU discovery as defined in \r
+  ///\r
+  /// Set it to TRUE to enable path MTU discovery as defined in\r
   /// RFC 1191. Set to FALSE to disable it.\r
-  /// \r
+  ///\r
   BOOLEAN  EnablePathMtuDiscovery;\r
 } EFI_TCP6_OPTION;\r
 \r
@@ -232,11 +232,11 @@ typedef struct {
   ///\r
   UINT8                 HopLimit;\r
   ///\r
-  /// Used to specify TCP communication end settings for a TCP instance. \r
+  /// Used to specify TCP communication end settings for a TCP instance.\r
   ///\r
   EFI_TCP6_ACCESS_POINT AccessPoint;\r
   ///\r
-  /// Used to configure the advance TCP option for a connection. If set \r
+  /// Used to configure the advance TCP option for a connection. If set\r
   /// to NULL, implementation specific options for TCP connection will be used.\r
   ///\r
   EFI_TCP6_OPTION       *ControlOption;\r
@@ -261,16 +261,16 @@ typedef enum {
 \r
 ///\r
 /// EFI_TCP6_COMPLETION_TOKEN\r
-/// is used as a common header for various asynchronous tokens. \r
+/// is used as a common header for various asynchronous tokens.\r
 ///\r
 typedef struct {\r
   ///\r
-  /// The Event to signal after request is finished and Status field is \r
-  /// updated by the EFI TCPv6 Protocol driver. \r
-  /// \r
+  /// The Event to signal after request is finished and Status field is\r
+  /// updated by the EFI TCPv6 Protocol driver.\r
+  ///\r
   EFI_EVENT   Event;\r
   ///\r
-  /// The result of the completed operation. \r
+  /// The result of the completed operation.\r
   ///\r
   EFI_STATUS  Status;\r
 } EFI_TCP6_COMPLETION_TOKEN;\r
@@ -282,33 +282,32 @@ typedef struct {
 ///\r
 typedef struct {\r
   ///\r
-  /// The Status in the CompletionToken will be set to one of \r
-  /// the following values if the active open succeeds or an unexpected \r
+  /// The Status in the CompletionToken will be set to one of\r
+  /// the following values if the active open succeeds or an unexpected\r
   /// error happens:\r
-  /// EFI_SUCCESS:              The active open succeeds and the instance's \r
+  /// EFI_SUCCESS:              The active open succeeds and the instance's\r
   ///                           state is Tcp6StateEstablished.\r
   /// EFI_CONNECTION_RESET:     The connect fails because the connection is reset\r
   ///                           either by instance itself or the communication peer.\r
-  /// EFI_CONNECTION_REFUSED:   The receiving or transmission operation fails because this \r
+  /// EFI_CONNECTION_REFUSED:   The receiving or transmission operation fails because this\r
   ///                           connection is refused.\r
-  ///                           Note: It is not defined in UEFI 2.3 Specification.\r
   /// EFI_ABORTED:              The active open is aborted.\r
-  /// EFI_TIMEOUT:              The connection establishment timer expires and \r
+  /// EFI_TIMEOUT:              The connection establishment timer expires and\r
   ///                           no more specific information is available.\r
-  /// EFI_NETWORK_UNREACHABLE:  The active open fails because \r
-  ///                           an ICMP network unreachable error is received. \r
-  /// EFI_HOST_UNREACHABLE:     The active open fails because an \r
-  ///                           ICMP host unreachable error is received. \r
-  /// EFI_PROTOCOL_UNREACHABLE: The active open fails \r
+  /// EFI_NETWORK_UNREACHABLE:  The active open fails because\r
+  ///                           an ICMP network unreachable error is received.\r
+  /// EFI_HOST_UNREACHABLE:     The active open fails because an\r
+  ///                           ICMP host unreachable error is received.\r
+  /// EFI_PROTOCOL_UNREACHABLE: The active open fails\r
   ///                           because an ICMP protocol unreachable error is received.\r
-  /// EFI_PORT_UNREACHABLE:     The connection establishment \r
+  /// EFI_PORT_UNREACHABLE:     The connection establishment\r
   ///                           timer times out and an ICMP port unreachable error is received.\r
-  /// EFI_ICMP_ERROR:           The connection establishment timer times \r
+  /// EFI_ICMP_ERROR:           The connection establishment timer times\r
   ///                           out and some other ICMP error is received.\r
   /// EFI_DEVICE_ERROR:         An unexpected system or network error occurred.\r
   /// EFI_SECURITY_VIOLATION:   The active open was failed because of IPSec policy check.\r
   /// EFI_NO_MEDIA:             There was a media error.\r
-  /// \r
+  ///\r
   EFI_TCP6_COMPLETION_TOKEN CompletionToken;\r
 } EFI_TCP6_CONNECTION_TOKEN;\r
 \r
@@ -318,10 +317,10 @@ typedef struct {
 ///\r
 typedef struct {\r
   ///\r
-  /// The Status in CompletionToken will be set to the \r
+  /// The Status in CompletionToken will be set to the\r
   /// following value if accept finishes:\r
-  /// EFI_SUCCESS:            A remote peer has successfully established a \r
-  ///                         connection to this instance. A new TCP instance has also been \r
+  /// EFI_SUCCESS:            A remote peer has successfully established a\r
+  ///                         connection to this instance. A new TCP instance has also been\r
   ///                         created for the connection.\r
   /// EFI_CONNECTION_RESET:   The accept fails because the connection is reset either\r
   ///                         by instance itself or communication peer.\r
@@ -334,7 +333,7 @@ typedef struct {
 \r
 ///\r
 /// EFI_TCP6_FRAGMENT_DATA\r
-/// allows multiple receive or transmit buffers to be specified. The \r
+/// allows multiple receive or transmit buffers to be specified. The\r
 /// purpose of this structure is to provide scattered read and write.\r
 ///\r
 typedef struct {\r
@@ -344,58 +343,58 @@ typedef struct {
 \r
 ///\r
 /// EFI_TCP6_RECEIVE_DATA\r
-/// When TCPv6 driver wants to deliver received data to the application, \r
+/// When TCPv6 driver wants to deliver received data to the application,\r
 /// it will pick up the first queued receiving token, update its\r
 /// Token->Packet.RxData then signal the Token->CompletionToken.Event.\r
 ///\r
 typedef struct {\r
   ///\r
-  /// Whether the data is urgent. When this flag is set, the instance is in \r
-  /// urgent mode. \r
+  /// Whether the data is urgent. When this flag is set, the instance is in\r
+  /// urgent mode.\r
   ///\r
   BOOLEAN                 UrgentFlag;\r
-  /// \r
-  /// When calling Receive() function, it is the byte counts of all \r
-  /// Fragmentbuffer in FragmentTable allocated by user. \r
-  /// When the token is signaled by TCPv6 driver it is the length of \r
+  ///\r
+  /// When calling Receive() function, it is the byte counts of all\r
+  /// Fragmentbuffer in FragmentTable allocated by user.\r
+  /// When the token is signaled by TCPv6 driver it is the length of\r
   /// received data in the fragments.\r
-  /// \r
+  ///\r
   UINT32                  DataLength;\r
-  /// \r
+  ///\r
   /// Number of fragments.\r
-  /// \r
+  ///\r
   UINT32                  FragmentCount;\r
-  /// \r
+  ///\r
   /// An array of fragment descriptors.\r
-  /// \r
+  ///\r
   EFI_TCP6_FRAGMENT_DATA  FragmentTable[1];\r
 } EFI_TCP6_RECEIVE_DATA;\r
 \r
 ///\r
 /// EFI_TCP6_TRANSMIT_DATA\r
 /// The EFI TCPv6 Protocol user must fill this data structure before sending a packet.\r
-/// The packet may contain multiple buffers in non-continuous memory locations. \r
+/// The packet may contain multiple buffers in non-continuous memory locations.\r
 ///\r
 typedef struct {\r
-  /// \r
-  /// Push If TRUE, data must be transmitted promptly, and the PUSH bit in \r
-  /// the last TCP segment created will be set. If FALSE, data \r
-  /// transmission may be delayed to combine with data from \r
+  ///\r
+  /// Push If TRUE, data must be transmitted promptly, and the PUSH bit in\r
+  /// the last TCP segment created will be set. If FALSE, data\r
+  /// transmission may be delayed to combine with data from\r
   /// subsequent Transmit()s for efficiency.\r
-  /// \r
+  ///\r
   BOOLEAN                 Push;\r
-  /// \r
-  /// The data in the fragment table are urgent and urgent point is in \r
+  ///\r
+  /// The data in the fragment table are urgent and urgent point is in\r
   /// effect if TRUE. Otherwise those data are NOT considered urgent.\r
-  /// \r
+  ///\r
   BOOLEAN                 Urgent;\r
   ///\r
-  /// Length of the data in the fragments. \r
+  /// Length of the data in the fragments.\r
   ///\r
   UINT32                  DataLength;\r
   ///\r
   /// Number of fragments.\r
-  /// \r
+  ///\r
   UINT32                  FragmentCount;\r
   ///\r
   /// An array of fragment descriptors.\r
@@ -405,48 +404,47 @@ typedef struct {
 \r
 ///\r
 /// EFI_TCP6_IO_TOKEN\r
-/// returns When transmission finishes or meets any unexpected error. \r
+/// returns When transmission finishes or meets any unexpected error.\r
 ///\r
 typedef struct {\r
-  /// \r
-  /// When transmission finishes or meets any unexpected error it will \r
+  ///\r
+  /// When transmission finishes or meets any unexpected error it will\r
   /// be set to one of the following values:\r
-  /// EFI_SUCCESS:              The receiving or transmission operation \r
+  /// EFI_SUCCESS:              The receiving or transmission operation\r
   ///                           completes successfully.\r
-  /// EFI_CONNECTION_FIN:       The receiving operation fails because the communication peer \r
-  ///                           has closed the connection and there is no more data in the \r
+  /// EFI_CONNECTION_FIN:       The receiving operation fails because the communication peer\r
+  ///                           has closed the connection and there is no more data in the\r
   ///                           receive buffer of the instance.\r
-  ///                           Note: It is not defined in UEFI 2.3 Specification.\r
   /// EFI_CONNECTION_RESET:     The receiving or transmission operation fails\r
-  ///                           because this connection is reset either by instance \r
+  ///                           because this connection is reset either by instance\r
   ///                           itself or the communication peer.\r
   /// EFI_ABORTED:              The receiving or transmission is aborted.\r
-  /// EFI_TIMEOUT:              The transmission timer expires and no more \r
+  /// EFI_TIMEOUT:              The transmission timer expires and no more\r
   ///                           specific information is available.\r
-  /// EFI_NETWORK_UNREACHABLE:  The transmission fails \r
-  ///                           because an ICMP network unreachable error is received. \r
-  /// EFI_HOST_UNREACHABLE:     The transmission fails because an \r
-  ///                           ICMP host unreachable error is received. \r
-  /// EFI_PROTOCOL_UNREACHABLE: The transmission fails \r
-  ///                           because an ICMP protocol unreachable error is received. \r
-  /// EFI_PORT_UNREACHABLE:     The transmission fails and an \r
-  ///                           ICMP port unreachable error is received. \r
-  /// EFI_ICMP_ERROR:           The transmission fails and some other \r
-  ///                           ICMP error is received. \r
+  /// EFI_NETWORK_UNREACHABLE:  The transmission fails\r
+  ///                           because an ICMP network unreachable error is received.\r
+  /// EFI_HOST_UNREACHABLE:     The transmission fails because an\r
+  ///                           ICMP host unreachable error is received.\r
+  /// EFI_PROTOCOL_UNREACHABLE: The transmission fails\r
+  ///                           because an ICMP protocol unreachable error is received.\r
+  /// EFI_PORT_UNREACHABLE:     The transmission fails and an\r
+  ///                           ICMP port unreachable error is received.\r
+  /// EFI_ICMP_ERROR:           The transmission fails and some other\r
+  ///                           ICMP error is received.\r
   /// EFI_DEVICE_ERROR:         An unexpected system or network error occurs.\r
-  /// EFI_SECURITY_VIOLATION:   The receiving or transmission \r
+  /// EFI_SECURITY_VIOLATION:   The receiving or transmission\r
   ///                           operation was failed because of IPSec policy check\r
   /// EFI_NO_MEDIA:             There was a media error.\r
   ///\r
   EFI_TCP6_COMPLETION_TOKEN CompletionToken;\r
   union {\r
     ///\r
-    /// When this token is used for receiving, RxData is a pointer to \r
+    /// When this token is used for receiving, RxData is a pointer to\r
     /// EFI_TCP6_RECEIVE_DATA.\r
     ///\r
     EFI_TCP6_RECEIVE_DATA   *RxData;\r
-    /// \r
-    /// When this token is used for transmitting, TxData is a pointer to \r
+    ///\r
+    /// When this token is used for transmitting, TxData is a pointer to\r
     /// EFI_TCP6_TRANSMIT_DATA.\r
     ///\r
     EFI_TCP6_TRANSMIT_DATA  *TxData;\r
@@ -459,36 +457,36 @@ typedef struct {
 ///\r
 typedef struct {\r
   ///\r
-  /// When close finishes or meets any unexpected error it will be set \r
+  /// When close finishes or meets any unexpected error it will be set\r
   /// to one of the following values:\r
   /// EFI_SUCCESS:            The close operation completes successfully.\r
   /// EFI_ABORTED:            User called configure with NULL without close stopping.\r
   /// EFI_SECURITY_VIOLATION: The close operation was failed because of IPSec policy check.\r
-  /// \r
+  ///\r
   EFI_TCP6_COMPLETION_TOKEN CompletionToken;\r
-  /// \r
-  /// Abort the TCP connection on close instead of the standard TCP \r
-  /// close process when it is set to TRUE. This option can be used to \r
+  ///\r
+  /// Abort the TCP connection on close instead of the standard TCP\r
+  /// close process when it is set to TRUE. This option can be used to\r
   /// satisfy a fast disconnect.\r
-  /// \r
+  ///\r
   BOOLEAN                   AbortOnClose;\r
 } EFI_TCP6_CLOSE_TOKEN;\r
 \r
 /**\r
   Get the current operational status.\r
-        \r
+\r
   The GetModeData() function copies the current operational settings of this EFI TCPv6\r
   Protocol instance into user-supplied buffers. This function can also be used to retrieve\r
   the operational setting of underlying drivers such as IPv6, MNP, or SNP.\r
 \r
   @param[in]  This              Pointer to the EFI_TCP6_PROTOCOL instance.\r
   @param[out] Tcp6State         The buffer in which the current TCP state is returned.\r
-  @param[out] Tcp6ConfigData    The buffer in which the current TCP configuration is returned. \r
-  @param[out] Ip6ModeData       The buffer in which the current IPv6 configuration data used by \r
-                                the TCP instance is returned. \r
-  @param[out] MnpConfigData     The buffer in which the current MNP configuration data used \r
+  @param[out] Tcp6ConfigData    The buffer in which the current TCP configuration is returned.\r
+  @param[out] Ip6ModeData       The buffer in which the current IPv6 configuration data used by\r
+                                the TCP instance is returned.\r
+  @param[out] MnpConfigData     The buffer in which the current MNP configuration data used\r
                                 indirectly by the TCP instance is returned.\r
-  @param[out] SnpModeData       The buffer in which the current SNP mode data used indirectly by \r
+  @param[out] SnpModeData       The buffer in which the current SNP mode data used indirectly by\r
                                 the TCP instance is returned.\r
 \r
   @retval EFI_SUCCESS           The mode data was read.\r
@@ -514,17 +512,17 @@ EFI_STATUS
   The Configure() function does the following:\r
   - Initialize this TCP instance, i.e., initialize the communication end settings and\r
     specify active open or passive open for an instance.\r
-  - Reset this TCP instance brutally, i.e., cancel all pending asynchronous tokens, flush \r
+  - Reset this TCP instance brutally, i.e., cancel all pending asynchronous tokens, flush\r
     transmission and receiving buffer directly without informing the communication peer.\r
 \r
   No other TCPv6 Protocol operation except Poll() can be executed by this instance until\r
   it is configured properly. For an active TCP instance, after a proper configuration it\r
-  may call Connect() to initiates the three-way handshake. For a passive TCP instance, \r
-  its state will transit to Tcp6StateListen after configuration, and Accept() may be \r
+  may call Connect() to initiates the three-way handshake. For a passive TCP instance,\r
+  its state will transit to Tcp6StateListen after configuration, and Accept() may be\r
   called to listen the incoming TCP connection requests. If Tcp6ConfigData is set to NULL,\r
   the instance is reset. Resetting process will be done brutally, the state machine will\r
   be set to Tcp6StateClosed directly, the receive queue and transmit queue will be flushed,\r
-  and no traffic is allowed through this instance. \r
+  and no traffic is allowed through this instance.\r
 \r
   @param[in] This               Pointer to the EFI_TCP6_PROTOCOL instance.\r
   @param[in] Tcp6ConfigData     Pointer to the configure data to configure the instance.\r
@@ -532,19 +530,19 @@ EFI_STATUS
 \r
   @retval EFI_SUCCESS           The operational settings are set, changed, or reset\r
                                 successfully.\r
-  @retval EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source \r
-                                address for this instance, but no source address was available for \r
+  @retval EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source\r
+                                address for this instance, but no source address was available for\r
                                 use.\r
   @retval EFI_INVALID_PARAMETER One or more of the following conditions are TRUE:\r
                                 - This is NULL.\r
-                                - Tcp6ConfigData->AccessPoint.StationAddress is neither zero nor \r
+                                - Tcp6ConfigData->AccessPoint.StationAddress is neither zero nor\r
                                   one of the configured IP addresses in the underlying IPv6 driver.\r
-                                - Tcp6ConfigData->AccessPoint.RemoteAddress isn't a valid unicast \r
+                                - Tcp6ConfigData->AccessPoint.RemoteAddress isn't a valid unicast\r
                                   IPv6 address.\r
-                                - Tcp6ConfigData->AccessPoint.RemoteAddress is zero or \r
-                                  Tcp6ConfigData->AccessPoint.RemotePort is zero when \r
+                                - Tcp6ConfigData->AccessPoint.RemoteAddress is zero or\r
+                                  Tcp6ConfigData->AccessPoint.RemotePort is zero when\r
                                   Tcp6ConfigData->AccessPoint.ActiveFlag is TRUE.\r
-                                - A same access point has been configured in other TCP \r
+                                - A same access point has been configured in other TCP\r
                                   instance properly.\r
   @retval EFI_ACCESS_DENIED     Configuring TCP instance when it is configured without\r
                                 calling Configure() with NULL to reset it.\r
@@ -568,9 +566,9 @@ EFI_STATUS
   The Connect() function will initiate an active open to the remote peer configured\r
   in current TCP instance if it is configured active. If the connection succeeds or\r
   fails due to any error, the ConnectionToken->CompletionToken.Event will be signaled\r
-  and ConnectionToken->CompletionToken.Status will be updated accordingly. This \r
-  function can only be called for the TCP instance in Tcp6StateClosed state. The \r
-  instance will transfer into Tcp6StateSynSent if the function returns EFI_SUCCESS. \r
+  and ConnectionToken->CompletionToken.Status will be updated accordingly. This\r
+  function can only be called for the TCP instance in Tcp6StateClosed state. The\r
+  instance will transfer into Tcp6StateSynSent if the function returns EFI_SUCCESS.\r
   If TCP three-way handshake succeeds, its state will become Tcp6StateEstablished,\r
   otherwise, the state will return to Tcp6StateClosed.\r
 \r
@@ -578,7 +576,7 @@ EFI_STATUS
   @param[in] ConnectionToken     Pointer to the connection token to return when the TCP three\r
                                  way handshake finishes.\r
 \r
-  @retval EFI_SUCCESS            The connection request is successfully initiated and the state of \r
+  @retval EFI_SUCCESS            The connection request is successfully initiated and the state of\r
                                  this TCP instance has been changed to Tcp6StateSynSent.\r
   @retval EFI_NOT_STARTED        This EFI TCPv6 Protocol instance has not been configured.\r
   @retval EFI_ACCESS_DENIED      One or more of the following conditions are TRUE:\r
@@ -600,25 +598,25 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Listen on the passive instance to accept an incoming connection request. This is a \r
+  Listen on the passive instance to accept an incoming connection request. This is a\r
   nonblocking operation.\r
\r
-  The Accept() function initiates an asynchronous accept request to wait for an incoming \r
-  connection on the passive TCP instance. If a remote peer successfully establishes a \r
+\r
+  The Accept() function initiates an asynchronous accept request to wait for an incoming\r
+  connection on the passive TCP instance. If a remote peer successfully establishes a\r
   connection with this instance, a new TCP instance will be created and its handle will\r
   be returned in ListenToken->NewChildHandle. The newly created instance is configured\r
   by inheriting the passive instance's configuration and is ready for use upon return.\r
   The new instance is in the Tcp6StateEstablished state.\r
 \r
-  The ListenToken->CompletionToken.Event will be signaled when a new connection is \r
-  accepted, user aborts the listen or connection is reset. \r
+  The ListenToken->CompletionToken.Event will be signaled when a new connection is\r
+  accepted, user aborts the listen or connection is reset.\r
 \r
-  This function only can be called when current TCP instance is in Tcp6StateListen state. \r
+  This function only can be called when current TCP instance is in Tcp6StateListen state.\r
 \r
   @param[in] This                Pointer to the EFI_TCP6_PROTOCOL instance.\r
   @param[in] ListenToken         Pointer to the listen token to return when operation finishes.\r
-                                 \r
-                                 \r
+\r
+\r
   @retval EFI_SUCCESS            The listen token has been queued successfully.\r
   @retval EFI_NOT_STARTED        This EFI TCPv6 Protocol instance has not been configured.\r
   @retval EFI_ACCESS_DENIED      One or more of the following are TRUE:\r
@@ -645,7 +643,7 @@ EFI_STATUS
   Queues outgoing data into the transmit queue.\r
 \r
   The Transmit() function queues a sending request to this TCP instance along with the\r
-  user data. The status of the token is updated and the event in the token will be \r
+  user data. The status of the token is updated and the event in the token will be\r
   signaled once the data is sent out or some error occurs.\r
 \r
   @param[in] This                 Pointer to the EFI_TCP6_PROTOCOL instance.\r
@@ -653,8 +651,8 @@ EFI_STATUS
 \r
   @retval EFI_SUCCESS             The data has been queued for transmission.\r
   @retval EFI_NOT_STARTED         This EFI TCPv6 Protocol instance has not been configured.\r
-  @retval EFI_NO_MAPPING          The underlying IPv6 driver was responsible for choosing a \r
-                                  source address for this instance, but no source address was \r
+  @retval EFI_NO_MAPPING          The underlying IPv6 driver was responsible for choosing a\r
+                                  source address for this instance, but no source address was\r
                                   available for use.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following are TRUE:\r
                                   - This is NULL.\r
@@ -664,11 +662,11 @@ EFI_STATUS
                                   - Token->Packet.FragmentCount is zero.\r
                                   - Token->Packet.DataLength is not equal to the sum of fragment lengths.\r
   @retval EFI_ACCESS_DENIED       One or more of the following conditions are TRUE:\r
-                                  - A transmit completion token with the same Token-> \r
-                                    CompletionToken.Event was already in the \r
+                                  - A transmit completion token with the same Token->\r
+                                    CompletionToken.Event was already in the\r
                                     transmission queue.\r
                                   - The current instance is in Tcp6StateClosed state.\r
-                                  - The current instance is a passive one and it is in \r
+                                  - The current instance is a passive one and it is in\r
                                     Tcp6StateListen state.\r
                                   - User has called Close() to disconnect this connection.\r
   @retval EFI_NOT_READY           The completion token could not be queued because the\r
@@ -688,15 +686,15 @@ EFI_STATUS
 /**\r
   Places an asynchronous receive request into the receiving queue.\r
 \r
-  The Receive() function places a completion token into the receive packet queue. This \r
+  The Receive() function places a completion token into the receive packet queue. This\r
   function is always asynchronous. The caller must allocate the Token->CompletionToken.Event\r
-  and the FragmentBuffer used to receive data. The caller also must fill the DataLength which \r
-  represents the whole length of all FragmentBuffer. When the receive operation completes, the \r
+  and the FragmentBuffer used to receive data. The caller also must fill the DataLength which\r
+  represents the whole length of all FragmentBuffer. When the receive operation completes, the\r
   EFI TCPv6 Protocol driver updates the Token->CompletionToken.Status and Token->Packet.RxData\r
   fields and the Token->CompletionToken.Event is signaled. If got data the data and its length\r
   will be copied into the FragmentTable, at the same time the full length of received data will\r
   be recorded in the DataLength fields. Providing a proper notification function and context\r
-  for the event will enable the user to receive the notification and receiving status. That \r
+  for the event will enable the user to receive the notification and receiving status. That\r
   notification function is guaranteed to not be re-entered.\r
 \r
   @param[in] This               Pointer to the EFI_TCP6_PROTOCOL instance.\r
@@ -705,7 +703,7 @@ EFI_STATUS
 \r
   @retval EFI_SUCCESS            The receive completion token was cached.\r
   @retval EFI_NOT_STARTED        This EFI TCPv6 Protocol instance has not been configured.\r
-  @retval EFI_NO_MAPPING         The underlying IPv6 driver was responsible for choosing a source \r
+  @retval EFI_NO_MAPPING         The underlying IPv6 driver was responsible for choosing a source\r
                                  address for this instance, but no source address was available for use.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following conditions is TRUE:\r
                                  - This is NULL.\r
@@ -713,20 +711,20 @@ EFI_STATUS
                                  - Token->CompletionToken.Event is NULL.\r
                                  - Token->Packet.RxData is NULL.\r
                                  - Token->Packet.RxData->DataLength is 0.\r
-                                 - The Token->Packet.RxData->DataLength is not the \r
+                                 - The Token->Packet.RxData->DataLength is not the\r
                                    sum of all FragmentBuffer length in FragmentTable.\r
   @retval EFI_OUT_OF_RESOURCES   The receive completion token could not be queued due to a lack of\r
                                  system resources (usually memory).\r
-  @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred. \r
+  @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred.\r
                                  The EFI TCPv6 Protocol instance has been reset to startup defaults.\r
   @retval EFI_ACCESS_DENIED      One or more of the following conditions is TRUE:\r
                                  - A receive completion token with the same Token->CompletionToken.Event\r
                                    was already in the receive queue.\r
                                  - The current instance is in Tcp6StateClosed state.\r
-                                 - The current instance is a passive one and it is in \r
+                                 - The current instance is a passive one and it is in\r
                                    Tcp6StateListen state.\r
                                  - User has called Close() to disconnect this connection.\r
-  @retval EFI_CONNECTION_FIN     The communication peer has closed the connection and there is no \r
+  @retval EFI_CONNECTION_FIN     The communication peer has closed the connection and there is no\r
                                  any buffered data in the receive buffer of this instance\r
   @retval EFI_NOT_READY          The receive request could not be queued because the receive queue is full.\r
 \r
@@ -742,16 +740,16 @@ EFI_STATUS
   Disconnecting a TCP connection gracefully or reset a TCP connection. This function is a\r
   nonblocking operation.\r
 \r
-  Initiate an asynchronous close token to TCP driver. After Close() is called, any buffered \r
-  transmission data will be sent by TCP driver and the current instance will have a graceful close \r
-  working flow described as RFC 793 if AbortOnClose is set to FALSE, otherwise, a rest packet \r
-  will be sent by TCP driver to fast disconnect this connection. When the close operation completes \r
-  successfully the TCP instance is in Tcp6StateClosed state, all pending asynchronous \r
+  Initiate an asynchronous close token to TCP driver. After Close() is called, any buffered\r
+  transmission data will be sent by TCP driver and the current instance will have a graceful close\r
+  working flow described as RFC 793 if AbortOnClose is set to FALSE, otherwise, a rest packet\r
+  will be sent by TCP driver to fast disconnect this connection. When the close operation completes\r
+  successfully the TCP instance is in Tcp6StateClosed state, all pending asynchronous\r
   operations are signaled and any buffers used for TCP network traffic are flushed.\r
 \r
   @param[in] This                Pointer to the EFI_TCP6_PROTOCOL instance.\r
   @param[in] CloseToken          Pointer to the close token to return when operation finishes.\r
-                                 \r
+\r
   @retval EFI_SUCCESS            The Close() is called successfully.\r
   @retval EFI_NOT_STARTED        This EFI TCPv6 Protocol instance has not been configured.\r
   @retval EFI_ACCESS_DENIED      One or more of the following are TRUE:\r
@@ -775,14 +773,14 @@ EFI_STATUS
 /**\r
   Abort an asynchronous connection, listen, transmission or receive request.\r
 \r
-  The Cancel() function aborts a pending connection, listen, transmit or \r
+  The Cancel() function aborts a pending connection, listen, transmit or\r
   receive request.\r
 \r
   If Token is not NULL and the token is in the connection, listen, transmission\r
-  or receive queue when it is being cancelled, its Token->Status will be set \r
+  or receive queue when it is being cancelled, its Token->Status will be set\r
   to EFI_ABORTED and then Token->Event will be signaled.\r
 \r
-  If the token is not in one of the queues, which usually means that the \r
+  If the token is not in one of the queues, which usually means that the\r
   asynchronous operation has completed, EFI_NOT_FOUND is returned.\r
 \r
   If Token is NULL all asynchronous token issued by Connect(), Accept(),\r
@@ -798,12 +796,12 @@ EFI_STATUS
                                  EFI_TCP6_COMPLETION_TOKEN is defined in\r
                                  EFI_TCP_PROTOCOL.Connect().\r
 \r
-  @retval EFI_SUCCESS            The asynchronous I/O request is aborted and Token->Event \r
-                                 is signaled. \r
+  @retval EFI_SUCCESS            The asynchronous I/O request is aborted and Token->Event\r
+                                 is signaled.\r
   @retval EFI_INVALID_PARAMETER  This is NULL.\r
   @retval EFI_NOT_STARTED        This instance hasn't been configured.\r
-  @retval EFI_NOT_FOUND          The asynchronous I/O request isn't found in the transmission or \r
-                                 receive queue. It has either completed or wasn't issued by \r
+  @retval EFI_NOT_FOUND          The asynchronous I/O request isn't found in the transmission or\r
+                                 receive queue. It has either completed or wasn't issued by\r
                                  Transmit() and Receive().\r
   @retval EFI_UNSUPPORTED        The implementation does not support this function.\r
 \r
@@ -839,11 +837,11 @@ EFI_STATUS
   );\r
 \r
 ///\r
-/// EFI_TCP6_PROTOCOL \r
+/// EFI_TCP6_PROTOCOL\r
 /// defines the EFI TCPv6 Protocol child to be used by any network drivers or\r
-/// applications to send or receive data stream. It can either listen on a \r
+/// applications to send or receive data stream. It can either listen on a\r
 /// specified port as a service or actively connect to remote peer as a client.\r
-/// Each instance has its own independent settings. \r
+/// Each instance has its own independent settings.\r
 ///\r
 struct _EFI_TCP6_PROTOCOL {\r
   EFI_TCP6_GET_MODE_DATA  GetModeData;\r