]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/PxeUndi.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / BiosThunk / Snp16Dxe / PxeUndi.c
index 7063229dd44e4fccdb4aa8340bd60fad0256ceaa..d1435798c0189d599112d4a22ec180476513fa25 100644 (file)
@@ -1,15 +1,15 @@
-/** @file \r
-  Wrapper routines that use a PXE-enabled NIC option ROM to \r
-  supply internal routines for an EFI SNI (Simple Network \r
+/** @file\r
+  Wrapper routines that use a PXE-enabled NIC option ROM to\r
+  supply internal routines for an EFI SNI (Simple Network\r
   Interface) Protocol.\r
 \r
   This file relies upon the existence of a PXE-compliant ROM\r
-  in memory, as defined by the Preboot Execution Environment \r
+  in memory, as defined by the Preboot Execution Environment\r
   Specification (PXE), Version 2.1, located at\r
 \r
   http://developer.intel.com/ial/wfm/wfmspecs.htm\r
 \r
-Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -25,7 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "BiosSnp16.h"\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   START UNDI\r
   Op-Code: PXENV_START_UNDI (0000h)\r
   Input: Far pointer to a PXENV_START_UNDI_T parameter structure that has been initialized by the caller.\r
@@ -54,13 +54,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   contents of these registers can be found in the [PnP], [PCI] and\r
   [BBS] specifications.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
+  Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call.                                \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeStartUndi (\r
@@ -77,8 +77,8 @@ PxeStartUndi (
 }\r
 \r
 /**\r
-  PXE \r
-  UNDI STARTUP    \r
+  PXE\r
+  UNDI STARTUP\r
   Op-Code: PXENV_UNDI_STARTUP (0001h)\r
   Input: Far pointer to a PXENV_UNDI_STARTUP_T parameter structure that has been initialized by the\r
   caller.\r
@@ -95,7 +95,7 @@ PxeStartUndi (
   chaining interrupt 1Ah. This must be done by the PXENV_START_UNDI and\r
   PXENV_STOP_UNDI API calls.\r
   This service cannot be used in protected mode.\r
-  typedef struct \r
+  typedef struct\r
   {\r
       PXENV_STATUS Status;\r
   } PXENV_UNDI_STARTUP_T;\r
@@ -105,10 +105,10 @@ PxeStartUndi (
   Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call.    \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiStartup (\r
@@ -125,7 +125,7 @@ PxeUndiStartup (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLEANUP\r
   Op-Code: PXENV_UNDI_CLEANUP (0002h)\r
   Input: Far pointer to a PXENV_UNDI_CLEANUP_T parameter structure.\r
@@ -145,10 +145,10 @@ PxeUndiStartup (
   Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call. \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiCleanup (\r
@@ -165,7 +165,7 @@ PxeUndiCleanup (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI INITIALIZE\r
   Op-Code: PXENV_UNDI_INITIALIZE (0003h)\r
   Input: Far pointer to a PXENV_UNDI_INITIALIZE_T parameter structure that has been initialized by the\r
@@ -195,13 +195,13 @@ PxeUndiCleanup (
   protocol.ini file was done by NDIS.) This value can be NULL for any\r
   other application interfacing to the universal NIC driver\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call. \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiInitialize (\r
@@ -219,8 +219,8 @@ PxeUndiInitialize (
 \r
 /**\r
   Wrapper routine for reset adapter.\r
-  \r
-  PXE \r
+\r
+  PXE\r
   UNDI RESET ADAPTER\r
   Op-Code: PXENV_UNDI_RESET_ADAPTER (0004h)\r
   Input: Far pointer to a PXENV_UNDI_RESET_ADAPTER_t parameter structure that has been initialized\r
@@ -252,13 +252,13 @@ PxeUndiInitialize (
   addresses.\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance.\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-  @param  RxFilter             Filter setting mask value for PXE recive .     \r
-                               \r
-  @return Return value of PXE option ROM far call. \r
+  @param  RxFilter             Filter setting mask value for PXE recive .\r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiResetNic (\r
@@ -310,8 +310,8 @@ PxeUndiResetNic (
     &Open.McastBuffer,\r
     &PxeUndiTable->R_Mcast_Buf,\r
     sizeof (PXENV_UNDI_MCAST_ADDR_T)\r
-    );      \r
-  \r
+    );\r
+\r
 \r
   Status = MakePxeCall (\r
             SimpleNetworkDevice,\r
@@ -327,7 +327,7 @@ PxeUndiResetNic (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SHUTDOWN\r
   Op-Code: PXENV_UNDI_SHUTDOWN (0005h)\r
   Input: Far pointer to a PXENV_UNDI_SHUTDOWN_T parameter.\r
@@ -337,7 +337,7 @@ PxeUndiResetNic (
   Description: This call resets the network adapter and leaves it in a safe state for another driver to program it.\r
   Note: The contents of the PXENV_UNDI_STARTUP parameter structure need to be saved by the\r
   Universal NIC Driver in case PXENV_UNDI_INITIALIZE is called again.\r
-  typedef struct \r
+  typedef struct\r
   {\r
     PXENV_STATUS Status;\r
   } PXENV_UNDI_SHUTDOWN_T;\r
@@ -345,12 +345,12 @@ PxeUndiResetNic (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.   \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiShutdown (\r
@@ -367,7 +367,7 @@ PxeUndiShutdown (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI OPEN\r
   Op-Code: PXENV_UNDI_OPEN (0006h)\r
   Input: Far pointer to a PXENV_UNDI_OPEN_T parameter structure that has been initialized by the caller.\r
@@ -399,12 +399,12 @@ PxeUndiShutdown (
   R_Mcast_Buf: See definition in UNDI RESET ADAPTER (0004h).\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiOpen (\r
@@ -421,7 +421,7 @@ PxeUndiOpen (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLOSE\r
   Op-Code: PXENV_UNDI_CLOSE (0007h)\r
   Input: Far pointer to a PXENV_UNDI_CLOSE_T parameter.\r
@@ -437,12 +437,12 @@ PxeUndiOpen (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiClose (\r
@@ -459,7 +459,7 @@ PxeUndiClose (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI TRANSMIT PACKET\r
   Op-Code: PXENV_UNDI_TRANSMIT (0008h)\r
   Input: Far pointer to a PXENV_UNDI_TRANSMIT_T parameter structure that\r
@@ -529,13 +529,13 @@ PxeUndiClose (
   TDDataPtr: Segment:Offset of the transmit block.\r
   DataBlock: Array of transmit data blocks.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants  \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiTransmit (\r
@@ -565,7 +565,7 @@ PxeUndiTransmit (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET MULTICAST ADDRESS\r
   Op-Code: PXENV_UNDI_SET_MCAST_ADDRESS (0009h)\r
   Input: Far pointer to a PXENV_TFTP_SET_MCAST_ADDRESS_t parameter structure that has been\r
@@ -583,13 +583,13 @@ PxeUndiTransmit (
   R_Mcast_Buf: See description in the UNDI RESET ADAPTER\r
   (0004h) API.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants        \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetMcastAddr (\r
@@ -606,7 +606,7 @@ PxeUndiSetMcastAddr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET STATION ADDRESS\r
   Op-Code: PXENV_UNDI_SET_STATION_ADDRESS (000Ah)\r
   Input: Far pointer to a PXENV_UNDI_SET_STATION_ADDRESS_t parameter structure that has been\r
@@ -625,13 +625,13 @@ PxeUndiSetMcastAddr (
   StationAddress: Temporary MAC address to be used for\r
   transmit and receive.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.     \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetStationAddr (\r
@@ -648,7 +648,7 @@ PxeUndiSetStationAddr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET PACKET FILTER\r
   Op-Code: PXENV_UNDI_SET_PACKET_FILTER (000Bh)\r
   Input: Far pointer to a PXENV_UNDI_SET_PACKET_FILTER_T parameter structure that has been\r
@@ -666,13 +666,13 @@ PxeUndiSetStationAddr (
   Filter: See the receive filter values in the UNDI OPEN\r
   (0006h) API description.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.   \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetPacketFilter (\r
@@ -689,7 +689,7 @@ PxeUndiSetPacketFilter (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET INFORMATION\r
   Op-Code: PXENV_UNDI_GET_INFORMATION (000Ch)\r
   Input: Far pointer to a PXENV_UNDI_GET_INFORMATION_T parameter structure that has been\r
@@ -732,13 +732,13 @@ PxeUndiSetPacketFilter (
   PermNodeAddress: Permanent hardware address.\r
   ROMAddress: Real mode ROM segment address.\r
   RxBufCnt: Receive queue length.\r
-  TxBufCnt: Transmit queue length.  \r
-  \r
+  TxBufCnt: Transmit queue length.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetInformation (\r
@@ -755,7 +755,7 @@ PxeUndiGetInformation (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET STATISTICS\r
   Op-Code: PXENV_UNDI_GET_STATISTICS (000Dh)\r
   Input: Far pointer to a PXENV_UNDI_GET_STATISTICS_T parameter structure that has been initialized\r
@@ -781,12 +781,12 @@ PxeUndiGetInformation (
   error.\r
   RcvResourceErrors: Number of frames discarded\r
   because receive queue was full.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetStatistics (\r
@@ -803,7 +803,7 @@ PxeUndiGetStatistics (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLEAR STATISTICS\r
   Op-Code: PXENV_UNDI_CLEAR_STATISTICS (000Eh)\r
   Input: Far pointer to a PXENV_UNDI_CLEAR_STATISTICS_T parameter.\r
@@ -818,12 +818,12 @@ PxeUndiGetStatistics (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiClearStatistics (\r
@@ -840,7 +840,7 @@ PxeUndiClearStatistics (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI INITIATE DIAGS\r
   Op-Code: PXENV_UNDI_INITIATE_DIAGS (000Fh)\r
   Input: Far pointer to a PXENV_UNDI_INITIATE_DIAGS_T parameter.\r
@@ -855,13 +855,13 @@ PxeUndiClearStatistics (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiInitiateDiags (\r
@@ -878,7 +878,7 @@ PxeUndiInitiateDiags (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI FORCE INTERRUPT\r
   Op-Code: PXENV_UNDI_FORCE_INTERRUPT (0010h)\r
   Input: Far pointer to a PXENV_UNDI_FORCE_INTERRUPT_T parameter structure that has been\r
@@ -899,13 +899,13 @@ PxeUndiInitiateDiags (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.  \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiForceInterrupt (\r
@@ -922,7 +922,7 @@ PxeUndiForceInterrupt (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET MULTICAST ADDRESS\r
   Op-Code: PXENV_UNDI_GET_MCAST_ADDRESS (0011h)\r
   Input: Far pointer to a PXENV_GET_MCAST_ADDRESS_t parameter structure that has been initialized\r
@@ -941,12 +941,12 @@ PxeUndiForceInterrupt (
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
   MediaAddr: MAC multicast address.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetMcastAddr (\r
@@ -963,7 +963,7 @@ PxeUndiGetMcastAddr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET NIC TYPE\r
   Op-Code: PXENV_UNDI_GET_NIC_TYPE (0012h)\r
   Input: Far pointer to a PXENV_UNDI_GET_NIC_TYPE parameter structure that has been initialized by\r
@@ -1013,13 +1013,13 @@ PxeUndiGetMcastAddr (
   NICType: Type of NIC information stored in the parameter\r
   structure.\r
   Info: Information about the fields in this union can be found\r
-  in the [PnP] and [PCI] specifications    \r
-  \r
+  in the [PnP] and [PCI] specifications\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetNicType (\r
@@ -1036,7 +1036,7 @@ PxeUndiGetNicType (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET IFACE INFO\r
   Op-Code: PXENV_UNDI_GET_IFACE_INFO (0013h)\r
   Input: Far pointer to a PXENV_UNDI_GET_IFACE_INFO_t parameter structure that has been initialized\r
@@ -1069,13 +1069,13 @@ PxeUndiGetNicType (
   to the protocol driver.\r
   LinkSpeed: Defined in the NDIS 2.0 specification.\r
   ServiceFlags: Defined in the NDIS 2.0 specification.\r
-  Reserved: Must be zero.       \r
-  \r
+  Reserved: Must be zero.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetNdisInfo (\r
@@ -1092,7 +1092,7 @@ PxeUndiGetNdisInfo (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI ISR\r
   Op-Code: PXENV_UNDI_ISR (0014h)\r
   Input: Far pointer to a PXENV_UNDI_ISR_T parameter structure that has been initialized by the caller.\r
@@ -1134,13 +1134,13 @@ PxeUndiGetNdisInfo (
   if there is no other interrupt status to be processed, UNDI re-enables the interrupt at the\r
   NETWORK INTERFACE level and returns PXENV_UNDI_ISR_OUT_DONE in the FuncFlag.\r
   IMPORTANT: It is possible for the protocol driver to be interrupted again while in the\r
-  strategy routine when the UNDI re-enables interrupts.   \r
-  \r
+  strategy routine when the UNDI re-enables interrupts.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiIsr (\r
@@ -1157,7 +1157,7 @@ PxeUndiIsr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   STOP UNDI\r
   Op-Code: PXENV_STOP_UNDI (0015h)\r
   Input: Far pointer to a PXENV_STOP_UNDI_T parameter structure that has been initialized by the caller.\r
@@ -1176,13 +1176,13 @@ PxeUndiIsr (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.      \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiStop (\r
@@ -1199,7 +1199,7 @@ PxeUndiStop (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET STATE\r
   Op-Code: PXENV_UNDI_GET_STATE (0015h)\r
   Input: Far pointer to a PXENV_UNDI_GET_STATE_T parameter.\r
@@ -1231,13 +1231,13 @@ PxeUndiStop (
   constants.\r
   Description: This API function will be called at different levels of processing the interrupt. The FuncFlag field in\r
   the parameter block indicates the operation to be performed for the call. This field is filled with the\r
-  status of that operation on return.     \r
-  \r
+  status of that operation on return.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetState (\r