Skip to content

Commit

Permalink
[SDK] HACKs Import the other headers
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 18, 2024
1 parent 36c64a9 commit 56e0ec9
Show file tree
Hide file tree
Showing 5 changed files with 15,284 additions and 149 deletions.
8 changes: 7 additions & 1 deletion drivers/bus/acpi/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ EvalGetElementSize(

return STATUS_SUCCESS;
}

#undef ACPI_METHOD_SET_ARGUMENT_STRING
#define ACPI_METHOD_SET_ARGUMENT_STRING( Argument, StrData ) \
{ Argument->Type = ACPI_METHOD_ARGUMENT_STRING; \
Argument->DataLength = strlen(StrData) + sizeof(UCHAR); \
memcpy(&Argument->Data[0], \
(PUCHAR)StrData, \
Argument->DataLength); }
/**
* @brief Performs translation from the supplied ACPI_OBJECT structure into a method argument.
*/
Expand Down
8 changes: 8 additions & 0 deletions modules/rostests/apitests/acpi/Bus_PDO_EvalMethod.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,14 @@ DrvCallAcpiDriver(
return Bus_PDO_EvalMethod(&DeviceData, &Irp);
}

#undef ACPI_METHOD_SET_ARGUMENT_STRING
#define ACPI_METHOD_SET_ARGUMENT_STRING( Argument, StrData ) \
{ Argument->Type = ACPI_METHOD_ARGUMENT_STRING; \
Argument->DataLength = strlen(StrData) + sizeof(UCHAR); \
memcpy(&Argument->Data[0], \
(PUCHAR)StrData, \
Argument->DataLength); }

static
VOID
DrvEvaluateStmObject(
Expand Down
Loading

0 comments on commit 56e0ec9

Please sign in to comment.