Added GetInterruptVector() routine to PCI bus handler.

svn path=/trunk/; revision=2357
This commit is contained in:
Eric Kohl 2001-11-07 02:27:33 +00:00
parent 01009ce267
commit 679c19d7f8

View file

@ -1,4 +1,4 @@
/* $Id: pci.c,v 1.1 2001/08/21 20:18:27 chorns Exp $ /* $Id: pci.c,v 1.2 2001/11/07 02:27:33 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -449,7 +449,22 @@ GetBusConfigType(VOID)
} }
VOID HalpInitPciBus (VOID) static ULONG STDCALL
HalpGetPciInterruptVector(PVOID BusHandler,
ULONG BusNumber,
ULONG BusInterruptLevel,
ULONG BusInterruptVector,
PKIRQL Irql,
PKAFFINITY Affinity)
{
*Irql = HIGH_LEVEL - BusInterruptVector;
*Affinity = 0xFFFFFFFF;
return BusInterruptVector;
}
VOID
HalpInitPciBus(VOID)
{ {
PBUS_HANDLER BusHandler; PBUS_HANDLER BusHandler;
@ -467,8 +482,8 @@ VOID HalpInitPciBus (VOID)
0); 0);
BusHandler->GetBusData = (pGetSetBusData)HalpGetPciData; BusHandler->GetBusData = (pGetSetBusData)HalpGetPciData;
BusHandler->SetBusData = (pGetSetBusData)HalpSetPciData; BusHandler->SetBusData = (pGetSetBusData)HalpSetPciData;
// BusHandler->GetInterruptVector = BusHandler->GetInterruptVector =
// (pGetInterruptVector)HalpGetPciInterruptVector; (pGetInterruptVector)HalpGetPciInterruptVector;
// BusHandler->AdjustResourceList = // BusHandler->AdjustResourceList =
// (pGetSetBusData)HalpAdjustPciResourceList; // (pGetSetBusData)HalpAdjustPciResourceList;
// BusHandler->AssignSlotResources = // BusHandler->AssignSlotResources =
@ -481,8 +496,8 @@ VOID HalpInitPciBus (VOID)
1); 1);
BusHandler->GetBusData = (pGetSetBusData)HalpGetPciData; BusHandler->GetBusData = (pGetSetBusData)HalpGetPciData;
BusHandler->SetBusData = (pGetSetBusData)HalpSetPciData; BusHandler->SetBusData = (pGetSetBusData)HalpSetPciData;
// BusHandler->GetInterruptVector = BusHandler->GetInterruptVector =
// (pGetInterruptVector)HalpGetPciInterruptVector; (pGetInterruptVector)HalpGetPciInterruptVector;
// BusHandler->AdjustResourceList = // BusHandler->AdjustResourceList =
// (pGetSetBusData)HalpAdjustPciResourceList; // (pGetSetBusData)HalpAdjustPciResourceList;
// BusHandler->AssignSlotResources = // BusHandler->AssignSlotResources =