/******************************************************************************
*
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2016, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer,
* without modification.
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
* substantially similar to the "NO WARRANTY" disclaimer below
* ("Disclaimer") and any redistribution must be conditioned upon
* including a substantially similar Disclaimer requirement for further
* binary redistribution.
* 3. Neither the names of the above-listed copyright holders nor the names
* of any contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*
* NO WARRANTY
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*/
#define EXPORT_ACPI_INTERFACES
#include "acpi.h"
#include "accommon.h"
#include "actables.h"
ACPI_MODULE_NAME ("evxfevnt")
#if (!ACPI_REDUCED_HARDWARE) /* Entire module */
/*******************************************************************************
*
* FUNCTION: AcpiEnable
*
* PARAMETERS: None
*
* RETURN: Status
*
* DESCRIPTION: Transfers the system into ACPI mode.
*
******************************************************************************/
void)
{
/* ACPI tables must be present */
{
}
/* If the Hardware Reduced flag is set, machine is always in acpi mode */
{
}
/* Check current mode */
if (AcpiHwGetMode() == ACPI_SYS_MODE_ACPI)
{
"System is already in ACPI mode\n"));
}
else
{
/* Transition to ACPI mode */
if (ACPI_FAILURE (Status))
{
}
"Transition to ACPI mode successful\n"));
}
}
/*******************************************************************************
*
* FUNCTION: AcpiDisable
*
* PARAMETERS: None
*
* RETURN: Status
*
* DESCRIPTION: Transfers the system into LEGACY (non-ACPI) mode.
*
******************************************************************************/
void)
{
/* If the Hardware Reduced flag is set, machine is always in acpi mode */
{
}
if (AcpiHwGetMode() == ACPI_SYS_MODE_LEGACY)
{
"System is already in legacy (non-ACPI) mode\n"));
}
else
{
/* Transition to LEGACY mode */
if (ACPI_FAILURE (Status))
{
"Could not exit ACPI mode to legacy mode"));
}
"ACPI mode disabled\n"));
}
}
/*******************************************************************************
*
* FUNCTION: AcpiEnableEvent
*
* PARAMETERS: Event - The fixed eventto be enabled
* Flags - Reserved
*
* RETURN: Status
*
* DESCRIPTION: Enable an ACPI event (fixed)
*
******************************************************************************/
{
/* Decode the Fixed Event */
if (Event > ACPI_EVENT_MAX)
{
}
/*
* Enable the requested fixed event (by writing a one to the enable
* register bit)
*/
if (ACPI_FAILURE (Status))
{
}
/* Make sure that the hardware responded */
if (ACPI_FAILURE (Status))
{
}
if (Value != 1)
{
}
}
/*******************************************************************************
*
* FUNCTION: AcpiDisableEvent
*
* PARAMETERS: Event - The fixed event to be disabled
* Flags - Reserved
*
* RETURN: Status
*
* DESCRIPTION: Disable an ACPI event (fixed)
*
******************************************************************************/
{
/* Decode the Fixed Event */
if (Event > ACPI_EVENT_MAX)
{
}
/*
* Disable the requested fixed event (by writing a zero to the enable
* register bit)
*/
if (ACPI_FAILURE (Status))
{
}
if (ACPI_FAILURE (Status))
{
}
if (Value != 0)
{
}
}
/*******************************************************************************
*
* FUNCTION: AcpiClearEvent
*
* PARAMETERS: Event - The fixed event to be cleared
*
* RETURN: Status
*
* DESCRIPTION: Clear an ACPI event (fixed)
*
******************************************************************************/
{
/* Decode the Fixed Event */
if (Event > ACPI_EVENT_MAX)
{
}
/*
* Clear the requested fixed event (By writing a one to the status
* register bit)
*/
}
/*******************************************************************************
*
* FUNCTION: AcpiGetEventStatus
*
* PARAMETERS: Event - The fixed event
* EventStatus - Where the current status of the event will
* be returned
*
* RETURN: Status
*
* DESCRIPTION: Obtains and returns the current status of the event
*
******************************************************************************/
{
if (!EventStatus)
{
}
/* Decode the Fixed Event */
if (Event > ACPI_EVENT_MAX)
{
}
/* Fixed event currently can be dispatched? */
{
}
/* Fixed event currently enabled? */
if (ACPI_FAILURE (Status))
{
}
if (InByte)
{
}
/* Fixed event currently active? */
if (ACPI_FAILURE (Status))
{
}
if (InByte)
{
}
(*EventStatus) = LocalEventStatus;
}
#endif /* !ACPI_REDUCED_HARDWARE */