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>
18 /* FUNCTIONS ****************************************************************/
21 HalpGetSystemInterruptVector(PVOID BusHandler,
23 ULONG BusInterruptLevel,
24 ULONG BusInterruptVector,
28 *Irql = PROFILE_LEVEL - BusInterruptVector;
29 *Affinity = 0xFFFFFFFF;
30 return BusInterruptVector;
35 HalpTranslateSystemBusAddress(PBUS_HANDLER BusHandler,
37 PHYSICAL_ADDRESS BusAddress,
39 PPHYSICAL_ADDRESS TranslatedAddress)
41 ULONG BaseAddress = 0;
43 if (*AddressSpace == 0)
48 else if (*AddressSpace == 1)
59 TranslatedAddress->QuadPart = BusAddress.QuadPart + BaseAddress;