2005-06-29 23:31:07 +04:00
|
|
|
/*
|
|
|
|
__________________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Copyright (C) Intel Corporation 1994-1998
|
|
|
|
|
|
|
|
|
| All rights reserved. No part of this program or publication may be
|
|
|
|
| reproduced, transmitted, transcribed, stored in a retrieval system, or
|
|
|
|
| translated into any language or computer language, in any form or by any
|
|
|
|
| means, electronic, mechanical, magnetic, optical, chemical, manual, or
|
|
|
|
| otherwise, without the prior written permission of Intel Corporation.
|
|
|
|
|__________________________________________________________________________
|
|
|
|
|
|
|
|
|
| FILENAME: scilast.h - System Control Interrupt configuration and
|
|
|
|
| legacy to ACPI mode state transition functions
|
|
|
|
|__________________________________________________________________________
|
|
|
|
|
|
2005-06-29 23:31:11 +04:00
|
|
|
| $Revision: 1.5 $
|
|
|
|
| $Date: 2005/06/29 19:31:11 $
|
2005-06-29 23:31:07 +04:00
|
|
|
| $Log: acevents.h,v $
|
2005-06-29 23:31:11 +04:00
|
|
|
| Revision 1.5 2005/06/29 19:31:11 aystarik
|
|
|
|
| Integrated with 03/99 OPSD code
|
2005-06-29 23:31:07 +04:00
|
|
|
|
|
|
|
|
|
|
2005-06-29 23:31:11 +04:00
|
|
|
| date 99.03.31.22.30.00; author rmoore1; state Exp;
|
2005-06-29 23:31:07 +04:00
|
|
|
|
|
|
|
|
*
|
2005-06-29 23:31:11 +04:00
|
|
|
* 5 3/31/99 2:30p Rmoore1
|
|
|
|
* Integrated with 03/99 OPSD code
|
|
|
|
*
|
2005-06-29 23:31:10 +04:00
|
|
|
* 4 3/09/99 4:04p Rmoore1
|
|
|
|
* 16/32/64-bit common data types
|
|
|
|
*
|
2005-06-29 23:31:09 +04:00
|
|
|
* 3 2/16/99 2:36p Rmoore1
|
|
|
|
* Made pretty
|
|
|
|
*
|
2005-06-29 23:31:08 +04:00
|
|
|
* 2 2/12/99 2:26p Rmosgrov
|
|
|
|
*
|
2005-06-29 23:31:07 +04:00
|
|
|
* 1 2/12/99 9:57a Rmosgrov
|
|
|
|
*
|
|
|
|
* 1 2/12/99 9:54a Rmosgrov
|
|
|
|
*
|
|
|
|
* 3 1/13/99 2:49p Grsmith1
|
|
|
|
* First BeOS build.
|
|
|
|
*
|
|
|
|
* 2 1/11/99 4:08p Grsmith1
|
|
|
|
* Detabified.
|
|
|
|
*
|
|
|
|
* 1 1/11/99 2:08p Rmoore1
|
|
|
|
* Event Handling
|
|
|
|
//
|
|
|
|
// Rev 1.2 14 Aug 1998 17:46:16 jkreinem
|
2005-06-29 23:31:08 +04:00
|
|
|
// Added VerifyAcpiTablesPresent() function and NO_ACPI_TABLES_MASK
|
2005-06-29 23:31:07 +04:00
|
|
|
// error code.
|
|
|
|
//
|
|
|
|
// Rev 1.1 13 Aug 1998 17:27:34 jkreinem
|
|
|
|
// Added SAVE_NOT_VALID definition for interrupt configuration.
|
|
|
|
//
|
|
|
|
// Rev 1.0 12 Aug 1998 15:54:32 jkreinem
|
|
|
|
// Initial revision.
|
|
|
|
|__________________________________________________________________________
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2005-06-29 23:31:09 +04:00
|
|
|
#ifndef __EVSCI_H__
|
|
|
|
#define __EVSCI_H__
|
2005-06-29 23:31:07 +04:00
|
|
|
|
|
|
|
|
2005-06-29 23:31:08 +04:00
|
|
|
/* InstallSCIHandlerXferToACPI() Flags bitmask options */
|
2005-06-29 23:31:09 +04:00
|
|
|
|
2005-06-29 23:31:11 +04:00
|
|
|
#define ACPI_TABLES_REQUIRED 0x01
|
|
|
|
#define HW_OVERRIDE_SUPPORTED 0x02
|
|
|
|
#define PROGRAM_SCI_LEVEL_SENSITIVITY 0x04
|
|
|
|
#define DISABLE_KNOWN_EVENTS 0x08
|
|
|
|
#define LOAD_ACPI_NAMESPACE 0x10
|
2005-06-29 23:31:09 +04:00
|
|
|
|
2005-06-29 23:31:07 +04:00
|
|
|
|
|
|
|
/* iErrorMask mask bits */
|
|
|
|
|
2005-06-29 23:31:11 +04:00
|
|
|
#define NO_ACPI_TABLES_MASK 0x01
|
|
|
|
#define NO_ACPI_TRANSITION_MASK 0x02
|
|
|
|
#define SCI_LEVEL_INT_MASK 0x04
|
|
|
|
#define NO_SCI_HANDLER_MASK 0x08
|
2005-06-29 23:31:09 +04:00
|
|
|
#define NO_LEGACY_TRANSITION_MASK 0x10
|
2005-06-29 23:31:11 +04:00
|
|
|
#define UNABLE_TO_LOAD_NAMESPACE 0x20
|
|
|
|
#define SCI_DISABLED 0x40
|
2005-06-29 23:31:09 +04:00
|
|
|
|
|
|
|
#define SAVE_NOT_VALID -1
|
|
|
|
|
|
|
|
#ifdef __EVSCI_C__
|
2005-06-29 23:31:10 +04:00
|
|
|
INT32 EdgeLevelSave = SAVE_NOT_VALID;
|
|
|
|
INT32 IrqEnableSave = SAVE_NOT_VALID;
|
|
|
|
INT32 OriginalMode = SAVE_NOT_VALID; /* original ACPI/legacy mode */
|
2005-06-29 23:31:07 +04:00
|
|
|
|
|
|
|
#else
|
2005-06-29 23:31:10 +04:00
|
|
|
extern INT32 EdgeLevelSave;
|
|
|
|
extern INT32 IrqEnableSave; /* original SCI config */
|
|
|
|
extern INT32 OriginalMode; /* stores the original ACPI/legacy mode */
|
2005-06-29 23:31:07 +04:00
|
|
|
#endif
|
2005-06-29 22:18:17 +04:00
|
|
|
|
2005-06-29 23:31:09 +04:00
|
|
|
/* Prototypes */
|
|
|
|
|
2005-06-29 23:31:10 +04:00
|
|
|
INT32
|
|
|
|
InitializeSCI (
|
|
|
|
INT32 ProgramSCI);
|
2005-06-29 23:31:09 +04:00
|
|
|
|
2005-06-29 23:31:10 +04:00
|
|
|
INT32
|
|
|
|
VerifyAcpiTablesPresent (
|
|
|
|
char * TestName);
|
2005-06-29 23:31:09 +04:00
|
|
|
|
2005-06-29 23:31:10 +04:00
|
|
|
INT32
|
|
|
|
InstallSCIHandlerXferToACPI (
|
|
|
|
char * TestName,
|
|
|
|
INT32 Flags);
|
2005-06-29 23:31:09 +04:00
|
|
|
|
2005-06-29 23:31:10 +04:00
|
|
|
INT32
|
2005-06-29 23:31:09 +04:00
|
|
|
UninstallSCIHandlerXferToLegacy (void);
|
|
|
|
|
2005-06-29 23:31:07 +04:00
|
|
|
|
2005-06-29 23:31:09 +04:00
|
|
|
#endif /* __EVSCI_H__ */
|