mirror of
https://github.com/acpica/acpica/
synced 2025-02-21 07:54:32 +03:00
Added some ACPI prefixes
date 2000.06.21.21.18.00; author rmoore1; state Exp;
This commit is contained in:
parent
843757cf62
commit
08047489ec
@ -126,7 +126,6 @@
|
|||||||
MODULE_NAME ("tbinstal");
|
MODULE_NAME ("tbinstal");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: AcpiTbInstallTable
|
* FUNCTION: AcpiTbInstallTable
|
||||||
@ -261,7 +260,7 @@ AcpiTbRecognizeTable (
|
|||||||
* even the ones whose signature we don't recognize
|
* even the ones whose signature we don't recognize
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (TableType != TABLE_FACS)
|
if (TableType != ACPI_TABLE_FACS)
|
||||||
{
|
{
|
||||||
/* But don't abort if the checksum is wrong */
|
/* But don't abort if the checksum is wrong */
|
||||||
/* TBD: [Future] make this a configuration option? */
|
/* TBD: [Future] make this a configuration option? */
|
||||||
@ -316,7 +315,6 @@ AcpiTbInitTableDescriptor (
|
|||||||
TableDesc = ListHead;
|
TableDesc = ListHead;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Two major types of tables: 1) Only one instance is allowed. This includes most
|
* Two major types of tables: 1) Only one instance is allowed. This includes most
|
||||||
* ACPI tables such as the DSDT. 2) Multiple instances of the table are allowed. This
|
* ACPI tables such as the DSDT. 2) Multiple instances of the table are allowed. This
|
||||||
@ -405,7 +403,6 @@ AcpiTbInitTableDescriptor (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: AcpiTbDeleteAcpiTables
|
* FUNCTION: AcpiTbDeleteAcpiTables
|
||||||
@ -474,37 +471,37 @@ AcpiTbDeleteAcpiTable (
|
|||||||
|
|
||||||
switch (Type)
|
switch (Type)
|
||||||
{
|
{
|
||||||
case TABLE_RSDP:
|
case ACPI_TABLE_RSDP:
|
||||||
AcpiGbl_RSDP = NULL;
|
AcpiGbl_RSDP = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_APIC:
|
case ACPI_TABLE_APIC:
|
||||||
AcpiGbl_APIC = NULL;
|
AcpiGbl_APIC = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_DSDT:
|
case ACPI_TABLE_DSDT:
|
||||||
AcpiGbl_DSDT = NULL;
|
AcpiGbl_DSDT = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_FACP:
|
case ACPI_TABLE_FACP:
|
||||||
AcpiGbl_FACP = NULL;
|
AcpiGbl_FACP = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_FACS:
|
case ACPI_TABLE_FACS:
|
||||||
AcpiGbl_FACS = NULL;
|
AcpiGbl_FACS = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_PSDT:
|
case ACPI_TABLE_PSDT:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_RSDT:
|
case ACPI_TABLE_RSDT:
|
||||||
AcpiGbl_RSDT = NULL;
|
AcpiGbl_RSDT = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_SSDT:
|
case ACPI_TABLE_SSDT:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TABLE_SBST:
|
case ACPI_TABLE_SBST:
|
||||||
AcpiGbl_SBST = NULL;
|
AcpiGbl_SBST = NULL;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -591,7 +588,6 @@ AcpiTbDeleteSingleTable (
|
|||||||
/* Free the table descriptor (Don't delete the list head, tho) */
|
/* Free the table descriptor (Don't delete the list head, tho) */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ((TableDesc->Prev) == (TableDesc->Next))
|
if ((TableDesc->Prev) == (TableDesc->Next))
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -618,8 +614,6 @@ AcpiTbDeleteSingleTable (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: AcpiTbFreeAcpiTablesOfType
|
* FUNCTION: AcpiTbFreeAcpiTablesOfType
|
||||||
@ -664,4 +658,3 @@ AcpiTbFreeAcpiTablesOfType (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -211,9 +211,9 @@ AcpiTbSystemTablePointer (
|
|||||||
|
|
||||||
/* Check each of the loaded SSDTs (if any)*/
|
/* Check each of the loaded SSDTs (if any)*/
|
||||||
|
|
||||||
TableDesc = &AcpiGbl_AcpiTables[TABLE_SSDT];
|
TableDesc = &AcpiGbl_AcpiTables[ACPI_TABLE_SSDT];
|
||||||
|
|
||||||
for (i = 0; i < AcpiGbl_AcpiTables[TABLE_SSDT].Count; i++)
|
for (i = 0; i < AcpiGbl_AcpiTables[ACPI_TABLE_SSDT].Count; i++)
|
||||||
{
|
{
|
||||||
Table = TableDesc->Pointer;
|
Table = TableDesc->Pointer;
|
||||||
|
|
||||||
@ -228,9 +228,9 @@ AcpiTbSystemTablePointer (
|
|||||||
|
|
||||||
/* Check each of the loaded PSDTs (if any)*/
|
/* Check each of the loaded PSDTs (if any)*/
|
||||||
|
|
||||||
TableDesc = &AcpiGbl_AcpiTables[TABLE_PSDT];
|
TableDesc = &AcpiGbl_AcpiTables[ACPI_TABLE_PSDT];
|
||||||
|
|
||||||
for (i = 0; i < AcpiGbl_AcpiTables[TABLE_PSDT].Count; i++)
|
for (i = 0; i < AcpiGbl_AcpiTables[ACPI_TABLE_PSDT].Count; i++)
|
||||||
{
|
{
|
||||||
Table = TableDesc->Pointer;
|
Table = TableDesc->Pointer;
|
||||||
|
|
||||||
@ -243,14 +243,12 @@ AcpiTbSystemTablePointer (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Pointer does not point into any system table */
|
/* Pointer does not point into any system table */
|
||||||
|
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: AcpiTbValidateTableHeader
|
* FUNCTION: AcpiTbValidateTableHeader
|
||||||
@ -288,7 +286,7 @@ AcpiTbValidateTableHeader (
|
|||||||
|
|
||||||
/* Ensure that the signature is 4 ASCII characters */
|
/* Ensure that the signature is 4 ASCII characters */
|
||||||
|
|
||||||
STORE32 (&Signature, &TableHeader->Signature);
|
MOVE_UNALIGNED32_TO_32 (&Signature, &TableHeader->Signature);
|
||||||
if (!AcpiCmValidAcpiName (Signature))
|
if (!AcpiCmValidAcpiName (Signature))
|
||||||
{
|
{
|
||||||
DEBUG_PRINT (ACPI_ERROR, ("Table signature at %p [%X] has invalid characters\n",
|
DEBUG_PRINT (ACPI_ERROR, ("Table signature at %p [%X] has invalid characters\n",
|
||||||
@ -344,7 +342,6 @@ AcpiTbMapAcpiTable (
|
|||||||
ACPI_STATUS Status = AE_OK;
|
ACPI_STATUS Status = AE_OK;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* If size is zero, look at the table header to get the actual size */
|
/* If size is zero, look at the table header to get the actual size */
|
||||||
|
|
||||||
if ((*Size) == 0)
|
if ((*Size) == 0)
|
||||||
@ -482,5 +479,3 @@ AcpiTbChecksum (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -158,7 +158,6 @@ AcpiLoadFirmwareTables (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Now get the rest of the tables */
|
/* Now get the rest of the tables */
|
||||||
|
|
||||||
Status = AcpiTbGetAllTables (NumberOfTables, NULL);
|
Status = AcpiTbGetAllTables (NumberOfTables, NULL);
|
||||||
@ -321,7 +320,7 @@ AcpiGetTableHeader (
|
|||||||
Status = AE_OK;
|
Status = AE_OK;
|
||||||
|
|
||||||
if ((Instance == 0) ||
|
if ((Instance == 0) ||
|
||||||
(TableType == TABLE_RSDP) ||
|
(TableType == ACPI_TABLE_RSDP) ||
|
||||||
(!OutTableHeader))
|
(!OutTableHeader))
|
||||||
{
|
{
|
||||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||||
@ -443,7 +442,7 @@ AcpiGetTable (
|
|||||||
/*
|
/*
|
||||||
* Got a table ptr, assume it's ok and copy it to the user's buffer
|
* Got a table ptr, assume it's ok and copy it to the user's buffer
|
||||||
*/
|
*/
|
||||||
if (TableType == TABLE_RSDP)
|
if (TableType == ACPI_TABLE_RSDP)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* RSD PTR is the only "table" without a header
|
* RSD PTR is the only "table" without a header
|
||||||
|
@ -125,7 +125,6 @@
|
|||||||
MODULE_NAME ("tbtable");
|
MODULE_NAME ("tbtable");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: AcpiTbGetTableRsdt
|
* FUNCTION: AcpiTbGetTableRsdt
|
||||||
@ -161,7 +160,7 @@ AcpiTbGetTableRsdt (
|
|||||||
|
|
||||||
/* Save the table pointers and allocation info */
|
/* Save the table pointers and allocation info */
|
||||||
|
|
||||||
Status = AcpiTbInitTableDescriptor (TABLE_RSDP, &TableInfo);
|
Status = AcpiTbInitTableDescriptor (ACPI_TABLE_RSDP, &TableInfo);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
{
|
{
|
||||||
return_ACPI_STATUS (Status);
|
return_ACPI_STATUS (Status);
|
||||||
@ -197,7 +196,7 @@ AcpiTbGetTableRsdt (
|
|||||||
|
|
||||||
/* Always delete the RSDP mapping */
|
/* Always delete the RSDP mapping */
|
||||||
|
|
||||||
AcpiTbDeleteAcpiTable (TABLE_RSDP);
|
AcpiTbDeleteAcpiTable (ACPI_TABLE_RSDP);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
{
|
{
|
||||||
return_ACPI_STATUS (Status);
|
return_ACPI_STATUS (Status);
|
||||||
@ -205,7 +204,7 @@ AcpiTbGetTableRsdt (
|
|||||||
|
|
||||||
/* Save the table pointers and allocation info */
|
/* Save the table pointers and allocation info */
|
||||||
|
|
||||||
Status = AcpiTbInitTableDescriptor (TABLE_RSDT, &TableInfo);
|
Status = AcpiTbInitTableDescriptor (ACPI_TABLE_RSDT, &TableInfo);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
{
|
{
|
||||||
return_ACPI_STATUS (Status);
|
return_ACPI_STATUS (Status);
|
||||||
@ -251,7 +250,6 @@ AcpiTbScanMemoryForRsdp (
|
|||||||
char *MemRover;
|
char *MemRover;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Search from given start addr for the requested length */
|
/* Search from given start addr for the requested length */
|
||||||
|
|
||||||
for (Offset = 0, MemRover = StartAddress;
|
for (Offset = 0, MemRover = StartAddress;
|
||||||
@ -422,7 +420,6 @@ AcpiTbFindRsdp (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: AcpiTbGetTableFacs
|
* FUNCTION: AcpiTbGetTableFacs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user