3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/sysbus.c
6 * PURPOSE: System bus handler functions
7 * PROGRAMMER: Eric Kohl (ekohl@rz-online.de)
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
19 #include <internal/debug.h>
22 /* FUNCTIONS ****************************************************************/
25 HalpGetSystemInterruptVector(PVOID BusHandler
,
27 ULONG BusInterruptLevel
,
28 ULONG BusInterruptVector
,
32 ULONG Vector
= IRQ2VECTOR(BusInterruptVector
);
33 *Irql
= VECTOR2IRQL(Vector
);
34 *Affinity
= 0xFFFFFFFF;
40 HalpTranslateSystemBusAddress(PBUS_HANDLER BusHandler
,
42 PHYSICAL_ADDRESS BusAddress
,
44 PPHYSICAL_ADDRESS TranslatedAddress
)
46 ULONG BaseAddress
= 0;
48 if (*AddressSpace
== 0)
53 else if (*AddressSpace
== 1)
64 TranslatedAddress
->QuadPart
= BusAddress
.QuadPart
+ BaseAddress
;