ReactOS  0.4.14-dev-55-g2da92ac
halpcat.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for halpcat.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

INIT_FUNCTION NTSTATUS NTAPI HalpSetupAcpiPhase0 (IN PLOADER_PARAMETER_BLOCK LoaderBlock)
 
INIT_FUNCTION VOID NTAPI HalpBuildAddressMap (VOID)
 
INIT_FUNCTION BOOLEAN NTAPI HalpGetDebugPortTable (VOID)
 
INIT_FUNCTION ULONG NTAPI HalpIs16BitPortDecodeSupported (VOID)
 
INIT_FUNCTION VOID NTAPI HalReportResourceUsage (VOID)
 

Variables

BOOLEAN HalDisableFirmwareMapper = FALSE
 
PWCHAR HalHardwareIdString = L"e_isa_up"
 
PWCHAR HalName = L"PC Compatible Eisa/Isa HAL"
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file halpcat.c.

Function Documentation

◆ HalpBuildAddressMap()

INIT_FUNCTION VOID NTAPI HalpBuildAddressMap ( VOID  )

Definition at line 45 of file halpcat.c.

46 {
47  /* FIXME: Inherit ROM blocks from the registry */
48  //HalpInheritROMBlocks();
49 
50  /* FIXME: Add the ROM blocks to our ranges */
51  //HalpAddROMRanges();
52 }

◆ HalpGetDebugPortTable()

INIT_FUNCTION BOOLEAN NTAPI HalpGetDebugPortTable ( VOID  )

Definition at line 57 of file halpcat.c.

58 {
59  /* No ACPI */
60  return FALSE;
61 }

◆ HalpIs16BitPortDecodeSupported()

INIT_FUNCTION ULONG NTAPI HalpIs16BitPortDecodeSupported ( VOID  )

Definition at line 66 of file halpcat.c.

67 {
68  /* Only EISA systems support this */
70 }
#define CM_RESOURCE_PORT_16_BIT_DECODE
Definition: cmtypes.h:112
ULONG HalpBusType
Definition: bus.c:17
#define MACHINE_TYPE_EISA
Definition: ketypes.h:53

◆ HalpSetupAcpiPhase0()

INIT_FUNCTION NTSTATUS NTAPI HalpSetupAcpiPhase0 ( IN PLOADER_PARAMETER_BLOCK  LoaderBlock)

Definition at line 36 of file halpcat.c.

37 {
38  /* There is no ACPI on these HALs */
39  return STATUS_NO_SUCH_DEVICE;
40 }
#define STATUS_NO_SUCH_DEVICE
Definition: udferr_usr.h:136

◆ HalReportResourceUsage()

INIT_FUNCTION VOID NTAPI HalReportResourceUsage ( VOID  )

Definition at line 90 of file halpcat.c.

91 {
92  INTERFACE_TYPE InterfaceType;
93  UNICODE_STRING HalString;
94 
95  /* FIXME: Initialize MCA bus */
96 
97  /* Initialize PCI bus. */
99 
100  /* Initialize the stubs */
102 
103  /* What kind of bus is this? */
104  switch (HalpBusType)
105  {
106  /* ISA Machine */
107  case MACHINE_TYPE_ISA:
108  InterfaceType = Isa;
109  break;
110 
111  /* EISA Machine */
112  case MACHINE_TYPE_EISA:
113  InterfaceType = Eisa;
114  break;
115 
116  /* MCA Machine */
117  case MACHINE_TYPE_MCA:
118  InterfaceType = MicroChannel;
119  break;
120 
121  /* Unknown */
122  default:
123  InterfaceType = Internal;
124  break;
125  }
126 
127  /* Build HAL usage */
128  RtlInitUnicodeString(&HalString, HalName);
129  HalpReportResourceUsage(&HalString, InterfaceType);
130 
131  /* Setup PCI debugging and Hibernation */
133 }
enum _INTERFACE_TYPE INTERFACE_TYPE
VOID NTAPI HalpInitializePciBus(VOID)
Definition: pci.c:770
ULONG HalpBusType
Definition: bus.c:17
#define MACHINE_TYPE_ISA
Definition: ketypes.h:52
#define MACHINE_TYPE_MCA
Definition: ketypes.h:54
VOID NTAPI HalpInitializePciStubs(VOID)
Definition: pci.c:674
PWCHAR HalName
Definition: halpcat.c:29
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
VOID NTAPI HalpReportResourceUsage(IN PUNICODE_STRING HalName, IN INTERFACE_TYPE InterfaceType)
Definition: usage.c:26
#define MACHINE_TYPE_EISA
Definition: ketypes.h:53
INIT_FUNCTION VOID NTAPI HalpRegisterPciDebuggingDeviceInfo(VOID)
Definition: pcibus.c:648

Variable Documentation

◆ HalDisableFirmwareMapper

BOOLEAN HalDisableFirmwareMapper = FALSE

Definition at line 27 of file halpcat.c.

◆ HalHardwareIdString

PWCHAR HalHardwareIdString = L"e_isa_up"

Definition at line 28 of file halpcat.c.

◆ HalName

PWCHAR HalName = L"PC Compatible Eisa/Isa HAL"

Definition at line 29 of file halpcat.c.

Referenced by HalReportResourceUsage().