#include "acpi.h"
#include "accommon.h"
#include "actables.h"
Go to the source code of this file.
◆ _COMPONENT
◆ EXPORT_ACPI_INTERFACES
#define EXPORT_ACPI_INTERFACES |
◆ AcpiAllocateRootTable()
Definition at line 69 of file tbxface.c.
71{
72
73 AcpiGbl_RootTableList.MaxTableCount = InitialTableCount;
75
77}
#define ACPI_ROOT_ALLOW_RESIZE
ACPI_STATUS AcpiTbResizeRootTableList(void)
Referenced by AcpiInitializeTables().
◆ AcpiGetTable()
Definition at line 366 of file tbxface.c.
370{
375
376
377
378
380 {
382 }
383
384
385
386
387
388
390
392
393
394
395 for (
i = 0,
j = 0;
i < AcpiGbl_RootTableList.CurrentTableCount;
i++)
396 {
397 TableDesc = &AcpiGbl_RootTableList.Tables[
i];
398
400 {
401 continue;
402 }
403
405 {
406 continue;
407 }
408
410 break;
411 }
412
415}
ACPI_STATUS AcpiTbGetTable(ACPI_TABLE_DESC *TableDesc, ACPI_TABLE_HEADER **OutTable)
#define ACPI_COMPARE_NAMESEG(a, b)
ACPI_STATUS AcpiUtAcquireMutex(ACPI_MUTEX_HANDLE MutexId)
ACPI_STATUS AcpiUtReleaseMutex(ACPI_MUTEX_HANDLE MutexId)
static const WCHAR Signature[]
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
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 GLint GLint j
ACPI_NAME_UNION Signature
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_INSTANCE_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_opt_ WDFWMIINSTANCE * Instance
Referenced by acpi_create_volatile_registry_tables().
◆ AcpiGetTableByIndex()
◆ AcpiGetTableHeader()
Definition at line 275 of file tbxface.c.
279{
283
284
285
286
288 {
290 }
291
292
293
294 for (
i = 0,
j = 0;
i < AcpiGbl_RootTableList.CurrentTableCount;
i++)
295 {
297 &(AcpiGbl_RootTableList.Tables[
i].Signature),
Signature))
298 {
299 continue;
300 }
301
303 {
304 continue;
305 }
306
307 if (!AcpiGbl_RootTableList.Tables[
i].Pointer)
308 {
309 if ((AcpiGbl_RootTableList.Tables[
i].Flags &
312 {
314 AcpiGbl_RootTableList.Tables[
i].Address,
317 {
319 }
320
323 }
324 else
325 {
327 }
328 }
329 else
330 {
332 AcpiGbl_RootTableList.Tables[
i].Pointer,
334 }
335
337 }
338
340}
void * AcpiOsMapMemory(ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length)
void AcpiOsUnmapMemory(void *LogicalAddress, ACPI_SIZE Size)
#define ACPI_TABLE_ORIGIN_MASK
#define ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL
#define memcpy(s1, s2, n)
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
◆ AcpiInitializeTables()
Definition at line 107 of file tbxface.c.
111{
112 ACPI_PHYSICAL_ADDRESS RsdpAddress;
114
115
117
118
119
120
121
122
123 if (!InitialTableArray)
124 {
127 {
129 }
130 }
131 else
132 {
133
134
135 memset (InitialTableArray, 0,
137
138 AcpiGbl_RootTableList.Tables = InitialTableArray;
139 AcpiGbl_RootTableList.MaxTableCount = InitialTableCount;
141 if (AllowResize)
142 {
144 }
145 }
146
147
148
150 if (!RsdpAddress)
151 {
153 }
154
155
156
157
158
159
162}
#define ACPI_ROOT_ORIGIN_UNKNOWN
ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer(void)
ACPI_STATUS AcpiTbParseRootTable(ACPI_PHYSICAL_ADDRESS RsdpAddress)
ACPI_STATUS AcpiAllocateRootTable(UINT32 InitialTableCount)
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeTables(ACPI_TABLE_DESC *InitialTableArray, UINT32 InitialTableCount, BOOLEAN AllowResize)
Referenced by AcpiInitializeTables(), and Bus_StartFdo().
◆ AcpiInstallTableHandler()
Definition at line 550 of file tbxface.c.
553{
555
556
558
559
561 {
563 }
564
567 {
569 }
570
571
572
573 if (AcpiGbl_TableHandler)
574 {
577 }
578
579
580
581 AcpiGbl_TableHandler =
Handler;
582 AcpiGbl_TableHandlerContext =
Context;
583
587}
#define AE_ALREADY_EXISTS
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER Handler
static const WCHAR Cleanup[]
ACPI_STATUS AcpiInstallTableHandler(ACPI_TABLE_HANDLER Handler, void *Context)
Referenced by AcpiInstallTableHandler().
◆ AcpiPutTable()
Definition at line 437 of file tbxface.c.
439{
442
443
445
446
448 {
450 }
451
453
454
455
456 for (
i = 0;
i < AcpiGbl_RootTableList.CurrentTableCount;
i++)
457 {
458 TableDesc = &AcpiGbl_RootTableList.Tables[
i];
459
461 {
462 continue;
463 }
464
466 break;
467 }
468
471}
void AcpiTbPutTable(ACPI_TABLE_DESC *TableDesc)
ACPI_TABLE_HEADER * Pointer
void AcpiPutTable(ACPI_TABLE_HEADER *Table)
Referenced by AcpiPutTable().
◆ AcpiReallocateRootTable()
Definition at line 183 of file tbxface.c.
185{
189
190
192
193
194
195
196
197
198
199
201 AcpiGbl_EnableTableValidation)
202 {
204 }
205
207
208
209
210
211
212
213
214 for (
i = 0;
i < AcpiGbl_RootTableList.CurrentTableCount; ++
i)
215 {
216 TableDesc = &AcpiGbl_RootTableList.Tables[
i];
218 {
220 "Table [%4.4s] is not invalidated during early boot stage",
222 }
223 }
224
225 if (!AcpiGbl_EnableTableValidation)
226 {
227
228
229
230
231 AcpiGbl_EnableTableValidation =
TRUE;
232 for (
i = 0;
i < AcpiGbl_RootTableList.CurrentTableCount; ++
i)
233 {
234 TableDesc = &AcpiGbl_RootTableList.Tables[
i];
236 {
239 {
241 }
242 }
243 }
244 }
245
249
252}
#define ACPI_ROOT_ORIGIN_ALLOCATED
#define ACPI_ERROR(plist)
void AcpiTbUninstallTable(ACPI_TABLE_DESC *TableDesc)
ACPI_STATUS AcpiTbVerifyTempTable(ACPI_TABLE_DESC *TableDesc, char *Signature, UINT32 *TableIndex)
#define ACPI_TABLE_IS_VERIFIED
ACPI_STATUS ACPI_INIT_FUNCTION AcpiReallocateRootTable(void)
Referenced by AcpiReallocateRootTable().
◆ AcpiRemoveTableHandler()
Definition at line 606 of file tbxface.c.
608{
610
611
613
614
617 {
619 }
620
621
622
624 Handler != AcpiGbl_TableHandler)
625 {
628 }
629
630
631
632 AcpiGbl_TableHandler =
NULL;
633
637}
ACPI_STATUS AcpiRemoveTableHandler(ACPI_TABLE_HANDLER Handler)
Referenced by AcpiRemoveTableHandler().