X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FBus%2FPci%2FIdeBus%2FDxe%2Fide.c;h=4b4a8ef0a355cfe798d31b2dfba5eba993bd3f28;hp=14cdb251bb2d34647cb050fb173403b925bbcb13;hb=bc4e770c78d692a5a2641359f605d6e83c96da5d;hpb=1cc8ee7861a59532700a6fd1255689576eda0f52 diff --git a/EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c b/EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c index 14cdb251bb..4b4a8ef0a3 100644 --- a/EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c +++ b/EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c @@ -228,71 +228,6 @@ IDEWritePortWMultiple ( gBS->FreePool (WorkingBuffer); } -/** - TODO: Add function description - - @param IdeDev TODO: add argument description - - TODO: add return values - -**/ -STATIC -BOOLEAN -BadIdeDeviceCheck ( - IN IDE_BLK_IO_DEV *IdeDev - ) -{ - // - // check whether all registers return 0xff, - // if so, deem the channel is disabled. - // -#ifdef EFI_DEBUG - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Data) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Reg1.Feature) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->SectorCount) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->SectorNumber) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->CylinderLsb) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->CylinderMsb) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Head) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Reg.Command) != 0xff) { - return FALSE; - } - - if (IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Alt.AltStatus) != 0xff) { - return FALSE; - } - - return TRUE; - -#else - - return FALSE; - -#endif -} - // // GetIdeRegistersBaseAddr //