Subversion Repositories Kolibri OS

Rev

Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1498 Rev 2216
Line 6... Line 6...
6
 
6
 
7
/******************************************************************************
7
/******************************************************************************
8
 *
8
 *
9
 * 1. Copyright Notice
9
 * 1. Copyright Notice
10
 *
10
 *
11
 * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
11
 * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
12
 * All rights reserved.
12
 * All rights reserved.
13
 *
13
 *
14
 * 2. License
14
 * 2. License
15
 *
15
 *
Line 118... Line 118...
118
 
118
 
119
#ifdef _MSC_VER                 /* disable some level-4 warnings */
119
#ifdef _MSC_VER                 /* disable some level-4 warnings */
120
#pragma warning(disable:4100)   /* warning C4100: unreferenced formal parameter */
120
#pragma warning(disable:4100)   /* warning C4100: unreferenced formal parameter */
Line 121... Line -...
121
#endif
-
 
122
 
-
 
123
#include 
-
 
124
#include 
-
 
125
#include 
-
 
126
#include 
121
#endif
127
 
122
 
128
#include "acpi.h"
123
#include "acpi.h"
129
#include "accommon.h"
124
#include "accommon.h"
130
#include "acparser.h"
125
#include "acparser.h"
131
#include "amlcode.h"
126
#include "amlcode.h"
132
#include "acnamesp.h"
127
#include "acnamesp.h"
133
#include "acdebug.h"
128
#include "acdebug.h"
134
#include "actables.h"
129
#include "actables.h"
Line -... Line 130...
-
 
130
#include "acinterp.h"
-
 
131
#include "acapps.h"
-
 
132
 
-
 
133
#include 
-
 
134
#include 
135
#include "acinterp.h"
135
#include 
136
#include "acapps.h"
136
#include 
137
 
137
 
Line -... Line 138...
-
 
138
extern FILE                 *AcpiGbl_DebugFile;
-
 
139
extern BOOLEAN              AcpiGbl_IgnoreErrors;
-
 
140
extern UINT8                AcpiGbl_RegionFillValue;
-
 
141
 
-
 
142
/* Check for unexpected exceptions */
-
 
143
 
-
 
144
#define AE_CHECK_STATUS(Name, Status, Expected) \
-
 
145
    if (Status != Expected) \
-
 
146
    { \
-
 
147
        AcpiOsPrintf ("Unexpected %s from %s (%s-%d)\n", \
-
 
148
            AcpiFormatException (Status), #Name, _AcpiModuleName, __LINE__); \
-
 
149
    }
Line 138... Line 150...
138
extern FILE                 *AcpiGbl_DebugFile;
150
 
139
extern BOOLEAN              AcpiGbl_IgnoreErrors;
151
/* Check for unexpected non-AE_OK errors */
140
extern UINT8                AcpiGbl_RegionFillValue;
152
 
141
 
153
#define AE_CHECK_OK(Name, Status)   AE_CHECK_STATUS (Name, Status, AE_OK);
Line 171... Line 183...
171
#define TEST_OUTPUT_LEVEL(lvl)          if ((lvl) & OutputLevel)
183
#define TEST_OUTPUT_LEVEL(lvl)          if ((lvl) & OutputLevel)
Line 172... Line 184...
172
 
184
 
173
#define OSD_PRINT(lvl,fp)               TEST_OUTPUT_LEVEL(lvl) {\
185
#define OSD_PRINT(lvl,fp)               TEST_OUTPUT_LEVEL(lvl) {\
Line 174... Line 186...
174
                                            AcpiOsPrintf PARAM_LIST(fp);}
186
                                            AcpiOsPrintf PARAM_LIST(fp);}
175
 
187
 
176
void __cdecl
188
void ACPI_SYSTEM_XFACE
Line 177... Line 189...
177
AeCtrlCHandler (
189
AeCtrlCHandler (
178
    int                     Sig);
190
    int                     Sig);
Line 218... Line 230...
218
ACPI_STATUS
230
ACPI_STATUS
219
AeDisplayAllMethods (
231
AeDisplayAllMethods (
220
    UINT32                  DisplayCount);
232
    UINT32                  DisplayCount);
Line 221... Line 233...
221
 
233
 
-
 
234
ACPI_STATUS
-
 
235
AeInstallEarlyHandlers (
-
 
236
    void);
-
 
237
 
222
ACPI_STATUS
238
ACPI_STATUS
223
AeInstallHandlers (
239
AeInstallLateHandlers (
Line 224... Line 240...
224
    void);
240
    void);
225
 
241
 
226
void
242
void
Line 236... Line 252...
236
    void                    *HandlerContext,
252
    void                    *HandlerContext,
237
    void                    *RegionContext);
253
    void                    *RegionContext);
Line 238... Line 254...
238
 
254
 
239
UINT32
255
UINT32
-
 
256
AeGpeHandler (
-
 
257
    ACPI_HANDLE             GpeDevice,
-
 
258
    UINT32                  GpeNumber,
-
 
259
    void                    *Context);
-
 
260
 
-
 
261
void
-
 
262
AeGlobalEventHandler (
-
 
263
    UINT32                  Type,
-
 
264
    ACPI_HANDLE             GpeDevice,
240
AeGpeHandler (
265
    UINT32                  EventNumber,
Line 241... Line 266...
241
    void                    *Context);
266
    void                    *Context);