2000-10-28 05:01:06 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Name: actables.h - ACPI table management
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2011-01-13 16:12:34 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2000 - 2011, 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
|
|
|
|
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
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbVerifyTable (
|
|
|
|
ACPI_TABLE_DESC *TableDesc);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
ACPI_STATUS
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbAddTable (
|
|
|
|
ACPI_TABLE_DESC *TableDesc,
|
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
|
|
|
ACPI_STATUS
|
|
|
|
AcpiTbStoreTable (
|
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
ACPI_TABLE_HEADER *Table,
|
|
|
|
UINT32 Length,
|
|
|
|
UINT8 Flags,
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 *TableIndex);
|
2000-10-28 05:01:06 +00:00
|
|
|
|
|
|
|
void
|
2007-03-22 17:24:05 +00:00
|
|
|
AcpiTbDeleteTable (
|
|
|
|
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);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
AcpiTbIsTableLoaded (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex);
|
2007-03-22 17:24:05 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
AcpiTbSetTableLoadedFlag (
|
2009-06-01 21:02:40 +00:00
|
|
|
UINT32 TableIndex,
|
2007-03-22 17:24:05 +00:00
|
|
|
BOOLEAN IsLoaded);
|
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
|
|
|
|
AcpiTbInstallTable (
|
|
|
|
ACPI_PHYSICAL_ADDRESS Address,
|
|
|
|
char *Signature,
|
2009-06-01 21:02:40 +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
|
|
|
|
|
|
|
#endif /* __ACTABLES_H__ */
|