コード例 #1
0
ファイル: xboxhw.c プロジェクト: HBelusca/NasuTek-Odyssey
PCONFIGURATION_COMPONENT_DATA
XboxHwDetect(VOID)
{
  PCONFIGURATION_COMPONENT_DATA SystemKey;
  ULONG BusNumber = 0;

  TRACE("DetectHardware()\n");

  /* Create the 'System' key */
  FldrCreateSystemKey(&SystemKey);

  /* TODO: Build actual xbox's hardware configuration tree */
  DetectIsaBios(SystemKey, &BusNumber);

  TRACE("DetectHardware() Done\n");
  return SystemKey;
}
コード例 #2
0
ファイル: macharm.c プロジェクト: Strongc/reactos
PCONFIGURATION_COMPONENT_DATA
ArmHwDetect(VOID)
{
    ARM_CACHE_REGISTER CacheReg;

    /* Create the root node */
    if (ArmHwDetectRan++) return RootNode;
    FldrCreateSystemKey(&RootNode);

    /*
     * TODO:
     * There's no such thing as "PnP" on embedded hardware.
     * The boot loader will send us a device tree, similar to ACPI
     * or OpenFirmware device trees, and we will convert it to ARC.
     */

    /* Get cache information */
    CacheReg = KeArmCacheRegisterGet();
    FirstLevelDcacheSize = SizeBits[CacheReg.DSize];
    FirstLevelDcacheFillSize = LenBits[CacheReg.DLength];
    FirstLevelDcacheFillSize <<= 2;
    FirstLevelIcacheSize = SizeBits[CacheReg.ISize];
    FirstLevelIcacheFillSize = LenBits[CacheReg.ILength];
    FirstLevelIcacheFillSize <<= 2;
    SecondLevelDcacheSize =
    SecondLevelDcacheFillSize =
    SecondLevelIcacheSize =
    SecondLevelIcacheFillSize = 0;

    /* Register RAMDISK Device */
    RamDiskInitialize();

    /* Fill out the ARC disk block */
    reactos_arc_disk_info[reactos_disk_count].Signature = 0xBADAB00F;
    reactos_arc_disk_info[reactos_disk_count].CheckSum = 0xDEADBABE;
    strcpy(reactos_arc_strings[reactos_disk_count], "ramdisk(0)");
    reactos_arc_disk_info[reactos_disk_count].ArcName =
        reactos_arc_strings[reactos_disk_count];
    reactos_disk_count++;
    ASSERT(reactos_disk_count == 1);

    /* Return the root node */
    return RootNode;
}