sys/contrib/dev/acpica-unix/tools/acpiexec/aehandlers.c
static void
AeNotifyHandler (
    ACPI_HANDLE                 Device,
    UINT32                      Value,
    void                        *Context)
{

    switch (Value)
    {
#if 0
    case 0:
        printf ("[AcpiExec] Method Error 0x%X: Results not equal\n", Value);
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Method Error: Results not equal\n");
        }
        break;


    case 1:
        printf ("[AcpiExec] Method Error: Incorrect numeric result\n");
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Method Error: Incorrect numeric result\n");
        }
        break;


    case 2:
        printf ("[AcpiExec] Method Error: An operand was overwritten\n");
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Method Error: An operand was overwritten\n");
        }
        break;

#endif

    default:
        printf ("[AcpiExec] Received a System Notify on [%4.4s] %p Value 0x%2.2X (%s)\n",
            AcpiUtGetNodeName (Device), Device, Value,
            AcpiUtGetNotifyName (Value));
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Received a system notify, Value 0x%2.2X\n", Value);
        }

        (void) AcpiEvaluateObject (Device, "_NOT", NULL, NULL);
        break;
    }
}
/******************************************************************************
 *
 * FUNCTION:    AeNotifyHandler
 *
 * PARAMETERS:  Standard notify handler parameters
 *
 * RETURN:      Status
 *
 * DESCRIPTION: System notify handler for AcpiExec utility.  Used by the ASL
 *              test suite(s) to communicate errors and other information to
 *              this utility via the Notify() operator.
 *
 *****************************************************************************/
AeNotifyHandler
PARAMETERS:  Standard notify handler parameters

Status

System notify handler for AcpiExec utility.  Used by the ASL
test suite(s) to communicate errors and other information to
this utility via the Notify() operator.
AeNotifyHandler PARAMETERS : Standard notify handler parameters Status System notify handler for AcpiExec utility . Used by the ASL test suite ( s ) to communicate errors and other information to this utility via the Notify () operator .
static void
AeNotifyHandler (
    ACPI_HANDLE                 Device,
    UINT32                      Value,
    void                        *Context)
{
    switch (Value)
    {
#if 0
    case 0:
        printf ("[AcpiExec] Method Error 0x%X: Results not equal\n", Value);
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Method Error: Results not equal\n");
        }
        break;
    case 1:
        printf ("[AcpiExec] Method Error: Incorrect numeric result\n");
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Method Error: Incorrect numeric result\n");
        }
        break;
    case 2:
        printf ("[AcpiExec] Method Error: An operand was overwritten\n");
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Method Error: An operand was overwritten\n");
        }
        break;
#endif
    default:
        printf ("[AcpiExec] Received a System Notify on [%4.4s] %p Value 0x%2.2X (%s)\n",
            AcpiUtGetNodeName (Device), Device, Value,
            AcpiUtGetNotifyName (Value));
        if (AcpiGbl_DebugFile)
        {
            AcpiOsPrintf ("[AcpiExec] Received a system notify, Value 0x%2.2X\n", Value);
        }
        (void) AcpiEvaluateObject (Device, "_NOT", NULL, NULL);
        break;
    }
}
static void AeNotifyHandler ( ACPI_HANDLE Device , UINT32 Value , void * Context ) { switch ( Value ) { #if 0 case 0 : printf ( " \n " , Value ) ; if ( AcpiGbl_DebugFile ) { AcpiOsPrintf ( " \n " ) ; } break ; case 1 : printf ( " \n " ) ; if ( AcpiGbl_DebugFile ) { AcpiOsPrintf ( " \n " ) ; } break ; case 2 : printf ( " \n " ) ; if ( AcpiGbl_DebugFile ) { AcpiOsPrintf ( " \n " ) ; } break ; #endif default : printf ( " \n " , AcpiUtGetNodeName ( Device ) , Device , Value , AcpiUtGetNotifyName ( Value ) ) ; if ( AcpiGbl_DebugFile ) { AcpiOsPrintf ( " \n " , Value ) ; } ( void ) AcpiEvaluateObject ( Device , " " , NULL , NULL ) ; break ; } }
FUNCTION:    AeNotifyHandler
 PARAMETERS:  Standard notify handler parameters
FUNCTION : AeNotifyHandler PARAMETERS : Standard notify handler parameters