ReactOS  0.4.14-dev-50-g13bb5e2
usage.c
Go to the documentation of this file.
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 
18 
21 
22 /* PRIVATE FUNCTIONS **********************************************************/
23 
24 VOID
25 NTAPI
27  IN INTERFACE_TYPE InterfaceType)
28 {
29  DbgPrint("%wZ has been initialized\n", HalName);
30 }
31 
32 VOID
33 NTAPI
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
50  IN ULONG BusVector,
51  IN ULONG SystemVector,
52  IN KIRQL Irql,
55 {
56  /* Register the routine */
58 }
59 
60 /* PUBLIC FUNCTIONS ***********************************************************/
61 
62 /*
63  * @unimplemented
64  */
65 VOID
66 NTAPI
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 */
VOID NTAPI HalReportResourceUsage(VOID)
Definition: usage.c:67
#define IN
Definition: typedefs.h:38
enum _INTERFACE_TYPE INTERFACE_TYPE
_In_ ULONG Mode
Definition: hubbusif.h:303
#define DbgPrint
Definition: loader.c:25
static const BYTE InterruptRoutine[]
Definition: device.c:34
IDTUsage HalpIDTUsage[256]
Definition: usage.c:20
unsigned char * PUCHAR
Definition: retypes.h:3
VOID NTAPI HalpRegisterVector(IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql)
Definition: usage.c:34
struct _KIPCR * PKIPCR
IDTUsageFlags HalpIDTUsageFlags[256]
Definition: usage.c:19
_Out_ PKIRQL Irql
Definition: csq.h:179
#define KeGetPcr()
Definition: ke.h:25
UCHAR BusReleativeVector
Definition: halp.h:32
UCHAR KIRQL
Definition: env_spec_w32.h:591
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PWCHAR HalName
Definition: halacpi.c:45
enum _KINTERRUPT_MODE KINTERRUPT_MODE
UCHAR Flags
Definition: halp.h:26
VOID NTAPI HalpEnableInterruptHandler(IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql, IN PVOID Handler, IN KINTERRUPT_MODE Mode)
Definition: usage.c:49
PUCHAR KdComPortInUse
Definition: usage.c:17
KIRQL Irql
Definition: halp.h:31
unsigned char UCHAR
Definition: xmlstorage.h:181
static const WCHAR L[]
Definition: oid.c:1250
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER Handler
Definition: acpixf.h:662
Definition: halp.h:29
unsigned int ULONG
Definition: retypes.h:1
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
VOID NTAPI HalpReportResourceUsage(IN PUNICODE_STRING HalName, IN INTERFACE_TYPE InterfaceType)
Definition: usage.c:26