VOID HalReportResourceUsage ( VOID ) { INTERFACE_TYPE interfacetype; ANSI_STRING AHalName; UNICODE_STRING UHalName; HalInitSystemPhase2(); switch (HalpBusType) { case MACHINE_TYPE_ISA: interfacetype = Isa; break; case MACHINE_TYPE_EISA: interfacetype = Eisa; break; case MACHINE_TYPE_MCA: interfacetype = MicroChannel; break; default: interfacetype = Internal; break; } RtlInitAnsiString (&AHalName, HalName); RtlAnsiStringToUnicodeString (&UHalName, &AHalName, TRUE); HalpReportResourceUsage ( &UHalName, // descriptive name interfacetype // device space interface type ); RtlFreeUnicodeString (&UHalName); // // Registry is now intialized, see if there are any PCI buses // HalpInitializePciBus (); }
/* * @unimplemented */ VOID NTAPI HalReportResourceUsage(VOID) { UNICODE_STRING HalString; /* Build HAL usage */ RtlInitUnicodeString(&HalString, L"ARM Versatile HAL"); HalpReportResourceUsage(&HalString, Internal); }
/* * @implemented */ INIT_SECTION VOID NTAPI HalReportResourceUsage(VOID) { INTERFACE_TYPE InterfaceType; UNICODE_STRING HalString; /* FIXME: Initialize MCA bus */ /* Initialize PCI bus. */ HalpInitializePciBus(); /* Initialize the stubs */ HalpInitializePciStubs(); /* What kind of bus is this? */ switch (HalpBusType) { /* ISA Machine */ case MACHINE_TYPE_ISA: InterfaceType = Isa; break; /* EISA Machine */ case MACHINE_TYPE_EISA: InterfaceType = Eisa; break; /* MCA Machine */ case MACHINE_TYPE_MCA: InterfaceType = MicroChannel; break; /* Unknown */ default: InterfaceType = Internal; break; } /* Build HAL usage */ RtlInitUnicodeString(&HalString, HalName); HalpReportResourceUsage(&HalString, InterfaceType); /* Setup PCI debugging and Hibernation */ HalpRegisterPciDebuggingDeviceInfo(); }
VOID HalReportResourceUsage( VOID ) /*++ Routine Description: Arguments: Return Value: --*/ { ANSI_STRING AHalName; UNICODE_STRING UHalName; // // Report IO space usage // for HAL/system resources // RtlInitAnsiString (&AHalName, HalName); RtlAnsiStringToUnicodeString (&UHalName, &AHalName, TRUE); HalpReportResourceUsage ( &UHalName, PCIBus ); //RtlFreeUnicodeString (&UHalName); // // Now create the registry keys // used to log errors if they // do not already exist // HalpCreateLogKeys(); }
VOID HalReportResourceUsage ( VOID ) /*++ Routine Description: The registery is now enabled - time to report resources which are used by the HAL. Arguments: Return Value: --*/ { ANSI_STRING AHalName; UNICODE_STRING UHalName; INTERFACE_TYPE interfacetype; // // Initialize phase 2 // HalInitSystemPhase2 (); // // Set type // switch (HalpBusType) { case MACHINE_TYPE_ISA: interfacetype = Isa; break; case MACHINE_TYPE_EISA: interfacetype = Eisa; break; case MACHINE_TYPE_MCA: interfacetype = MicroChannel; break; default: interfacetype = Internal; break; } // // Report HALs resource usage // RtlInitAnsiString (&AHalName, HalName); RtlAnsiStringToUnicodeString (&UHalName, &AHalName, TRUE); HalpReportResourceUsage ( &UHalName, // descriptive name interfacetype ); RtlFreeUnicodeString (&UHalName); // // Turn on MCA support if present // HalpMcaInit(); // // Registry is now intialized, see if there are any PCI buses // HalpInitializePciBus (); // // Update supported address info with MPS bus address map // HalpInitBusAddressMapInfo (); // // Inherit any bus address mappings from MPS hierarchy descriptors // HalpInheritBusAddressMapInfo (); }