#include <uefildr.h>
#include <debug.h>
Go to the source code of this file.
◆ DBG_DEFAULT_CHANNEL()
◆ DetectAcpiBios()
Definition at line 54 of file uefihw.c.
55{
62
64
65 if (Rsdp)
66 {
67
69
70
73
74
77 if (PartialResourceList ==
NULL)
78 {
79 ERR(
"Failed to allocate resource descriptor\n");
80 return;
81 }
82
84 PartialResourceList->
Version = 0;
86 PartialResourceList->
Count = 1;
87
92
93
95
97 {
98 TRACE(
"ACPI >1.0, using XSDT address\n");
100 }
101 else
102 {
103 TRACE(
"ACPI 1.0, using RSDT address\n");
105 }
106
110
112
113
117 0x0,
118 0x0,
119 0xFFFFFFFF,
120 "ACPI BIOS",
121 PartialResourceList,
123 &BiosKey);
124
125
126 (*BusNumber)++;
127 }
128}
VOID FldrCreateComponentKey(_In_ PCONFIGURATION_COMPONENT_DATA SystemNode, _In_ CONFIGURATION_CLASS Class, _In_ CONFIGURATION_TYPE Type, _In_ IDENTIFIER_FLAG Flags, _In_ ULONG Key, _In_ ULONG Affinity, _In_ PCSTR IdentifierString, _In_ PCM_PARTIAL_RESOURCE_LIST ResourceList, _In_ ULONG Size, _Out_ PCONFIGURATION_COMPONENT_DATA *ComponentKey)
PVOID FrLdrHeapAlloc(SIZE_T MemorySize, ULONG Tag)
#define CmResourceTypeDeviceSpecific
#define memcpy(s1, s2, n)
struct _ACPI_BIOS_DATA * PACPI_BIOS_DATA
ULONG rsdt_physical_address
ULONGLONG xsdt_physical_address
PHYSICAL_ADDRESS RSDTAddress
BIOS_MEMORY_MAP MemoryMap[1]
union _CM_PARTIAL_RESOURCE_DESCRIPTOR::@393 u
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@393::@402 DeviceSpecificData
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1]
#define RtlZeroMemory(Destination, Length)
#define TAG_HW_RESOURCE_LIST
EFI_MEMORY_DESCRIPTOR * EfiMemoryMap
static PRSDP_DESCRIPTOR FindAcpiBios(VOID)
@ CmResourceShareUndetermined
_Must_inspect_result_ typedef _Out_ PULONG TableSize
Referenced by UefiHwDetect().
◆ FindAcpiBios()
Definition at line 34 of file uefihw.c.
35{
39
41 {
43 &acpi2_guid, sizeof(acpi2_guid)))
44 {
46 break;
47 }
48 }
49
50 return rsdp;
51}
#define EFI_ACPI_20_TABLE_GUID
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
EFI_CONFIGURATION_TABLE * ConfigurationTable
UINTN NumberOfTableEntries
EFI_SYSTEM_TABLE * GlobalSystemTable
Referenced by DetectAcpiBios().
◆ IsAcpiPresent()
◆ UefiHwDetect()
Definition at line 131 of file uefihw.c.
133{
136
137 TRACE(
"DetectHardware()\n");
138
139
140#if defined(_M_IX86) || defined(_M_AMD64)
142#elif defined(_M_IA64)
144#elif defined(_M_ARM) || defined(_M_ARM64)
146#else
147 #error Please define a system key for your architecture
148#endif
149
150
152
153 TRACE(
"DetectHardware() Done\n");
154 return SystemKey;
155}
VOID FldrCreateSystemKey(_Out_ PCONFIGURATION_COMPONENT_DATA *SystemNode, _In_ PCSTR IdentifierString)
VOID DetectAcpiBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
Referenced by MachInit().
◆ AcpiPresent
◆ EfiMemoryMap
◆ FreeldrDescCount
◆ GlobalImageHandle
◆ GlobalSystemTable
◆ PcBiosDiskCount