1 /* 2 * PROJECT: ReactOS HAL 3 * LICENSE: BSD - See COPYING.ARM in the top level directory 4 * FILE: hal/halarm/generic/usage.c 5 * PURPOSE: Resource Usage Management Routines 6 * PROGRAMMERS: ReactOS Portable Systems Group 7 */ 8 9 /* INCLUDES *******************************************************************/ 10 11 #include <hal.h> 12 #define NDEBUG 13 #include <debug.h> 14 15 /* GLOBALS ********************************************************************/ 16 17 PUCHAR KdComPortInUse; 18 19 IDTUsageFlags HalpIDTUsageFlags[256]; 20 IDTUsage HalpIDTUsage[256]; 21 22 /* PRIVATE FUNCTIONS **********************************************************/ 23 24 VOID 25 NTAPI 26 HalpReportResourceUsage(IN PUNICODE_STRING HalName, 27 IN INTERFACE_TYPE InterfaceType) 28 { 29 DbgPrint("%wZ has been initialized\n", HalName); 30 } 31 32 VOID 33 NTAPI 34 HalpRegisterVector(IN UCHAR Flags, 35 IN ULONG BusVector, 36 IN ULONG SystemVector, 37 IN KIRQL Irql) 38 { 39 /* Save the vector flags */ 40 HalpIDTUsageFlags[SystemVector].Flags = Flags; 41 42 /* Save the vector data */ 43 HalpIDTUsage[SystemVector].Irql = Irql; 44 HalpIDTUsage[SystemVector].BusReleativeVector = BusVector; 45 } 46 47 VOID 48 NTAPI 49 HalpEnableInterruptHandler(IN UCHAR Flags, 50 IN ULONG BusVector, 51 IN ULONG SystemVector, 52 IN KIRQL Irql, 53 IN PVOID Handler, 54 IN KINTERRUPT_MODE Mode) 55 { 56 /* Register the routine */ 57 ((PKIPCR)KeGetPcr())->InterruptRoutine[Irql] = Handler; 58 } 59 60 /* PUBLIC FUNCTIONS ***********************************************************/ 61 62 /* 63 * @unimplemented 64 */ 65 VOID 66 NTAPI 67 HalReportResourceUsage(VOID) 68 { 69 UNICODE_STRING HalString; 70 71 /* Build HAL usage */ 72 RtlInitUnicodeString(&HalString, L"ARM Versatile HAL"); 73 HalpReportResourceUsage(&HalString, Internal); 74 } 75 76 /* EOF */ 77