summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 07:30:10 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 07:30:10 +0000
commitfb5a3ed8c728f692d111633d478b31e0b5e2942c (patch)
treeba15c7b200dd12f53a13f553a135d1c908840d4f /EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.c
parent35465f63dd27ea696556a8fc46320b330baba051 (diff)
downloadedk2-platforms-fb5a3ed8c728f692d111633d478b31e0b5e2942c.tar.xz
Remove some unused internal functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2315 6f19259b-4bc3-4df7-8a09-765794883524
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
//