#include <uefildr.h>
#include <debug.h>
Go to the source code of this file.
◆ DBG_DEFAULT_CHANNEL()
◆ DetectAcpiBios()
Definition at line 49 of file uefihw.c.
50{
57
59
60 if (Rsdp)
61 {
62
64
65
68
69
72 if (PartialResourceList ==
NULL)
73 {
74 ERR(
"Failed to allocate resource descriptor\n");
75 return;
76 }
77
79 PartialResourceList->
Version = 0;
81 PartialResourceList->
Count = 1;
82
87
88
90
92 {
93 TRACE(
"ACPI >1.0, using XSDT address\n");
95 }
96 else
97 {
98 TRACE(
"ACPI 1.0, using RSDT address\n");
100 }
101
105
107
108
112 0x0,
113 0x0,
114 0xFFFFFFFF,
115 "ACPI BIOS",
116 PartialResourceList,
118 &BiosKey);
119
120
121 (*BusNumber)++;
122 }
123}
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)
FORCEINLINE 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]
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391::@400 DeviceSpecificData
union _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391 u
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 29 of file uefihw.c.
30{
34
36 {
38 &acpi2_guid, sizeof(acpi2_guid)))
39 {
41 break;
42 }
43 }
44
45 return rsdp;
46}
#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().
◆ UefiHwDetect()
Definition at line 126 of file uefihw.c.
128{
131
132 TRACE(
"DetectHardware()\n");
133
134
135#if defined(_M_IX86) || defined(_M_AMD64)
137#elif defined(_M_IA64)
139#elif defined(_M_ARM) || defined(_M_ARM64)
141#else
142 #error Please define a system key for your architecture
143#endif
144
145
147
148 TRACE(
"DetectHardware() Done\n");
149 return SystemKey;
150}
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