InitACPICall: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Legacy | |||
|RepFunc=[[ACPI32]] | |||
|Remarks=This function was used on a older release of the ACPI Toolkit, it is recommended to use an alternative. This function is here only for documentation. | |||
}} | |||
Find PSD and get pointer to ACPI function. | Find PSD and get pointer to ACPI function. | ||
Revision as of 02:57, 9 April 2019
![]() | |
---|---|
It is recommended to use a newer replacement for this function. | |
Replacement: | ACPI32 |
Remarks: | This function was used on a older release of the ACPI Toolkit, it is recommended to use an alternative. This function is here only for documentation. |
Find PSD and get pointer to ACPI function.
PACPIFUNCTION APIENTRY InitACPICall (char *Component)
Parameters
- Component
- ASCIIZ name for print in debug log
Return
- return
- Pointer to ACPI function if success, else NULL
Sample
#include <psd.h> #include <acpi.h> #include <acpiapi.h> #include <ipdc.h> #include <acpifun.h> PACPIFUNCTION PSD = NULL; // Pointer to ACPI function void MyInitDriver( void) { PSD = (PACPIFUNCTION)InitACPICall("MyDriver"); if (PSD) { PSD->AcpiOsPrintf("MyDriver can work with ACPI\n"); } }