#include "acpi.h"
#include "accommon.h"
#include "acresrc.h"
#include "acnamesp.h"
Go to the source code of this file.
|
static ACPI_STATUS | AcpiRsMatchVendorResource (ACPI_RESOURCE *Resource, void *Context) |
|
static ACPI_STATUS | AcpiRsValidateParameters (ACPI_HANDLE DeviceHandle, ACPI_BUFFER *Buffer, ACPI_NAMESPACE_NODE **ReturnNode) |
|
ACPI_STATUS | AcpiGetIrqRoutingTable (ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiGetCurrentResources (ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiGetPossibleResources (ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiSetCurrentResources (ACPI_HANDLE DeviceHandle, ACPI_BUFFER *InBuffer) |
|
ACPI_STATUS | AcpiGetEventResources (ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiResourceToAddress64 (ACPI_RESOURCE *Resource, ACPI_RESOURCE_ADDRESS64 *Out) |
|
ACPI_STATUS | AcpiGetVendorResource (ACPI_HANDLE DeviceHandle, char *Name, ACPI_VENDOR_UUID *Uuid, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiWalkResourceBuffer (ACPI_BUFFER *Buffer, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context) |
|
ACPI_STATUS | AcpiWalkResources (ACPI_HANDLE DeviceHandle, char *Name, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context) |
|
◆ _COMPONENT
◆ ACPI_COPY_ADDRESS
Value:
ACPI_COPY_FIELD(
Out,
In, ProducerConsumer); \
ACPI_COPY_FIELD(
Out,
In, Decode); \
ACPI_COPY_FIELD(
Out,
In, MinAddressFixed); \
ACPI_COPY_FIELD(
Out,
In, MaxAddressFixed); \
ACPI_COPY_FIELD(
Out,
In, ResourceSource);
#define ACPI_COPY_FIELD(Out, In, Field)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition at line 57 of file rsxface.c.
◆ ACPI_COPY_FIELD
◆ EXPORT_ACPI_INTERFACES
#define EXPORT_ACPI_INTERFACES |
◆ AcpiGetCurrentResources()
Definition at line 225 of file rsxface.c.
228{
231
232
234
235
236
237
240 {
242 }
243
246}
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
ACPI_STATUS AcpiRsGetCrsMethodData(ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer)
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
ACPI_STATUS AcpiGetCurrentResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
static ACPI_STATUS AcpiRsValidateParameters(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *Buffer, ACPI_NAMESPACE_NODE **ReturnNode)
Referenced by AcpiGetCurrentResources(), Bus_PDO_QueryResourceRequirements(), and Bus_PDO_QueryResources().
◆ AcpiGetEventResources()
Definition at line 373 of file rsxface.c.
376{
379
380
382
383
384
385
388 {
390 }
391
394}
ACPI_STATUS AcpiRsGetAeiMethodData(ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer)
ACPI_STATUS AcpiGetEventResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Referenced by AcpiGetEventResources().
◆ AcpiGetIrqRoutingTable()
Definition at line 174 of file rsxface.c.
177{
180
181
183
184
185
186
189 {
191 }
192
195}
ACPI_STATUS AcpiRsGetPrtMethodData(ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer)
ACPI_STATUS AcpiGetIrqRoutingTable(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Referenced by AcpiGetIrqRoutingTable().
◆ AcpiGetPossibleResources()
◆ AcpiGetVendorResource()
Definition at line 486 of file rsxface.c.
491{
494
495
496
497
498 if (!Uuid || !RetBuffer)
499 {
501 }
502
504 Info.Buffer = RetBuffer;
506
507
508
512 {
514 }
515
516 return (
Info.Status);
517}
ACPI_STATUS AcpiWalkResources(ACPI_HANDLE DeviceHandle, char *Name, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)
static ACPI_STATUS AcpiRsMatchVendorResource(ACPI_RESOURCE *Resource, void *Context)
◆ AcpiResourceToAddress64()
Definition at line 417 of file rsxface.c.
420{
423
424
426 {
428 }
429
430
431
433 {
435
439 break;
440
442
446 break;
447
449
450
451
453 break;
454
455 default:
456
458 }
459
461}
#define ACPI_RESOURCE_TYPE_ADDRESS64
#define ACPI_RESOURCE_TYPE_ADDRESS32
#define ACPI_RESOURCE_TYPE_ADDRESS16
#define ACPI_CAST_PTR(t, p)
_Acquires_exclusive_lock_ Resource _Acquires_shared_lock_ Resource _Inout_ PERESOURCE Resource
#define memcpy(s1, s2, n)
#define ACPI_COPY_ADDRESS(Out, In)
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
◆ AcpiRsMatchVendorResource()
Definition at line 535 of file rsxface.c.
538{
543
544
545
546
548 {
550 }
551
552 Vendor = &
Resource->Data.VendorTyped;
553
554
555
556
557
558
559
560
564 {
566 }
567
568
569
573 {
575 }
576
577
578
581
582
583
586}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define AE_CTRL_TERMINATE
#define ACPI_RESOURCE_TYPE_VENDOR
ACPI_STATUS AcpiUtInitializeBuffer(ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength)
UINT8 Uuid[ACPI_UUID_LENGTH]
Referenced by AcpiGetVendorResource().
◆ AcpiRsValidateParameters()
◆ AcpiSetCurrentResources()
Definition at line 318 of file rsxface.c.
321{
324
325
327
328
329
330
331 if ((!InBuffer) ||
334 {
336 }
337
338
339
342 {
344 }
345
348}
ACPI_STATUS AcpiRsSetSrsMethodData(ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer)
ACPI_STATUS AcpiSetCurrentResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *InBuffer)
Referenced by AcpiSetCurrentResources().
◆ AcpiWalkResourceBuffer()
Definition at line 606 of file rsxface.c.
610{
614
615
617
618
619
620
622 {
624 }
625
626
627
631
632
633
635 {
636
637
639 {
641 break;
642 }
643
644
645
647 {
649 }
650
651
652
655 {
657 {
658
659
661 }
662 break;
663 }
664
665
666
668 {
669 break;
670 }
671
672
673
675 }
676
678}
#define AE_AML_INVALID_RESOURCE_TYPE
#define AE_AML_BAD_RESOURCE_LENGTH
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK UserFunction
#define ACPI_NEXT_RESOURCE(Res)
#define ACPI_RESOURCE_TYPE_END_TAG
#define ACPI_RESOURCE_TYPE_MAX
#define ACPI_ADD_PTR(t, a, b)
ACPI_STATUS AcpiWalkResourceBuffer(ACPI_BUFFER *Buffer, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)
Referenced by AcpiWalkResourceBuffer(), and AcpiWalkResources().
◆ AcpiWalkResources()
Definition at line 704 of file rsxface.c.
709{
712
713
715
716
717
718
724 {
726 }
727
728
729
733 {
735 }
736
737
738
742}
ACPI_STATUS AcpiRsGetMethodData(ACPI_HANDLE Handle, const char *Path, ACPI_BUFFER *RetBuffer)
#define ACPI_COMPARE_NAMESEG(a, b)
#define ACPI_ALLOCATE_LOCAL_BUFFER
Referenced by AcpiGetVendorResource(), and AcpiWalkResources().