ReactOS 0.4.16-dev-92-g0c2cdca
usage.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for usage.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID NTAPI HalpReportResourceUsage (IN PUNICODE_STRING HalName, IN INTERFACE_TYPE InterfaceType)
 
VOID NTAPI HalpRegisterVector (IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql)
 
VOID NTAPI HalpEnableInterruptHandler (IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql, IN PVOID Handler, IN KINTERRUPT_MODE Mode)
 
VOID NTAPI HalReportResourceUsage (VOID)
 

Variables

PUCHAR KdComPortInUse
 
IDTUsageFlags HalpIDTUsageFlags [256]
 
IDTUsage HalpIDTUsage [256]
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file usage.c.

Function Documentation

◆ HalpEnableInterruptHandler()

VOID NTAPI HalpEnableInterruptHandler ( IN UCHAR  Flags,
IN ULONG  BusVector,
IN ULONG  SystemVector,
IN KIRQL  Irql,
IN PVOID  Handler,
IN KINTERRUPT_MODE  Mode 
)

Definition at line 49 of file usage.c.

55{
56 /* Register the routine */
57 KeGetPcr()->InterruptRoutine[Irql] = Handler;
58}
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:672
_Out_ PKIRQL Irql
Definition: csq.h:179
#define KeGetPcr()
Definition: ketypes.h:81

Referenced by HalInitSystem(), HalpInitPhase0(), and HalpInitPhase1().

◆ HalpRegisterVector()

VOID NTAPI HalpRegisterVector ( IN UCHAR  Flags,
IN ULONG  BusVector,
IN ULONG  SystemVector,
IN KIRQL  Irql 
)

Definition at line 34 of file usage.c.

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}
IDTUsageFlags HalpIDTUsageFlags[256]
Definition: usage.c:19
IDTUsage HalpIDTUsage[256]
Definition: usage.c:20
UCHAR BusReleativeVector
Definition: halp.h:32
KIRQL Irql
Definition: halp.h:31
UCHAR Flags
Definition: halp.h:26
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170

Referenced by HalpEnableInterruptHandler(), HalpInitializePICs(), and HalpReportResourceUsage().

◆ HalpReportResourceUsage()

VOID NTAPI HalpReportResourceUsage ( IN PUNICODE_STRING  HalName,
IN INTERFACE_TYPE  InterfaceType 
)

Definition at line 26 of file usage.c.

28{
29 DbgPrint("%wZ has been initialized\n", HalName);
30}
#define DbgPrint
Definition: hal.h:12
PWCHAR HalName
Definition: halacpi.c:45

Referenced by HalReportResourceUsage().

◆ HalReportResourceUsage()

VOID NTAPI HalReportResourceUsage ( VOID  )

Definition at line 67 of file usage.c.

68{
69 UNICODE_STRING HalString;
70
71 /* Build HAL usage */
72 RtlInitUnicodeString(&HalString, L"ARM Versatile HAL");
74}
VOID NTAPI HalpReportResourceUsage(IN PUNICODE_STRING HalName, IN INTERFACE_TYPE InterfaceType)
Definition: usage.c:26
@ Internal
Definition: hwresource.cpp:137
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define L(x)
Definition: ntvdm.h:50

Referenced by Phase1InitializationDiscard().

Variable Documentation

◆ HalpIDTUsage

IDTUsage HalpIDTUsage[256]

Definition at line 20 of file usage.c.

Referenced by HalpBuildPartialFromIdt(), HalpRegisterVector(), and HalpReportResourceUsage().

◆ HalpIDTUsageFlags

◆ KdComPortInUse