3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * PURPOSE: HAL Legacy Support Code
5 * PROGRAMMERS: ReactOS Portable Systems Group
8 /* INCLUDES *******************************************************************/
15 /* GLOBALS ********************************************************************/
17 /* This determines the HAL type */
18 BOOLEAN HalDisableFirmwareMapper
= FALSE
;
19 #if defined(SARCH_XBOX)
20 PWCHAR HalHardwareIdString
= L
"xbox";
21 PWCHAR HalName
= L
"Xbox HAL";
22 #elif defined(SARCH_PC98)
23 PWCHAR HalHardwareIdString
= L
"pc98_up";
24 PWCHAR HalName
= L
"NEC PC-98 Compatible NESA/C-Bus HAL";
26 PWCHAR HalHardwareIdString
= L
"e_isa_up";
27 PWCHAR HalName
= L
"PC Compatible Eisa/Isa HAL";
30 /* PRIVATE FUNCTIONS **********************************************************/
35 HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock
)
37 /* There is no ACPI on these HALs */
38 return STATUS_NO_SUCH_DEVICE
;
44 HalpBuildAddressMap(VOID
)
46 /* FIXME: Inherit ROM blocks from the registry */
47 //HalpInheritROMBlocks();
49 /* FIXME: Add the ROM blocks to our ranges */
56 HalpGetDebugPortTable(VOID
)
65 HalpIs16BitPortDecodeSupported(VOID
)
67 /* Only EISA systems support this */
68 return (HalpBusType
== MACHINE_TYPE_EISA
) ? CM_RESOURCE_PORT_16_BIT_DECODE
: 0;
75 HaliInitPnpDriver(VOID
)
77 /* On PC-AT, this will interface with the PCI driver */
79 return STATUS_SUCCESS
;
89 HalReportResourceUsage(VOID
)
91 INTERFACE_TYPE InterfaceType
;
92 UNICODE_STRING HalString
;
94 /* FIXME: Initialize MCA bus */
96 /* Initialize PCI bus. */
97 HalpInitializePciBus();
99 /* Initialize the stubs */
100 HalpInitializePciStubs();
102 /* What kind of bus is this? */
106 case MACHINE_TYPE_ISA
:
111 case MACHINE_TYPE_EISA
:
112 InterfaceType
= Eisa
;
116 case MACHINE_TYPE_MCA
:
117 InterfaceType
= MicroChannel
;
122 InterfaceType
= Internal
;
126 /* Build HAL usage */
127 RtlInitUnicodeString(&HalString
, HalName
);
128 HalpReportResourceUsage(&HalString
, InterfaceType
);
130 /* Setup PCI debugging and Hibernation */
131 HalpRegisterPciDebuggingDeviceInfo();