#include "acpi.h"
#include "accommon.h"
#include "acnamesp.h"
#include "acresrc.h"
Go to the source code of this file.
|
UINT8 | AcpiRsDecodeBitmask (UINT16 Mask, UINT8 *List) |
|
UINT16 | AcpiRsEncodeBitmask (UINT8 *List, UINT8 Count) |
|
void | AcpiRsMoveData (void *Destination, void *Source, UINT16 ItemCount, UINT8 MoveType) |
|
void | AcpiRsSetResourceLength (ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml) |
|
void | AcpiRsSetResourceHeader (UINT8 DescriptorType, ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml) |
|
static UINT16 | AcpiRsStrcpy (char *Destination, char *Source) |
|
ACPI_RS_LENGTH | AcpiRsGetResourceSource (ACPI_RS_LENGTH ResourceLength, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource, AML_RESOURCE *Aml, char *StringPtr) |
|
ACPI_RSDESC_SIZE | AcpiRsSetResourceSource (AML_RESOURCE *Aml, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource) |
|
ACPI_STATUS | AcpiRsGetPrtMethodData (ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiRsGetCrsMethodData (ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiRsGetPrsMethodData (ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiRsGetAeiMethodData (ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiRsGetMethodData (ACPI_HANDLE Handle, const char *Path, ACPI_BUFFER *RetBuffer) |
|
ACPI_STATUS | AcpiRsSetSrsMethodData (ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *InBuffer) |
|
◆ _COMPONENT
◆ AcpiRsDecodeBitmask()
Definition at line 68 of file rsutils.c.
71{
74
75
77
78
79
80
81 for (
i = 0, BitCount = 0;
Mask;
i++)
82 {
84 {
86 BitCount++;
87 }
88
90 }
91
92 return (BitCount);
93}
#define ACPI_FUNCTION_ENTRY()
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
_Must_inspect_result_ _In_ WDFCMRESLIST List
Referenced by AcpiRsConvertAmlToResource().
◆ AcpiRsEncodeBitmask()
◆ AcpiRsGetAeiMethodData()
Definition at line 685 of file rsutils.c.
688{
691
692
694
695
696
697
698
699
703 {
705 }
706
707
708
709
710
711
713
714
715
718}
#define ACPI_BTYPE_BUFFER
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
ACPI_STATUS AcpiRsCreateResourceList(ACPI_OPERAND_OBJECT *AmlBuffer, ACPI_BUFFER *OutputBuffer)
ACPI_STATUS AcpiUtEvaluateObject(ACPI_NAMESPACE_NODE *PrefixNode, const char *Path, UINT32 ExpectedReturnBtypes, ACPI_OPERAND_OBJECT **ReturnDesc)
void AcpiUtRemoveReference(ACPI_OPERAND_OBJECT *Object)
Referenced by AcpiGetEventResources().
◆ AcpiRsGetCrsMethodData()
◆ AcpiRsGetMethodData()
Definition at line 741 of file rsutils.c.
745{
748
749
751
752
753
754
755
756
761 {
763 }
764
765
766
767
768
769
771
772
773
776}
PRTL_UNICODE_STRING_BUFFER Path
#define ACPI_CAST_PTR(t, p)
Referenced by AcpiWalkResources().
◆ AcpiRsGetPrsMethodData()
◆ AcpiRsGetPrtMethodData()
Definition at line 521 of file rsutils.c.
524{
527
528
530
531
532
533
534
535
539 {
541 }
542
543
544
545
546
548
549
550
553}
#define ACPI_BTYPE_PACKAGE
ACPI_STATUS AcpiRsCreatePciRoutingTable(ACPI_OPERAND_OBJECT *PackageObject, ACPI_BUFFER *OutputBuffer)
Referenced by AcpiGetIrqRoutingTable().
◆ AcpiRsGetResourceSource()
Definition at line 366 of file rsutils.c.
372{
374 UINT8 *AmlResourceSource;
375
376
378
379
382
383
384
385
386
387
388
389
391 {
392
393
394 ResourceSource->
Index = AmlResourceSource[0];
395
397 if (!StringPtr)
398 {
399
400
401
402
405 }
406
407
408
409
410
411
412
413
416
418
420
421
422
426
428 }
429
430
431
432 ResourceSource->
Index = 0;
435 return (0);
436}
ACPI_SIZE strlen(const char *String)
#define ACPI_ROUND_UP_TO_NATIVE_WORD(a)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN UINT8 * Aml
#define ACPI_ADD_PTR(t, a, b)
struct aml_resource_large_header AML_RESOURCE_LARGE_HEADER
static UINT16 AcpiRsStrcpy(char *Destination, char *Source)
Referenced by AcpiRsConvertAmlToResource().
◆ AcpiRsMoveData()
Definition at line 150 of file rsutils.c.
155{
157
158
160
161
162
163
164 for (
i = 0;
i < ItemCount;
i++)
165 {
166 switch (MoveType)
167 {
168
169
170
171
176
178 return;
179
180
181
182
183
184
187
191 break;
192
194
198 break;
199
201
205 break;
206
207 default:
208
209 return;
210 }
211 }
212}
unsigned long long UINT64
#define ACPI_MOVE_16_TO_16(d, s)
#define ACPI_MOVE_64_TO_64(d, s)
#define ACPI_MOVE_32_TO_32(d, s)
@ ACPI_RSC_MOVE_SERIAL_VEN
@ ACPI_RSC_MOVE_SERIAL_RES
#define memcpy(s1, s2, n)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Referenced by AcpiRsConvertAmlToResource(), and AcpiRsConvertResourceToAml().
◆ AcpiRsSetResourceHeader()
Definition at line 289 of file rsutils.c.
293{
295
296
297
298
300
301
302
304}
void AcpiRsSetResourceLength(ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml)
_In_ ULONG _In_ PVOID _In_ LONG DescriptorType
Referenced by AcpiRsConvertResourceToAml().
◆ AcpiRsSetResourceLength()
Definition at line 233 of file rsutils.c.
236{
238
239
241
242
243
244
247
248
249
251 {
252
253
255 &
Aml->LargeHeader.ResourceLength, &ResourceLength);
256 }
257 else
258 {
259
260
261
262
263 Aml->SmallHeader.DescriptorType = (
UINT8)
264 ((
Aml->SmallHeader.DescriptorType &
266 | ResourceLength);
267 }
268}
#define ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK
#define ACPI_RESOURCE_NAME_LARGE
UINT8 AcpiUtGetResourceHeaderLength(void *Aml)
Referenced by AcpiRsConvertResourceToAml(), and AcpiRsSetResourceHeader().
◆ AcpiRsSetResourceSource()
Definition at line 457 of file rsutils.c.
461{
462 UINT8 *AmlResourceSource;
464
465
467
468
469 DescriptorLength = MinimumLength;
470
471
472
474 {
475
476
478
479
480
481 AmlResourceSource[0] = (
UINT8) ResourceSource->
Index;
482
483
484
487
488
489
490
491
494 }
495
496
497
498 return (DescriptorLength);
499}
Referenced by AcpiRsConvertResourceToAml().
◆ AcpiRsSetSrsMethodData()
Definition at line 800 of file rsutils.c.
803{
808
809
811
812
813
814
817 {
819 }
820
825
826
827
828
829
830
831
832
836 {
838 }
839
840
841
844 {
845
846
847
848
852 }
853
858
859
860
862
863
864
866
870}
ACPI_STATUS AcpiNsEvaluate(ACPI_EVALUATE_INFO *Info)
#define AOPOBJ_DATA_VALID
ACPI_STATUS AcpiRsCreateAmlResources(ACPI_BUFFER *ResourceList, ACPI_BUFFER *OutputBuffer)
#define ACPI_IGNORE_RETURN_VALUE
#define ACPI_ALLOCATE_LOCAL_BUFFER
#define ACPI_ALLOCATE_ZEROED(a)
#define AcpiUtCreateInternalObject(t)
static const WCHAR Cleanup[]
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Referenced by AcpiSetCurrentResources().
◆ AcpiRsStrcpy()