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.
24 BOOLEAN AcpiPresent
= FALSE
;
31 /* Find the 'Root System Descriptor Table Pointer' */
32 Ptr
= (PUCHAR
)0xE0000;
33 while ((ULONG
)Ptr
< 0x100000)
35 if (!memcmp(Ptr
, "RSD PTR ", 8))
37 DbgPrint((DPRINT_HWDETECT
, "ACPI supported\n"));
42 Ptr
= (PUCHAR
)((ULONG
)Ptr
+ 0x10);
45 DbgPrint((DPRINT_HWDETECT
, "ACPI not supported\n"));
52 DetectAcpiBios(PCONFIGURATION_COMPONENT_DATA SystemKey
, ULONG
*BusNumber
)
54 PCONFIGURATION_COMPONENT_DATA BiosKey
;
55 CM_PARTIAL_RESOURCE_LIST PartialResourceList
;
61 /* Create new bus key */
62 FldrCreateComponentKey(SystemKey
,
63 L
"MultifunctionAdapter",
69 /* Set 'Component Information' */
70 FldrSetComponentInformation(BiosKey
,
75 /* Set 'Configuration Data' value */
76 memset(&PartialResourceList
, 0, sizeof(CM_PARTIAL_RESOURCE_LIST
));
77 PartialResourceList
.Version
= 0;
78 PartialResourceList
.Revision
= 0;
79 PartialResourceList
.Count
= 0;
80 FldrSetConfigurationData(BiosKey
,
82 sizeof(CM_PARTIAL_RESOURCE_LIST
) -
83 sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR
));
85 /* Increment bus number */
88 /* Set 'Identifier' value */
89 FldrSetIdentifier(BiosKey
, L
"ACPI BIOS");
92 /* FIXME: Add congiguration data */