#include "acpi.h"
#include "accommon.h"
Go to the source code of this file.
◆ _COMPONENT
◆ AcpiUtGetInterface()
Definition at line 425 of file utosi.c.
427{
429
430
431 NextInterface = AcpiGbl_SupportedInterfaces;
432 while (NextInterface)
433 {
434 if (!
strcmp (InterfaceName, NextInterface->
Name))
435 {
436 return (NextInterface);
437 }
438
439 NextInterface = NextInterface->
Next;
440 }
441
443}
int strcmp(const char *String1, const char *String2)
struct acpi_interface_info * Next
Referenced by AcpiInstallInterface(), and AcpiUtOsiImplementation().
◆ AcpiUtInitializeInterfaces()
Definition at line 150 of file utosi.c.
152{
155
156
159 {
161 }
162
164
165
166
170 {
173 }
174
177}
#define ACPI_ARRAY_LENGTH(x)
#define AcpiOsAcquireMutex(Handle, Time)
#define AcpiOsReleaseMutex(Handle)
#define ACPI_WAIT_FOREVER
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
static ACPI_INTERFACE_INFO AcpiDefaultSupportedInterfaces[]
Referenced by AcpiInitializeSubsystem().
◆ AcpiUtInstallInterface()
Definition at line 255 of file utosi.c.
257{
259
260
261
262
264 if (!InterfaceInfo)
265 {
267 }
268
270 if (!InterfaceInfo->
Name)
271 {
274 }
275
276
277
280 InterfaceInfo->
Next = AcpiGbl_SupportedInterfaces;
281
282 AcpiGbl_SupportedInterfaces = InterfaceInfo;
284}
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
#define ACPI_ALLOCATE_ZEROED(a)
Referenced by AcpiInstallInterface().
◆ AcpiUtInterfaceTerminate()
Definition at line 194 of file utosi.c.
196{
199
200
203 {
205 }
206
207 NextInterface = AcpiGbl_SupportedInterfaces;
208 while (NextInterface)
209 {
210 AcpiGbl_SupportedInterfaces = NextInterface->
Next;
211
213 {
214
215
218 }
219 else
220 {
221
222
224 {
226 }
227 else
228 {
229 NextInterface->
Flags &= ~ACPI_OSI_INVALID;
230 }
231 }
232
233 NextInterface = AcpiGbl_SupportedInterfaces;
234 }
235
238}
#define ACPI_OSI_DEFAULT_INVALID
Referenced by AcpiUtSubsystemShutdown().
◆ AcpiUtOsiImplementation()
Definition at line 472 of file utosi.c.
474{
481
482
484
485
486
487
488 StringDesc = WalkState->
Arguments[0].Object;
489 if (!StringDesc ||
491 {
493 }
494
495
496
498 if (!ReturnDesc)
499 {
501 }
502
503
504
508 {
511 }
512
513
514
516 if (InterfaceInfo &&
518 {
519
520
521
522
523
524 if (InterfaceInfo->
Value > AcpiGbl_OsiData)
525 {
526 AcpiGbl_OsiData = InterfaceInfo->
Value;
527 }
528
530 }
531
533
534
535
536
537
538
539 InterfaceHandler = AcpiGbl_InterfaceHandler;
540 if (InterfaceHandler)
541 {
542 if (InterfaceHandler (
544 {
546 }
547 }
548
550 "ACPI: BIOS _OSI(\"%s\") is %ssupported\n",
552
553
554
558}
unsigned long long UINT64
UINT32 void void ** ReturnValue
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
#define ACPI_DEBUG_PRINT_RAW(pl)
#define ACPI_TYPE_INTEGER
UINT32(* ACPI_INTERFACE_HANDLER)(ACPI_STRING InterfaceName, UINT32 Supported)
#define AcpiUtCreateInternalObject(t)
void AcpiUtRemoveReference(ACPI_OPERAND_OBJECT *Object)
union acpi_operand_object * ReturnDesc
struct acpi_namespace_node Arguments[ACPI_METHOD_NUM_ARGS]
ACPI_OBJECT_INTEGER Integer
ACPI_OBJECT_COMMON Common
ACPI_OBJECT_STRING String
ACPI_INTERFACE_INFO * AcpiUtGetInterface(ACPI_STRING InterfaceName)
Referenced by AcpiNsRootInitialize().
◆ AcpiUtRemoveInterface()
Definition at line 301 of file utosi.c.
303{
306
307
308 PreviousInterface = NextInterface = AcpiGbl_SupportedInterfaces;
309 while (NextInterface)
310 {
311 if (!
strcmp (InterfaceName, NextInterface->
Name))
312 {
313
314
315
316
318 {
319
320
321 if (PreviousInterface == NextInterface)
322 {
323 AcpiGbl_SupportedInterfaces = NextInterface->
Next;
324 }
325 else
326 {
327 PreviousInterface->
Next = NextInterface->
Next;
328 }
329
332 }
333 else
334 {
335
336
337
338
340 {
342 }
343
345 }
346
348 }
349
350 PreviousInterface = NextInterface;
351 NextInterface = NextInterface->
Next;
352 }
353
354
355
357}
Referenced by AcpiRemoveInterface().
◆ AcpiUtUpdateInterfaces()
Definition at line 376 of file utosi.c.
378{
380
381
382 NextInterface = AcpiGbl_SupportedInterfaces;
383 while (NextInterface)
384 {
389 {
391 {
392
393
395 }
396 else
397 {
398
399
400 NextInterface->
Flags &= ~ACPI_OSI_INVALID;
401 }
402 }
403
404 NextInterface = NextInterface->
Next;
405 }
406
408}
#define ACPI_VENDOR_STRINGS
#define ACPI_FEATURE_STRINGS
#define ACPI_DISABLE_INTERFACES
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
Referenced by AcpiUpdateInterfaces().
◆ AcpiDefaultSupportedInterfaces