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 *****************************************************************/
19 /* FUNCTIONS ****************************************************************/
22 HalpGetSystemInterruptVector(PVOID BusHandler
,
24 ULONG BusInterruptLevel
,
25 ULONG BusInterruptVector
,
29 ULONG Vector
= IRQ2VECTOR(BusInterruptVector
);
30 *Irql
= VECTOR2IRQL(Vector
);
31 *Affinity
= 0xFFFFFFFF;
37 HalpTranslateSystemBusAddress(PBUS_HANDLER BusHandler
,
39 PHYSICAL_ADDRESS BusAddress
,
41 PPHYSICAL_ADDRESS TranslatedAddress
)
43 ULONG BaseAddress
= 0;
45 if (*AddressSpace
== 0)
50 else if (*AddressSpace
== 1)
61 TranslatedAddress
->QuadPart
= BusAddress
.QuadPart
+ BaseAddress
;