2000-10-28 05:01:06 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Name: actables.h - ACPI table management
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2011-01-13 16:12:34 +00:00
|
|
|
/*
|
2015-02-05 00:09:52 +00:00
|
|
|
* Copyright (C) 2000 - 2015, Intel Corp.
|
2000-12-21 06:56:46 +00:00
|
|
|
* All rights reserved.
|
2000-10-28 05:01:06 +00:00
|
|
|
*
|
2011-01-13 16:12:34 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
#ifndef __ACTABLES_H__
|
|
|
|
#define __ACTABLES_H__
|
|
|
|
|
|
|
|
|
2000-12-01 09:36:25 +00:00
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiAllocateRootTable (
|
|
|
|
UINT32 InitialTableCount);
|
2005-11-01 22:11:18 +00:00
|
|
|
|
2013-06-26 19:01:10 +00:00
|
|
|
/*
|
|
|
|
* tbxfroot - Root pointer utilities
|
|
|
|
*/
|
2014-09-29 19:53:38 +00:00
|
|
|
UINT32
|
|
|
|
AcpiTbGetRsdpLength (
|
|
|
|
ACPI_TABLE_RSDP *Rsdp);
|
|
|
|
|
2013-07-26 18:20:00 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbValidateRsdp (
|
|
|
|
ACPI_TABLE_RSDP *Rsdp);
|
|
|
|
|
2013-06-26 19:01:10 +00:00
|
|
|
UINT8 *
|
|
|
|
AcpiTbScanMemoryForRsdp (
|
|
|
|
UINT8 *StartAddress,
|
|
|
|
UINT32 Length);
|
|
|
|
|
|
|
|
|
2014-03-27 23:50:54 +00:00
|
|
|
/*
|
|
|
|
* tbdata - table data structure management
|
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
2015-04-09 23:08:47 +00:00
|
|
|
AcpiTbGetNextTableDescriptor (
|
|
|
|
UINT32 *TableIndex,
|
|
|
|
ACPI_TABLE_DESC **TableDesc);
|
2014-03-27 23:50:54 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
AcpiTbInitTableDescriptor (
|
|
|
|
ACPI_TABLE_DESC *TableDesc,
|
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
UINT8 Flags,
|
|
|
|
ACPI_TABLE_HEADER *Table);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbAcquireTempTable (
|
|
|
|
ACPI_TABLE_DESC *TableDesc,
|
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
UINT8 Flags);
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiTbReleaseTempTable (
|
|
|
|
ACPI_TABLE_DESC *TableDesc);
|
|
|
|
|
2014-06-27 19:10:35 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbValidateTempTable (
|
|
|
|
ACPI_TABLE_DESC *TableDesc);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbVerifyTempTable (
|
|
|
|
ACPI_TABLE_DESC *TableDesc,
|
|
|
|
char *Signature);
|
|
|
|
|
2014-03-27 23:50:54 +00:00
|
|
|
BOOLEAN
|
|
|
|
AcpiTbIsTableLoaded (
|
|
|
|
UINT32 TableIndex);
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiTbSetTableLoadedFlag (
|
|
|
|
UINT32 TableIndex,
|
|
|
|
BOOLEAN IsLoaded);
|
|
|
|
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
/*
|
2007-03-22 17:24:05 +00:00
|
|
|
* tbfadt - FADT parse/convert/validate
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
2002-06-30 17:50:46 +00:00
|
|
|
void
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbParseFadt (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex);
|
2001-06-29 20:11:04 +00:00
|
|
|
|
2007-03-22 17:24:05 +00:00
|
|
|
void
|
|
|
|
AcpiTbCreateLocalFadt (
|
|
|
|
ACPI_TABLE_HEADER *Table,
|
|
|
|
UINT32 Length);
|
2001-06-29 20:11:04 +00:00
|
|
|
|
2005-11-01 22:11:18 +00:00
|
|
|
|
|
|
|
/*
|
2007-03-22 17:24:05 +00:00
|
|
|
* tbfind - find ACPI table
|
2005-11-01 22:11:18 +00:00
|
|
|
*/
|
2001-06-29 20:11:04 +00:00
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbFindTable (
|
|
|
|
char *Signature,
|
|
|
|
char *OemId,
|
|
|
|
char *OemTableId,
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 *TableIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
2007-03-22 17:24:05 +00:00
|
|
|
* tbinstal - Table removal and deletion
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbResizeRootTableList (
|
|
|
|
void);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
2014-03-27 23:50:54 +00:00
|
|
|
AcpiTbValidateTable (
|
2007-03-22 17:24:05 +00:00
|
|
|
ACPI_TABLE_DESC *TableDesc);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2014-03-27 23:50:54 +00:00
|
|
|
void
|
|
|
|
AcpiTbInvalidateTable (
|
2012-02-16 00:24:10 +00:00
|
|
|
ACPI_TABLE_DESC *TableDesc);
|
|
|
|
|
2014-03-27 23:50:54 +00:00
|
|
|
void
|
|
|
|
AcpiTbOverrideTable (
|
|
|
|
ACPI_TABLE_DESC *OldTableDesc);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbAcquireTable (
|
2007-03-22 17:24:05 +00:00
|
|
|
ACPI_TABLE_DESC *TableDesc,
|
2014-03-27 23:50:54 +00:00
|
|
|
ACPI_TABLE_HEADER **TablePtr,
|
|
|
|
UINT32 *TableLength,
|
|
|
|
UINT8 *TableFlags);
|
|
|
|
|
|
|
|
void
|
|
|
|
AcpiTbReleaseTable (
|
|
|
|
ACPI_TABLE_HEADER *Table,
|
|
|
|
UINT32 TableLength,
|
|
|
|
UINT8 TableFlags);
|
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbInstallStandardTable (
|
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
UINT8 Flags,
|
|
|
|
BOOLEAN Reload,
|
|
|
|
BOOLEAN Override,
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 *TableIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
void
|
2014-03-27 23:50:54 +00:00
|
|
|
AcpiTbUninstallTable (
|
2007-03-22 17:24:05 +00:00
|
|
|
ACPI_TABLE_DESC *TableDesc);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
void
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbTerminate (
|
|
|
|
void);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2009-06-01 21:02:40 +00:00
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbDeleteNamespaceByOwner (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2005-11-01 22:11:18 +00:00
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbAllocateOwnerId (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbReleaseOwnerId (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbGetOwnerId (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex,
|
2007-03-22 17:24:05 +00:00
|
|
|
ACPI_OWNER_ID *OwnerId);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
/*
|
2007-03-22 17:24:05 +00:00
|
|
|
* tbutils - table manager utilities
|
2000-10-28 05:01:06 +00:00
|
|
|
*/
|
2009-06-01 21:02:40 +00:00
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbInitializeFacs (
|
|
|
|
void);
|
|
|
|
|
2007-03-22 17:24:05 +00:00
|
|
|
BOOLEAN
|
|
|
|
AcpiTbTablesLoaded (
|
|
|
|
void);
|
2002-02-23 05:10:40 +00:00
|
|
|
|
2007-03-22 17:24:05 +00:00
|
|
|
void
|
|
|
|
AcpiTbPrintTableHeader(
|
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
ACPI_TABLE_HEADER *Header);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
UINT8
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbChecksum (
|
|
|
|
UINT8 *Buffer,
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 Length);
|
2007-03-22 17:24:05 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbVerifyChecksum (
|
|
|
|
ACPI_TABLE_HEADER *Table,
|
2000-10-28 05:01:06 +00:00
|
|
|
UINT32 Length);
|
|
|
|
|
2010-04-02 16:48:51 +00:00
|
|
|
void
|
|
|
|
AcpiTbCheckDsdtHeader (
|
|
|
|
void);
|
|
|
|
|
|
|
|
ACPI_TABLE_HEADER *
|
|
|
|
AcpiTbCopyDsdt (
|
|
|
|
UINT32 TableIndex);
|
|
|
|
|
2007-03-22 17:24:05 +00:00
|
|
|
void
|
2014-03-27 23:50:54 +00:00
|
|
|
AcpiTbInstallTableWithOverride (
|
|
|
|
ACPI_TABLE_DESC *NewTableDesc,
|
2015-08-25 19:41:12 +00:00
|
|
|
BOOLEAN Override,
|
|
|
|
UINT32 *TableIndex);
|
2014-03-27 23:50:54 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbInstallFixedTable (
|
2007-03-22 17:24:05 +00:00
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
char *Signature,
|
2015-08-25 19:41:12 +00:00
|
|
|
UINT32 *TableIndex);
|
2007-03-22 17:24:05 +00:00
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbParseRootTable (
|
2009-06-01 21:02:40 +00:00
|
|
|
ACPI_PHYSICAL_ADDRESS RsdpAddress);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
2015-08-25 19:41:12 +00:00
|
|
|
BOOLEAN
|
|
|
|
AcpiIsValidSignature (
|
|
|
|
char *Signature);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* tbxfload
|
|
|
|
*/
|
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbLoadNamespace (
|
|
|
|
void);
|
|
|
|
|
2000-10-28 05:01:06 +00:00
|
|
|
#endif /* __ACTABLES_H__ */
|