3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: hal/halx86/generic/legacy/halpcat.c
5 * PURPOSE: HAL Legacy Support Code
6 * PROGRAMMERS: ReactOS Portable Systems Group
9 /* INCLUDES *******************************************************************/
15 /* GLOBALS ********************************************************************/
17 /* This determines the HAL type */
18 BOOLEAN HalDisableFirmwareMapper
= FALSE
;
19 PWCHAR HalHardwareIdString
= L
"e_isa_up";
20 PWCHAR HalName
= L
"PC Compatible Eisa/Isa HAL";
22 /* PRIVATE FUNCTIONS **********************************************************/
27 HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock
)
29 /* There is no ACPI on these HALs */
30 return STATUS_NO_SUCH_DEVICE
;
36 HalpBuildAddressMap(VOID
)
38 /* FIXME: Inherit ROM blocks from the registry */
39 //HalpInheritROMBlocks();
41 /* FIXME: Add the ROM blocks to our ranges */
48 HalpGetDebugPortTable(VOID
)
57 HalpIs16BitPortDecodeSupported(VOID
)
59 /* Only EISA systems support this */
60 return (HalpBusType
== MACHINE_TYPE_EISA
) ? CM_RESOURCE_PORT_16_BIT_DECODE
: 0;
67 HaliInitPnpDriver(VOID
)
69 /* On PC-AT, this will interface with the PCI driver */
71 return STATUS_SUCCESS
;
81 HalReportResourceUsage(VOID
)
83 INTERFACE_TYPE InterfaceType
;
84 UNICODE_STRING HalString
;
86 /* FIXME: Initialize MCA bus */
88 /* Initialize PCI bus. */
89 HalpInitializePciBus();
91 /* Initialize the stubs */
92 HalpInitializePciStubs();
94 /* What kind of bus is this? */
98 case MACHINE_TYPE_ISA
:
103 case MACHINE_TYPE_EISA
:
104 InterfaceType
= Eisa
;
108 case MACHINE_TYPE_MCA
:
109 InterfaceType
= MicroChannel
;
114 InterfaceType
= Internal
;
118 /* Build HAL usage */
119 RtlInitUnicodeString(&HalString
, HalName
);
120 HalpReportResourceUsage(&HalString
, InterfaceType
);
122 /* Setup PCI debugging and Hibernation */
123 HalpRegisterPciDebuggingDeviceInfo();