]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Station_address.c
Add missing Handle parameter for UninstallMultipleProtocolInterfaces().
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Station_address.c
index 07df584a07cb88c998ac50425867f9f3b62da59b..3807188683476ed78cb7d960b74425b02a1af07c 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
     Implementation of reading the MAC address of a network adapter.\r
  \r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
+Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
 http://opensource.org/licenses/bsd-license.php \r
@@ -16,13 +16,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 /**\r
-  this routine calls undi to read the MAC address of the NIC and updates the\r
-  mode structure with the address.\r
+  Call UNDI to read the MAC address of the NIC and update the mode structure \r
+  with the address. \r
 \r
-  @param  Snp         pointer to snp driver structure.\r
+  @param  Snp         Pointer to snp driver structure.\r
    \r
-  @retval EFI_SUCCESS       the MAC address of the NIC is read successfully.\r
-  @retval EFI_DEVICE_ERROR  failed to read the MAC address of the NIC.\r
+  @retval EFI_SUCCESS       The MAC address of the NIC is read successfully.\r
+  @retval EFI_DEVICE_ERROR  Failed to read the MAC address of the NIC.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -39,7 +39,7 @@ PxeGetStnAddr (
   Snp->Cdb.CPBaddr    = PXE_CPBADDR_NOT_USED;\r
   Snp->Cdb.CPBsize    = PXE_CPBSIZE_NOT_USED;\r
 \r
-  Snp->Cdb.DBsize     = sizeof (PXE_DB_STATION_ADDRESS);\r
+  Snp->Cdb.DBsize     = (UINT16) sizeof (PXE_DB_STATION_ADDRESS);\r
   Snp->Cdb.DBaddr     = (UINT64)(UINTN) Db;\r
 \r
   Snp->Cdb.StatCode   = PXE_STATCODE_INITIALIZE;\r
@@ -90,10 +90,10 @@ PxeGetStnAddr (
 \r
 \r
 /**\r
-  this routine calls undi to set a new MAC address for the NIC,\r
+  Call UNDI to set a new MAC address for the NIC.\r
 \r
-  @param  Snp         pointer to Snp driver structure\r
-  @param  NewMacAddr  pointer to a mac address to be set for the nic, if this is\r
+  @param  Snp         Pointer to Snp driver structure.\r
+  @param  NewMacAddr  Pointer to a MAC address to be set for the NIC, if this is\r
                       NULL then this routine resets the mac address to the NIC's\r
                       original address.\r
 \r
@@ -124,11 +124,11 @@ PxeSetStnAddr (
     //\r
     CopyMem (&Cpb->StationAddr, NewMacAddr, Snp->Mode.HwAddressSize);\r
 \r
-    Snp->Cdb.CPBsize  = sizeof (PXE_CPB_STATION_ADDRESS);\r
+    Snp->Cdb.CPBsize  = (UINT16) sizeof (PXE_CPB_STATION_ADDRESS);\r
     Snp->Cdb.CPBaddr  = (UINT64)(UINTN) Cpb;\r
   }\r
 \r
-  Snp->Cdb.DBsize     = sizeof (PXE_DB_STATION_ADDRESS);\r
+  Snp->Cdb.DBsize     = (UINT16) sizeof (PXE_DB_STATION_ADDRESS);\r
   Snp->Cdb.DBaddr     = (UINT64)(UINTN) Db;\r
 \r
   Snp->Cdb.StatCode   = PXE_STATCODE_INITIALIZE;\r
@@ -170,7 +170,7 @@ PxeSetStnAddr (
   \r
   This function modifies or resets the current station address of a network \r
   interface, if supported. If Reset is TRUE, then the current station address is\r
-  set to the network interfaces permanent address. If Reset is FALSE, and the \r
+  set to the network interface's permanent address. If Reset is FALSE, and the \r
   network interface allows its station address to be modified, then the current \r
   station address is changed to the address specified by New. If the network \r
   interface does not allow its station address to be modified, then \r
@@ -179,12 +179,12 @@ PxeSetStnAddr (
   has not been initialized, EFI_DEVICE_ERROR will be returned.\r
 \r
   @param This  A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.\r
-  @param Reset Flag used to reset the station address to the network interface\r
+  @param Reset Flag used to reset the station address to the network interface'\r
                permanent address.\r
   @param New   New station address to be used for the network interface.\r
 \r
 \r
-  @retval EFI_SUCCESS           The network interfaces station address was updated.\r
+  @retval EFI_SUCCESS           The network interface's station address was updated.\r
   @retval EFI_NOT_STARTED       The Simple Network Protocol interface has not been \r
                                 started by calling Start().\r
   @retval EFI_INVALID_PARAMETER The New station address was not accepted by the NIC.\r
@@ -194,7 +194,7 @@ PxeSetStnAddr (
   @retval EFI_DEVICE_ERROR      An error occurred attempting to set the new \r
                                 station address.\r
   @retval EFI_UNSUPPORTED       The NIC does not support changing the network \r
-                                interfaces station address.\r
+                                interface's station address.\r
 \r
 **/\r
 EFI_STATUS\r