X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FStation_address.c;h=a5c87d4799c457b29fac35676666642e5551ed6c;hp=0917baf6743b74822314fa87b4adbab643eaed7a;hb=c0fd7f734e2d33e22215899b40a47b843129541d;hpb=80e3a52238c5e946b1dc4c589ccf0fe285940c1d diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c b/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c index 0917baf674..a5c87d4799 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c @@ -1,14 +1,8 @@ /** @file Implementation of reading the MAC address of a network adapter. - -Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.
-This program and the accompanying materials are licensed -and made available under the terms and conditions of the BSD License which -accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -16,11 +10,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /** - Call UNDI to read the MAC address of the NIC and update the mode structure - with the address. + Call UNDI to read the MAC address of the NIC and update the mode structure + with the address. @param Snp Pointer to snp driver structure. - + @retval EFI_SUCCESS The MAC address of the NIC is read successfully. @retval EFI_DEVICE_ERROR Failed to read the MAC address of the NIC. @@ -166,33 +160,33 @@ PxeSetStnAddr ( /** Modifies or resets the current station address, if supported. - - This function modifies or resets the current station address of a network + + This function modifies or resets the current station address of a network interface, if supported. If Reset is TRUE, then the current station address is - set to the network interface's permanent address. If Reset is FALSE, and the - network interface allows its station address to be modified, then the current - station address is changed to the address specified by New. If the network - interface does not allow its station address to be modified, then + set to the network interface's permanent address. If Reset is FALSE, and the + network interface allows its station address to be modified, then the current + station address is changed to the address specified by New. If the network + interface does not allow its station address to be modified, then EFI_INVALID_PARAMETER will be returned. If the station address is successfully updated on the network interface, EFI_SUCCESS will be returned. If the driver has not been initialized, EFI_DEVICE_ERROR will be returned. @param This A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance. - @param Reset Flag used to reset the station address to the network interface's + @param Reset Flag used to reset the station address to the network interface's permanent address. @param New New station address to be used for the network interface. @retval EFI_SUCCESS The network interface's station address was updated. - @retval EFI_NOT_STARTED The Simple Network Protocol interface has not been + @retval EFI_NOT_STARTED The Simple Network Protocol interface has not been started by calling Start(). @retval EFI_INVALID_PARAMETER The New station address was not accepted by the NIC. @retval EFI_INVALID_PARAMETER Reset is FALSE and New is NULL. - @retval EFI_DEVICE_ERROR The Simple Network Protocol interface has not + @retval EFI_DEVICE_ERROR The Simple Network Protocol interface has not been initialized by calling Initialize(). - @retval EFI_DEVICE_ERROR An error occurred attempting to set the new + @retval EFI_DEVICE_ERROR An error occurred attempting to set the new station address. - @retval EFI_UNSUPPORTED The NIC does not support changing the network + @retval EFI_UNSUPPORTED The NIC does not support changing the network interface's station address. **/