Jump to content

InitACPICall

From EDM2
Revision as of 09:14, 29 May 2025 by Ak120 (talk | contribs) (Links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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");   
    }
}