4 * Copyright (C) 2004 Eric Kohl
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include "../../reactos/registry.h"
37 /* Find the 'Root System Descriptor Table Pointer' */
38 Ptr
= (PUCHAR
)0xE0000;
39 while ((ULONG
)Ptr
< 0x100000)
41 if (!memcmp(Ptr
, "RSD PTR ", 8))
43 DbgPrint((DPRINT_HWDETECT
, "ACPI supported\n"));
48 Ptr
= (PUCHAR
)((ULONG
)Ptr
+ 0x10);
51 DbgPrint((DPRINT_HWDETECT
, "ACPI not supported\n"));
58 DetectAcpiBios(FRLDRHKEY SystemKey
, ULONG
*BusNumber
)
66 /* Create new bus key */
68 "MultifunctionAdapter\\%u", *BusNumber
);
69 Error
= RegCreateKey(SystemKey
,
72 if (Error
!= ERROR_SUCCESS
)
74 DbgPrint((DPRINT_HWDETECT
, "RegCreateKey() failed (Error %u)\n", (int)Error
));
79 /* Set 'Component Information' */
80 SetComponentInformation(BiosKey
,
86 /* Increment bus number */
89 /* Set 'Identifier' value */
90 Error
= RegSetValue(BiosKey
,
95 if (Error
!= ERROR_SUCCESS
)
97 DbgPrint((DPRINT_HWDETECT
, "RegSetValue() failed (Error %u)\n", (int)Error
));