Remove some unused internal functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2315 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user