ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

halpcat.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS HAL
00003  * LICENSE:         BSD - See COPYING.ARM in the top level directory
00004  * FILE:            hal/halx86/generic/legacy/halpcat.c
00005  * PURPOSE:         HAL Legacy Support Code
00006  * PROGRAMMERS:     ReactOS Portable Systems Group
00007  */
00008 
00009 /* INCLUDES *******************************************************************/
00010 
00011 #include <hal.h>
00012 #define NDEBUG
00013 #include <debug.h>
00014 
00015 /* GLOBALS ********************************************************************/
00016 
00017 /* This determines the HAL type */
00018 BOOLEAN HalDisableFirmwareMapper = FALSE;
00019 PWCHAR HalHardwareIdString = L"e_isa_up";
00020 PWCHAR HalName = L"PC Compatible Eisa/Isa HAL";
00021 
00022 /* PRIVATE FUNCTIONS **********************************************************/
00023 
00024 NTSTATUS
00025 NTAPI
00026 INIT_FUNCTION
00027 HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
00028 {
00029     /* There is no ACPI on these HALs */
00030     return STATUS_NO_SUCH_DEVICE;
00031 }
00032 
00033 VOID
00034 NTAPI
00035 INIT_FUNCTION
00036 HalpBuildAddressMap(VOID)
00037 {
00038     /* FIXME: Inherit ROM blocks from the registry */
00039     //HalpInheritROMBlocks();
00040     
00041     /* FIXME: Add the ROM blocks to our ranges */
00042     //HalpAddROMRanges();
00043 }
00044 
00045 BOOLEAN
00046 NTAPI
00047 INIT_FUNCTION
00048 HalpGetDebugPortTable(VOID)
00049 {
00050     /* No ACPI */
00051     return FALSE;
00052 }
00053 
00054 ULONG
00055 NTAPI
00056 INIT_FUNCTION
00057 HalpIs16BitPortDecodeSupported(VOID)
00058 {
00059     /* Only EISA systems support this */
00060     return (HalpBusType == MACHINE_TYPE_EISA) ? CM_RESOURCE_PORT_16_BIT_DECODE : 0;
00061 }
00062 
00063 #if 0
00064 NTSTATUS
00065 NTAPI
00066 INIT_FUNCTION
00067 HaliInitPnpDriver(VOID)
00068 {
00069     /* On PC-AT, this will interface with the PCI driver */
00070     //HalpDebugPciBus();
00071     return STATUS_SUCCESS;
00072 }
00073 #endif
00074 
00075 /*
00076  * @implemented
00077  */
00078 VOID
00079 NTAPI
00080 INIT_FUNCTION
00081 HalReportResourceUsage(VOID)
00082 {
00083     INTERFACE_TYPE InterfaceType;
00084     UNICODE_STRING HalString;
00085 
00086     /* FIXME: Initialize MCA bus */
00087 
00088     /* Initialize PCI bus. */
00089     HalpInitializePciBus();
00090 
00091     /* Initialize the stubs */
00092     HalpInitializePciStubs();
00093 
00094     /* What kind of bus is this? */
00095     switch (HalpBusType)
00096     {
00097         /* ISA Machine */
00098         case MACHINE_TYPE_ISA:
00099             InterfaceType = Isa;
00100             break;
00101 
00102         /* EISA Machine */
00103         case MACHINE_TYPE_EISA:
00104             InterfaceType = Eisa;
00105             break;
00106 
00107         /* MCA Machine */
00108         case MACHINE_TYPE_MCA:
00109             InterfaceType = MicroChannel;
00110             break;
00111 
00112         /* Unknown */
00113         default:
00114             InterfaceType = Internal;
00115             break;
00116     }
00117 
00118     /* Build HAL usage */
00119     RtlInitUnicodeString(&HalString, HalName);
00120     HalpReportResourceUsage(&HalString, InterfaceType);
00121 
00122     /* Setup PCI debugging and Hibernation */
00123     HalpRegisterPciDebuggingDeviceInfo();
00124 }
00125 
00126 /* EOF */

Generated on Fri May 25 2012 04:26:59 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.