mirror of https://github.com/acidanthera/audk.git
Modified to meet EBC compile.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3285 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d91e00998d
commit
ae5852b2ef
|
@ -119,35 +119,25 @@ FddIdentify (
|
|||
// Check Media
|
||||
//
|
||||
Status = DisketChanged (FdcDev);
|
||||
switch (Status) {
|
||||
case EFI_NO_MEDIA:
|
||||
|
||||
if (Status == EFI_NO_MEDIA) {
|
||||
FdcDev->BlkIo.Media->MediaPresent = FALSE;
|
||||
break;
|
||||
|
||||
case EFI_MEDIA_CHANGED:
|
||||
case EFI_SUCCESS:
|
||||
break;
|
||||
|
||||
default:
|
||||
} else if (Status != EFI_MEDIA_CHANGED) {
|
||||
MotorOff (FdcDev);
|
||||
return Status;
|
||||
}
|
||||
|
||||
//
|
||||
// Check Disk Write Protected
|
||||
//
|
||||
Status = SenseDrvStatus (FdcDev, 0);
|
||||
switch (Status) {
|
||||
case EFI_WRITE_PROTECTED:
|
||||
|
||||
if (Status == EFI_WRITE_PROTECTED) {
|
||||
FdcDev->BlkIo.Media->ReadOnly = TRUE;
|
||||
break;
|
||||
|
||||
case EFI_SUCCESS:
|
||||
} else if (Status == EFI_SUCCESS) {
|
||||
FdcDev->BlkIo.Media->ReadOnly = FALSE;
|
||||
break;
|
||||
|
||||
default:
|
||||
} else {
|
||||
return EFI_DEVICE_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
MotorOff (FdcDev);
|
||||
|
@ -807,21 +797,14 @@ DetectMedia (
|
|||
// Check disk change
|
||||
//
|
||||
Status = DisketChanged (FdcDev);
|
||||
switch (Status) {
|
||||
case EFI_MEDIA_CHANGED:
|
||||
|
||||
if (Status == EFI_MEDIA_CHANGED) {
|
||||
FdcDev->BlkIo.Media->MediaId++;
|
||||
FdcDev->BlkIo.Media->MediaPresent = TRUE;
|
||||
bReset = TRUE;
|
||||
break;
|
||||
|
||||
case EFI_NO_MEDIA:
|
||||
} else if (Status == EFI_NO_MEDIA) {
|
||||
FdcDev->BlkIo.Media->MediaPresent = FALSE;
|
||||
break;
|
||||
|
||||
case EFI_SUCCESS:
|
||||
break;
|
||||
|
||||
default:
|
||||
} else if (Status != EFI_SUCCESS) {
|
||||
MotorOff (FdcDev);
|
||||
return Status;
|
||||
//
|
||||
|
|
|
@ -190,7 +190,7 @@ PciVgaMiniPortDriverBindingStart (
|
|||
Status = gBS->AllocatePool (
|
||||
EfiBootServicesData,
|
||||
sizeof (PCI_VGA_MINI_PORT_DEV),
|
||||
&PciVgaMiniPortPrivate
|
||||
(VOID **) &PciVgaMiniPortPrivate
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto Done;
|
||||
|
|
Loading…
Reference in New Issue