X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FStop.c;fp=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FStop.c;h=f707ed4fa16143c250dbfd22382abb532c30d1a5;hp=2eedfcd72617f880d4b7f91a5270a3daeb4110b3;hb=f381602727922e793de5826ee390344cb907e07a;hpb=99fd60317fbbef0ca2be2f86992db6a552885fdb diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Stop.c b/MdeModulePkg/Universal/Network/SnpDxe/Stop.c index 2eedfcd726..f707ed4fa1 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Stop.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Stop.c @@ -16,14 +16,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /** - this routine calls undi to stop the interface and changes the snp state. + Call UNDI to stop the interface and changes the snp state. - @param Snp pointer to snp driver structure - - @retval EFI_INVALID_PARAMETER invalid parameter - @retval EFI_NOT_STARTED SNP is not started - @retval EFI_DEVICE_ERROR SNP is not initialized - @retval EFI_UNSUPPORTED operation unsupported + @param Snp Pointer to snp driver structure + + @retval EFI_SUCCESS The network interface was stopped. + @retval EFI_DEVICE_ERROR SNP is not initialized. **/ EFI_STATUS @@ -45,13 +43,13 @@ PxeStop ( // // Issue UNDI command // - DEBUG ((EFI_D_NET, "\nsnp->undi.stop() ")); + DEBUG ((EFI_D_INFO | EFI_D_NET, "\nsnp->undi.stop() ")); (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb); if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) { DEBUG ( - (EFI_D_WARN, + (EFI_D_ERROR, "\nsnp->undi.stop() %xh:%xh\n", Snp->Cdb.StatCode, Snp->Cdb.StatFlags) @@ -74,15 +72,18 @@ PxeStop ( interface is in the started state. If the network interface was successfully stopped, then EFI_SUCCESS will be returned. - @param This A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance. + @param This A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL + instance. @retval EFI_SUCCESS The network interface was stopped. @retval EFI_NOT_STARTED The network interface has not been started. - @retval EFI_INVALID_PARAMETER This parameter was NULL or did not point to a valid - EFI_SIMPLE_NETWORK_PROTOCOL structure. - @retval EFI_DEVICE_ERROR The command could not be sent to the network interface. - @retval EFI_UNSUPPORTED This function is not supported by the network interface. + @retval EFI_INVALID_PARAMETER This parameter was NULL or did not point to a + valid EFI_SIMPLE_NETWORK_PROTOCOL structure. + @retval EFI_DEVICE_ERROR The command could not be sent to the network + interface. + @retval EFI_UNSUPPORTED This function is not supported by the network + interface. **/ EFI_STATUS