mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
[PCIIDEX] Revert unwanted changes
svn path=/trunk/; revision=61629
This commit is contained in:
parent
1ea1ab9f88
commit
9f254f9838
1 changed files with 0 additions and 62 deletions
|
@ -353,63 +353,6 @@ PciIdeXPdoQueryDeviceRelations(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
//GUID_PCIIDE_INTERRUPT_INTERFACE
|
|
||||||
//GUID_PCIIDE_REQUEST_PROPER_RESOURCES
|
|
||||||
|
|
||||||
DEFINE_GUID(GUID_PCIIDE_SYNC_ACCESS_INTERFACE, 0x681190EB, 0xE4EA, 0x11D0, 0xAB, 0x82, 0x00, 0xA0, 0xC9, 0x06, 0x96, 0x2F);
|
|
||||||
DEFINE_GUID(GUID_PCIIDE_XFER_MODE_INTERFACE, 0x681190EC, 0xE4EA, 0x11D0, 0xAB, 0x82, 0x00, 0xA0, 0xC9, 0x06, 0x96, 0x2F);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
PciIdeXPdoPnpQueryInterface(
|
|
||||||
PIRP Irp)
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
PIO_STACK_LOCATION IrpStack = IoGetCurrentIrpStackLocation(Irp);
|
|
||||||
PACPI_INTERFACE_STANDARD AcpiInterface;
|
|
||||||
|
|
||||||
if (IrpStack->Parameters.QueryInterface.Version != 1)
|
|
||||||
{
|
|
||||||
DPRINT1("Invalid version number: %d\n",
|
|
||||||
IrpStack->Parameters.QueryInterface.Version);
|
|
||||||
return STATUS_INVALID_PARAMETER;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IsEqualGUID(IrpStack->Parameters.QueryInterface.InterfaceType,
|
|
||||||
&GUID_PCIIDE_XFER_MODE_INTERFACE))
|
|
||||||
{
|
|
||||||
DPRINT1("GUID_PCIIDE_XFER_MODE_INTERFACE\n");
|
|
||||||
|
|
||||||
if (IrpStack->Parameters.QueryInterface.Size < sizeof(ACPI_INTERFACE_STANDARD))
|
|
||||||
{
|
|
||||||
DPRINT1("Buffer too small! (%d)\n", IrpStack->Parameters.QueryInterface.Size);
|
|
||||||
return STATUS_BUFFER_TOO_SMALL;
|
|
||||||
}
|
|
||||||
|
|
||||||
AcpiInterface = (PACPI_INTERFACE_STANDARD)IrpStack->Parameters.QueryInterface.Interface;
|
|
||||||
|
|
||||||
AcpiInterface->InterfaceReference = AcpiInterfaceReference;
|
|
||||||
AcpiInterface->InterfaceDereference = AcpiInterfaceDereference;
|
|
||||||
AcpiInterface->GpeConnectVector = AcpiInterfaceConnectVector;
|
|
||||||
AcpiInterface->GpeDisconnectVector = AcpiInterfaceDisconnectVector;
|
|
||||||
AcpiInterface->GpeEnableEvent = AcpiInterfaceEnableEvent;
|
|
||||||
AcpiInterface->GpeDisableEvent = AcpiInterfaceDisableEvent;
|
|
||||||
AcpiInterface->GpeClearStatus = AcpiInterfaceClearStatus;
|
|
||||||
AcpiInterface->RegisterForDeviceNotifications = AcpiInterfaceNotificationsRegister;
|
|
||||||
AcpiInterface->UnregisterForDeviceNotifications = AcpiInterfaceNotificationsUnregister;
|
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DPRINT1("Invalid GUID\n");
|
|
||||||
return STATUS_NOT_SUPPORTED;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
NTSTATUS NTAPI
|
NTSTATUS NTAPI
|
||||||
PciIdeXPdoPnpDispatch(
|
PciIdeXPdoPnpDispatch(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
@ -575,11 +518,6 @@ PciIdeXPdoPnpDispatch(
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case IRP_MN_QUERY_INTERFACE:
|
|
||||||
{
|
|
||||||
Status = PciIdeXPdoPnpQueryInterface(Irp);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue