summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c')
-rw-r--r--EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c65
1 files changed, 0 insertions, 65 deletions
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
//