Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenacevents.h
Go to the documentation of this file.
00001 /****************************************************************************** 00002 * 00003 * Name: acevents.h - Event subcomponent prototypes and defines 00004 * 00005 *****************************************************************************/ 00006 00007 /****************************************************************************** 00008 * 00009 * 1. Copyright Notice 00010 * 00011 * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. 00012 * All rights reserved. 00013 * 00014 * 2. License 00015 * 00016 * 2.1. This is your license from Intel Corp. under its intellectual property 00017 * rights. You may have additional license terms from the party that provided 00018 * you this software, covering your right to use that party's intellectual 00019 * property rights. 00020 * 00021 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 00022 * copy of the source code appearing in this file ("Covered Code") an 00023 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 00024 * base code distributed originally by Intel ("Original Intel Code") to copy, 00025 * make derivatives, distribute, use and display any portion of the Covered 00026 * Code in any form, with the right to sublicense such rights; and 00027 * 00028 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 00029 * license (with the right to sublicense), under only those claims of Intel 00030 * patents that are infringed by the Original Intel Code, to make, use, sell, 00031 * offer to sell, and import the Covered Code and derivative works thereof 00032 * solely to the minimum extent necessary to exercise the above copyright 00033 * license, and in no event shall the patent license extend to any additions 00034 * to or modifications of the Original Intel Code. No other license or right 00035 * is granted directly or by implication, estoppel or otherwise; 00036 * 00037 * The above copyright and patent license is granted only if the following 00038 * conditions are met: 00039 * 00040 * 3. Conditions 00041 * 00042 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 00043 * Redistribution of source code of any substantial portion of the Covered 00044 * Code or modification with rights to further distribute source must include 00045 * the above Copyright Notice, the above License, this list of Conditions, 00046 * and the following Disclaimer and Export Compliance provision. In addition, 00047 * Licensee must cause all Covered Code to which Licensee contributes to 00048 * contain a file documenting the changes Licensee made to create that Covered 00049 * Code and the date of any change. Licensee must include in that file the 00050 * documentation of any changes made by any predecessor Licensee. Licensee 00051 * must include a prominent statement that the modification is derived, 00052 * directly or indirectly, from Original Intel Code. 00053 * 00054 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 00055 * Redistribution of source code of any substantial portion of the Covered 00056 * Code or modification without rights to further distribute source must 00057 * include the following Disclaimer and Export Compliance provision in the 00058 * documentation and/or other materials provided with distribution. In 00059 * addition, Licensee may not authorize further sublicense of source of any 00060 * portion of the Covered Code, and must include terms to the effect that the 00061 * license from Licensee to its licensee is limited to the intellectual 00062 * property embodied in the software Licensee provides to its licensee, and 00063 * not to intellectual property embodied in modifications its licensee may 00064 * make. 00065 * 00066 * 3.3. Redistribution of Executable. Redistribution in executable form of any 00067 * substantial portion of the Covered Code or modification must reproduce the 00068 * above Copyright Notice, and the following Disclaimer and Export Compliance 00069 * provision in the documentation and/or other materials provided with the 00070 * distribution. 00071 * 00072 * 3.4. Intel retains all right, title, and interest in and to the Original 00073 * Intel Code. 00074 * 00075 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 00076 * Intel shall be used in advertising or otherwise to promote the sale, use or 00077 * other dealings in products derived from or relating to the Covered Code 00078 * without prior written authorization from Intel. 00079 * 00080 * 4. Disclaimer and Export Compliance 00081 * 00082 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 00083 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 00084 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 00085 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 00086 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 00087 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 00088 * PARTICULAR PURPOSE. 00089 * 00090 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 00091 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 00092 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 00093 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 00094 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 00095 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 00096 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 00097 * LIMITED REMEDY. 00098 * 00099 * 4.3. Licensee shall not export, either directly or indirectly, any of this 00100 * software or system incorporating such software without first obtaining any 00101 * required license or other approval from the U. S. Department of Commerce or 00102 * any other agency or department of the United States Government. In the 00103 * event Licensee exports any such software from the United States or 00104 * re-exports any such software from a foreign destination, Licensee shall 00105 * ensure that the distribution and export/re-export of the software is in 00106 * compliance with all laws, regulations, orders, or other restrictions of the 00107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 00108 * any of its subsidiaries will export/re-export any technical data, process, 00109 * software, or service, directly or indirectly, to any country for which the 00110 * United States government or any agency thereof requires an export license, 00111 * other governmental approval, or letter of assurance, without first obtaining 00112 * such license, approval or letter. 00113 * 00114 *****************************************************************************/ 00115 00116 #ifndef __ACEVENTS_H__ 00117 #define __ACEVENTS_H__ 00118 00119 00120 /* 00121 * evevent 00122 */ 00123 ACPI_STATUS 00124 AcpiEvInitializeEvents ( 00125 void); 00126 00127 ACPI_STATUS 00128 AcpiEvInstallXruptHandlers ( 00129 void); 00130 00131 UINT32 00132 AcpiEvFixedEventDetect ( 00133 void); 00134 00135 00136 /* 00137 * evmisc 00138 */ 00139 BOOLEAN 00140 AcpiEvIsNotifyObject ( 00141 ACPI_NAMESPACE_NODE *Node); 00142 00143 UINT32 00144 AcpiEvGetGpeNumberIndex ( 00145 UINT32 GpeNumber); 00146 00147 ACPI_STATUS 00148 AcpiEvQueueNotifyRequest ( 00149 ACPI_NAMESPACE_NODE *Node, 00150 UINT32 NotifyValue); 00151 00152 00153 /* 00154 * evglock - Global Lock support 00155 */ 00156 ACPI_STATUS 00157 AcpiEvInitGlobalLockHandler ( 00158 void); 00159 00160 ACPI_STATUS 00161 AcpiEvAcquireGlobalLock( 00162 UINT16 Timeout); 00163 00164 ACPI_STATUS 00165 AcpiEvReleaseGlobalLock( 00166 void); 00167 00168 ACPI_STATUS 00169 AcpiEvRemoveGlobalLockHandler ( 00170 void); 00171 00172 00173 /* 00174 * evgpe - Low-level GPE support 00175 */ 00176 UINT32 00177 AcpiEvGpeDetect ( 00178 ACPI_GPE_XRUPT_INFO *GpeXruptList); 00179 00180 ACPI_STATUS 00181 AcpiEvUpdateGpeEnableMask ( 00182 ACPI_GPE_EVENT_INFO *GpeEventInfo); 00183 00184 ACPI_STATUS 00185 AcpiEvEnableGpe ( 00186 ACPI_GPE_EVENT_INFO *GpeEventInfo); 00187 00188 ACPI_STATUS 00189 AcpiEvAddGpeReference ( 00190 ACPI_GPE_EVENT_INFO *GpeEventInfo); 00191 00192 ACPI_STATUS 00193 AcpiEvRemoveGpeReference ( 00194 ACPI_GPE_EVENT_INFO *GpeEventInfo); 00195 00196 ACPI_GPE_EVENT_INFO * 00197 AcpiEvGetGpeEventInfo ( 00198 ACPI_HANDLE GpeDevice, 00199 UINT32 GpeNumber); 00200 00201 ACPI_GPE_EVENT_INFO * 00202 AcpiEvLowGetGpeInfo ( 00203 UINT32 GpeNumber, 00204 ACPI_GPE_BLOCK_INFO *GpeBlock); 00205 00206 ACPI_STATUS 00207 AcpiEvFinishGpe ( 00208 ACPI_GPE_EVENT_INFO *GpeEventInfo); 00209 00210 00211 /* 00212 * evgpeblk - Upper-level GPE block support 00213 */ 00214 ACPI_STATUS 00215 AcpiEvCreateGpeBlock ( 00216 ACPI_NAMESPACE_NODE *GpeDevice, 00217 ACPI_GENERIC_ADDRESS *GpeBlockAddress, 00218 UINT32 RegisterCount, 00219 UINT8 GpeBlockBaseNumber, 00220 UINT32 InterruptNumber, 00221 ACPI_GPE_BLOCK_INFO **ReturnGpeBlock); 00222 00223 ACPI_STATUS 00224 AcpiEvInitializeGpeBlock ( 00225 ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 00226 ACPI_GPE_BLOCK_INFO *GpeBlock, 00227 void *Context); 00228 00229 ACPI_STATUS 00230 AcpiEvDeleteGpeBlock ( 00231 ACPI_GPE_BLOCK_INFO *GpeBlock); 00232 00233 UINT32 00234 AcpiEvGpeDispatch ( 00235 ACPI_NAMESPACE_NODE *GpeDevice, 00236 ACPI_GPE_EVENT_INFO *GpeEventInfo, 00237 UINT32 GpeNumber); 00238 00239 /* 00240 * evgpeinit - GPE initialization and update 00241 */ 00242 ACPI_STATUS 00243 AcpiEvGpeInitialize ( 00244 void); 00245 00246 void 00247 AcpiEvUpdateGpes ( 00248 ACPI_OWNER_ID TableOwnerId); 00249 00250 ACPI_STATUS 00251 AcpiEvMatchGpeMethod ( 00252 ACPI_HANDLE ObjHandle, 00253 UINT32 Level, 00254 void *Context, 00255 void **ReturnValue); 00256 00257 /* 00258 * evgpeutil - GPE utilities 00259 */ 00260 ACPI_STATUS 00261 AcpiEvWalkGpeList ( 00262 ACPI_GPE_CALLBACK GpeWalkCallback, 00263 void *Context); 00264 00265 BOOLEAN 00266 AcpiEvValidGpeEvent ( 00267 ACPI_GPE_EVENT_INFO *GpeEventInfo); 00268 00269 ACPI_STATUS 00270 AcpiEvGetGpeDevice ( 00271 ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 00272 ACPI_GPE_BLOCK_INFO *GpeBlock, 00273 void *Context); 00274 00275 ACPI_GPE_XRUPT_INFO * 00276 AcpiEvGetGpeXruptBlock ( 00277 UINT32 InterruptNumber); 00278 00279 ACPI_STATUS 00280 AcpiEvDeleteGpeXrupt ( 00281 ACPI_GPE_XRUPT_INFO *GpeXrupt); 00282 00283 ACPI_STATUS 00284 AcpiEvDeleteGpeHandlers ( 00285 ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 00286 ACPI_GPE_BLOCK_INFO *GpeBlock, 00287 void *Context); 00288 00289 00290 /* 00291 * evregion - Address Space handling 00292 */ 00293 ACPI_STATUS 00294 AcpiEvInstallRegionHandlers ( 00295 void); 00296 00297 ACPI_STATUS 00298 AcpiEvInitializeOpRegions ( 00299 void); 00300 00301 ACPI_STATUS 00302 AcpiEvAddressSpaceDispatch ( 00303 ACPI_OPERAND_OBJECT *RegionObj, 00304 UINT32 Function, 00305 UINT32 RegionOffset, 00306 UINT32 BitWidth, 00307 UINT64 *Value); 00308 00309 ACPI_STATUS 00310 AcpiEvAttachRegion ( 00311 ACPI_OPERAND_OBJECT *HandlerObj, 00312 ACPI_OPERAND_OBJECT *RegionObj, 00313 BOOLEAN AcpiNsIsLocked); 00314 00315 void 00316 AcpiEvDetachRegion ( 00317 ACPI_OPERAND_OBJECT *RegionObj, 00318 BOOLEAN AcpiNsIsLocked); 00319 00320 ACPI_STATUS 00321 AcpiEvInstallSpaceHandler ( 00322 ACPI_NAMESPACE_NODE *Node, 00323 ACPI_ADR_SPACE_TYPE SpaceId, 00324 ACPI_ADR_SPACE_HANDLER Handler, 00325 ACPI_ADR_SPACE_SETUP Setup, 00326 void *Context); 00327 00328 ACPI_STATUS 00329 AcpiEvExecuteRegMethods ( 00330 ACPI_NAMESPACE_NODE *Node, 00331 ACPI_ADR_SPACE_TYPE SpaceId); 00332 00333 ACPI_STATUS 00334 AcpiEvExecuteRegMethod ( 00335 ACPI_OPERAND_OBJECT *RegionObj, 00336 UINT32 Function); 00337 00338 00339 /* 00340 * evregini - Region initialization and setup 00341 */ 00342 ACPI_STATUS 00343 AcpiEvSystemMemoryRegionSetup ( 00344 ACPI_HANDLE Handle, 00345 UINT32 Function, 00346 void *HandlerContext, 00347 void **RegionContext); 00348 00349 ACPI_STATUS 00350 AcpiEvIoSpaceRegionSetup ( 00351 ACPI_HANDLE Handle, 00352 UINT32 Function, 00353 void *HandlerContext, 00354 void **RegionContext); 00355 00356 ACPI_STATUS 00357 AcpiEvPciConfigRegionSetup ( 00358 ACPI_HANDLE Handle, 00359 UINT32 Function, 00360 void *HandlerContext, 00361 void **RegionContext); 00362 00363 ACPI_STATUS 00364 AcpiEvCmosRegionSetup ( 00365 ACPI_HANDLE Handle, 00366 UINT32 Function, 00367 void *HandlerContext, 00368 void **RegionContext); 00369 00370 ACPI_STATUS 00371 AcpiEvPciBarRegionSetup ( 00372 ACPI_HANDLE Handle, 00373 UINT32 Function, 00374 void *HandlerContext, 00375 void **RegionContext); 00376 00377 ACPI_STATUS 00378 AcpiEvDefaultRegionSetup ( 00379 ACPI_HANDLE Handle, 00380 UINT32 Function, 00381 void *HandlerContext, 00382 void **RegionContext); 00383 00384 ACPI_STATUS 00385 AcpiEvInitializeRegion ( 00386 ACPI_OPERAND_OBJECT *RegionObj, 00387 BOOLEAN AcpiNsLocked); 00388 00389 00390 /* 00391 * evsci - SCI (System Control Interrupt) handling/dispatch 00392 */ 00393 UINT32 ACPI_SYSTEM_XFACE 00394 AcpiEvGpeXruptHandler ( 00395 void *Context); 00396 00397 UINT32 00398 AcpiEvInstallSciHandler ( 00399 void); 00400 00401 ACPI_STATUS 00402 AcpiEvRemoveSciHandler ( 00403 void); 00404 00405 UINT32 00406 AcpiEvInitializeSCI ( 00407 UINT32 ProgramSCI); 00408 00409 void 00410 AcpiEvTerminate ( 00411 void); 00412 00413 00414 #endif /* __ACEVENTS_H__ */ Generated on Sun May 27 2012 04:27:18 for ReactOS by
1.7.6.1
|