date 99.02.12.22.26.00; author rmosgrov; state Exp;

This commit is contained in:
aystarik 2005-06-29 19:31:08 +00:00
parent 75b647a53c
commit ab76050511

View File

@ -15,16 +15,18 @@
| legacy to ACPI mode state transition functions
|__________________________________________________________________________
|
| $Revision: 1.1 $
| $Date: 2005/06/29 19:31:07 $
| $Revision: 1.2 $
| $Date: 2005/06/29 19:31:08 $
| $Log: acevents.h,v $
| Revision 1.1 2005/06/29 19:31:07 aystarik
| Revision 1.2 2005/06/29 19:31:08 aystarik
|
|
|
| date 99.02.12.17.57.00; author rmosgrov; state Exp;
| date 99.02.12.22.26.00; author rmosgrov; state Exp;
|
*
* 2 2/12/99 2:26p Rmosgrov
*
* 1 2/12/99 9:57a Rmosgrov
*
* 1 2/12/99 9:54a Rmosgrov
@ -39,7 +41,7 @@
* Event Handling
//
// Rev 1.2 14 Aug 1998 17:46:16 jkreinem
// Added iVerifyAcpiTablesPresent() function and NO_ACPI_TABLES_MASK
// Added VerifyAcpiTablesPresent() function and NO_ACPI_TABLES_MASK
// error code.
//
// Rev 1.1 13 Aug 1998 17:27:34 jkreinem
@ -55,7 +57,7 @@
#define __SCILAST_H__
/* iInstallSCIHandlerXferToACPI() iFlags bitmask options */
/* InstallSCIHandlerXferToACPI() Flags bitmask options */
#define ACPI_TABLES_REQUIRED 1
#define HW_OVERRIDE_SUPPORTED 2
#define PROGRAM_SCI_LEVEL_SENSITIVITY 4
@ -71,80 +73,80 @@
#define SAVE_NOT_VALID -1
#ifdef __SCILAST_C__
int iEdgeLevelSave=SAVE_NOT_VALID, iIrqEnableSave=SAVE_NOT_VALID;
int iOriginalMode=SAVE_NOT_VALID; /* original ACPI/legacy mode */
int EdgeLevelSave=SAVE_NOT_VALID, IrqEnableSave=SAVE_NOT_VALID;
int OriginalMode=SAVE_NOT_VALID; /* original ACPI/legacy mode */
#else
extern int iEdgeLevelSave, iIrqEnableSave; /* original SCI config */
extern int iOriginalMode; /* stores the original ACPI/legacy mode */
extern int EdgeLevelSave, IrqEnableSave; /* original SCI config */
extern int OriginalMode; /* stores the original ACPI/legacy mode */
#endif
/**************************************************************************
* FUNCTION: int iInitializeSCI
* FUNCTION: int InitializeSCI
*
* PARAMETERS:
* iProgramSCI -- TRUE if SCI can be reprogrammed to level sensitivity
* ProgramSCI -- TRUE if SCI can be reprogrammed to level sensitivity
* FALSE if current SCI sensitivity must be preserved
*
* RETURN: 0 if successful; non-zero if failure encountered
*
* DESCRIPTION: iInitializeSCI() ensures that the system control
* DESCRIPTION: InitializeSCI() ensures that the system control
* interrupt (SCI) is properly configured.
* If successful, return 0. Otherwise, return non-zero.
*************************************************************************/
int iInitializeSCI (int iProgramSCI);
int InitializeSCI (int ProgramSCI);
/**************************************************************************
* FUNCTION: int iVerifyAcpiTablesPresent
* FUNCTION: int VerifyAcpiTablesPresent
*
* PARAMETERS:
* pcTestName -- pointer to test name string for log messages
* TestName -- pointer to test name string for log messages
*
* RETURN:
* 0 if tables are present
* non-zero if ACPI tables can NOT be located
*
* DESCRIPTION: iVerifyAcpiTablesPresent() ensures that the current
* DESCRIPTION: VerifyAcpiTablesPresent() ensures that the current
* environment contains ACPI (namespace) tables from
* either the BIOS or from an input file.
* Return 0 if tables are present; non-zero otherwise.
*************************************************************************/
int iVerifyAcpiTablesPresent (char *pcTestName);
int VerifyAcpiTablesPresent (char *TestName);
/**************************************************************************
* FUNCTION: int iInstallSCIHandlerXferToACPI
* FUNCTION: int InstallSCIHandlerXferToACPI
*
* PARAMETERS:
* pcTestName -- pointer to test name string for log messages
* iFlags -- flag bitmask (logical OR) to specify:
* TestName -- pointer to test name string for log messages
* Flags -- flag bitmask (logical OR) to specify:
* ACPI_TABLES_REQUIRED, HW_OVERRIDE_SUPPORTED,
* PROGRAM_SCI_LEVEL_SENSITIVITY, DISABLE_KNOWN_EVENTS
*
* RETURN: 0 if successful; non-zero if failure encountered
*
* DESCRIPTION: iInstallSCIHandlerXferToACPI() ensures that the system
* DESCRIPTION: InstallSCIHandlerXferToACPI() ensures that the system
* control interrupt (SCI) is properly configured, disables
* SCI event sources, installs the SCI handler, and
* transfers the system into ACPI mode.
* If successful, return 0. Otherwise, return non-zero.
*************************************************************************/
int iInstallSCIHandlerXferToACPI (char *pcTestName, int iFlags);
int InstallSCIHandlerXferToACPI (char *TestName, int Flags);
/**************************************************************************
* FUNCTION: int iUninstallSCIHandlerXferToLegacy
* FUNCTION: int UninstallSCIHandlerXferToLegacy
*
* PARAMETERS: none
*
* RETURN: 0 if successful; non-zero if failure encountered
*
* DESCRIPTION: iUninstallSCIHandlerXferToLegacy() returns the system
* DESCRIPTION: UninstallSCIHandlerXferToLegacy() returns the system
* to original ACPI/legacy mode, unloads the SCI handler,
* and restores the SCI to its original configuration.
* If successful, return 0. Otherwise, return non-zero.
*************************************************************************/
int iUninstallSCIHandlerXferToLegacy ();
int UninstallSCIHandlerXferToLegacy ();
#endif /* __SCILAST_H__ */