For network dynamic media support:
1. add library function NetLibDetectMedia to NetLib for media detection 2. update MnpDxe to periodically poll for media status update and check for media status before packet transmit 3. update Ip4Dxe to return ModeData using Mnp->GetModeData() 4. update IScsiDxe to check for media status before try to do DHCP and session login 5. update UefiPxeBcDxe to check for media status before PXE start git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9919 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -2585,6 +2585,7 @@ EfiPxeLoadFile (
|
||||
BOOLEAN NewMakeCallback;
|
||||
EFI_STATUS Status;
|
||||
UINT64 TmpBufSize;
|
||||
BOOLEAN MediaPresent;
|
||||
|
||||
Private = PXEBC_PRIVATE_DATA_FROM_LOADFILE (This);
|
||||
PxeBc = &Private->PxeBc;
|
||||
@@ -2603,6 +2604,15 @@ EfiPxeLoadFile (
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
// Check media status before PXE start
|
||||
//
|
||||
MediaPresent = TRUE;
|
||||
NetLibDetectMedia (Private->Controller, &MediaPresent);
|
||||
if (!MediaPresent) {
|
||||
return EFI_NO_MEDIA;
|
||||
}
|
||||
|
||||
Status = PxeBc->Start (PxeBc, FALSE);
|
||||
if (EFI_ERROR (Status) && (Status != EFI_ALREADY_STARTED)) {
|
||||
return Status;
|
||||
|
Reference in New Issue
Block a user