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;
66 HaliInitPnpDriver(VOID
)
68 /* On PC-AT, this will interface with the PCI driver */
70 return STATUS_SUCCESS
;
79 HalReportResourceUsage(VOID
)
81 INTERFACE_TYPE InterfaceType
;
82 UNICODE_STRING HalString
;
84 /* FIXME: Initialize MCA bus */
86 /* Initialize PCI bus. */
87 HalpInitializePciBus();
89 /* Initialize the stubs */
90 HalpInitializePciStubs();
92 /* What kind of bus is this? */
96 case MACHINE_TYPE_ISA
:
101 case MACHINE_TYPE_EISA
:
102 InterfaceType
= Eisa
;
106 case MACHINE_TYPE_MCA
:
107 InterfaceType
= MicroChannel
;
112 InterfaceType
= Internal
;
116 /* Build HAL usage */
117 RtlInitUnicodeString(&HalString
, HalName
);
118 HalpReportResourceUsage(&HalString
, InterfaceType
);
120 /* Setup PCI debugging and Hibernation */
121 HalpRegisterPciDebuggingDeviceInfo();