Retire PciHotplugDeviceGuid.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8482 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2009-06-05 17:42:09 +00:00
parent 0d654ba433
commit 0170af58e0
7 changed files with 0 additions and 134 deletions

View File

@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Protocol/PciHostBridgeResourceAllocation.h> #include <Protocol/PciHostBridgeResourceAllocation.h>
#include <Protocol/PciIo.h> #include <Protocol/PciIo.h>
#include <Protocol/LoadFile2.h> #include <Protocol/LoadFile2.h>
#include <Guid/PciHotplugDevice.h>
#include <Protocol/PciRootBridgeIo.h> #include <Protocol/PciRootBridgeIo.h>
#include <Protocol/PciHotPlugRequest.h> #include <Protocol/PciHotPlugRequest.h>
#include <Protocol/DevicePath.h> #include <Protocol/DevicePath.h>

View File

@ -89,8 +89,6 @@
[Guids] [Guids]
gEfiPciOptionRomTableGuid # SOMETIMES_CONSUMED System Table gEfiPciOptionRomTableGuid # SOMETIMES_CONSUMED System Table
gEfiPciHotplugDeviceGuid # PRIVATE
gEfiPciOptionRomTableGuid # SOMETIMES_CONSUMED
[Protocols] [Protocols]
gEfiPciHotPlugRequestProtocolGuid # PROTOCOL ALWAYS_PRODUCED gEfiPciHotPlugRequestProtocolGuid # PROTOCOL ALWAYS_PRODUCED

View File

@ -378,12 +378,6 @@ RegisterPciDevice (
return Status; return Status;
} }
//
// Install Pccard Hotplug GUID for Pccard device so that
// to notify CardBus driver to stop the device when de-register happens
//
InstallPciHotplugGuid (PciIoDevice);
if (Handle != NULL) { if (Handle != NULL) {
*Handle = PciIoDevice->Handle; *Handle = PciIoDevice->Handle;
} }
@ -505,10 +499,6 @@ DeRegisterPciDevice (
CurrentLink = CurrentLink->ForwardLink; CurrentLink = CurrentLink->ForwardLink;
} }
} }
//
// Uninstall Pccard Hotplug GUID for Pccard device
//
UninstallPciHotplugGuid (PciIoDevice);
// //
// Close the child handle // Close the child handle

View File

@ -45,76 +45,6 @@ InstallHotPlugRequestProtocol (
); );
} }
/**
Install protocol gEfiPciHotplugDeviceGuid into hotplug device
instance.
@param PciIoDevice hotplug device instance.
**/
VOID
InstallPciHotplugGuid (
IN PCI_IO_DEVICE *PciIoDevice
)
{
EFI_STATUS Status;
if (!FeaturePcdGet (PcdPciBusHotplugDeviceSupport)) {
return;
}
if (IS_CARDBUS_BRIDGE (&PciIoDevice->Parent->Pci)) {
Status = gBS->InstallProtocolInterface (
&PciIoDevice->Handle,
&gEfiPciHotplugDeviceGuid,
EFI_NATIVE_INTERFACE,
NULL
);
ASSERT_EFI_ERROR (Status);
}
}
/**
UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device
instance.
@param PciIoDevice hotplug device instance.
**/
VOID
UninstallPciHotplugGuid (
IN PCI_IO_DEVICE *PciIoDevice
)
{
EFI_STATUS Status;
if (!FeaturePcdGet (PcdPciBusHotplugDeviceSupport)) {
return;
}
Status = gBS->OpenProtocol (
PciIoDevice->Handle,
&gEfiPciHotplugDeviceGuid,
NULL,
NULL,
NULL,
EFI_OPEN_PROTOCOL_TEST_PROTOCOL
);
if (Status == EFI_SUCCESS) {
//
// This may triger CardBus driver to stop for
// Pccard devices opened the GUID via BY_DRIVER
//
Status = gBS->UninstallProtocolInterface (
PciIoDevice->Handle,
&gEfiPciHotplugDeviceGuid,
NULL
);
}
}
/** /**
Retrieve the BAR information via PciIo interface. Retrieve the BAR information via PciIo interface.

View File

@ -58,30 +58,6 @@ InstallHotPlugRequestProtocol (
IN EFI_STATUS *Status IN EFI_STATUS *Status
); );
/**
Install protocol gEfiPciHotplugDeviceGuid into hotplug device
instance.
@param PciIoDevice hotplug device instance.
**/
VOID
InstallPciHotplugGuid (
IN PCI_IO_DEVICE *PciIoDevice
);
/**
UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device
instance.
@param PciIoDevice hotplug device instance.
**/
VOID
UninstallPciHotplugGuid (
IN PCI_IO_DEVICE *PciIoDevice
);
/** /**
Retrieve the BAR information via PciIo interface. Retrieve the BAR information via PciIo interface.

View File

@ -1,24 +0,0 @@
/** @file
GUIDs used to indicate the device is Pccard hotplug device
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef __PCI_HOTPLUG_DEVICE_GUID_H_
#define __PCI_HOTPLUG_DEVICE_GUID_H_
#define EFI_PCI_HOTPLUG_DEVICE_GUID \
{ 0x0b280816, 0x52e7, 0x4e51, {0xaa, 0x57, 0x11, 0xbd, 0x41, 0xcb, 0xef, 0xc3 } }
extern EFI_GUID gEfiPciHotplugDeviceGuid;
#endif // __PCI_HOTPLUG_DEVICE_GUID_H_

View File

@ -43,9 +43,6 @@
## Include/Guid/PciOptionRomTable.h ## Include/Guid/PciOptionRomTable.h
gEfiPciOptionRomTableGuid = { 0x7462660F, 0x1CBD, 0x48DA, { 0xAD, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1C }} gEfiPciOptionRomTableGuid = { 0x7462660F, 0x1CBD, 0x48DA, { 0xAD, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1C }}
## Include/Guid/PciHotplugDevice.h
gEfiPciHotplugDeviceGuid = { 0x0B280816, 0x52E7, 0x4E51, { 0xAA, 0x57, 0x11, 0xBD, 0x41, 0xCB, 0xEF, 0xC3 }}
gEfiIntelFrameworkModulePkgTokenSpaceGuid = { 0xD3705011, 0xBC19, 0x4af7, { 0xBE, 0x16, 0xF6, 0x80, 0x30, 0x37, 0x8C, 0x15 }} gEfiIntelFrameworkModulePkgTokenSpaceGuid = { 0xD3705011, 0xBC19, 0x4af7, { 0xBE, 0x16, 0xF6, 0x80, 0x30, 0x37, 0x8C, 0x15 }}
## Include/Guid/CustomDecompress.h ## Include/Guid/CustomDecompress.h