mirror of
https://github.com/acpica/acpica/
synced 2025-02-12 19:44:09 +03:00
Remove extraneous parameter in table manager.
Removed the Flags parameter from several internal functions since it was not being used.
This commit is contained in:
parent
2d8f95c694
commit
05224d2cf5
@ -263,7 +263,6 @@ AcpiTbInitGenericAddress (
|
||||
* FUNCTION: AcpiTbParseFadt
|
||||
*
|
||||
* PARAMETERS: TableIndex - Index for the FADT
|
||||
* Flags - Flags
|
||||
*
|
||||
* RETURN: None
|
||||
*
|
||||
@ -274,8 +273,7 @@ AcpiTbInitGenericAddress (
|
||||
|
||||
void
|
||||
AcpiTbParseFadt (
|
||||
UINT32 TableIndex,
|
||||
UINT8 Flags)
|
||||
UINT32 TableIndex)
|
||||
{
|
||||
UINT32 Length;
|
||||
ACPI_TABLE_HEADER *Table;
|
||||
@ -314,10 +312,10 @@ AcpiTbParseFadt (
|
||||
/* Obtain the DSDT and FACS tables via their addresses within the FADT */
|
||||
|
||||
AcpiTbInstallTable ((ACPI_PHYSICAL_ADDRESS) AcpiGbl_FADT.XDsdt,
|
||||
Flags, ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT);
|
||||
ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT);
|
||||
|
||||
AcpiTbInstallTable ((ACPI_PHYSICAL_ADDRESS) AcpiGbl_FADT.XFacs,
|
||||
Flags, ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS);
|
||||
ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -313,7 +313,6 @@ AcpiTbChecksum (
|
||||
* FUNCTION: AcpiTbInstallTable
|
||||
*
|
||||
* PARAMETERS: Address - Physical address of DSDT or FACS
|
||||
* Flags - Flags
|
||||
* Signature - Table signature, NULL if no need to
|
||||
* match
|
||||
* TableIndex - Index into root table array
|
||||
@ -330,10 +329,10 @@ AcpiTbChecksum (
|
||||
void
|
||||
AcpiTbInstallTable (
|
||||
ACPI_PHYSICAL_ADDRESS Address,
|
||||
UINT8 Flags,
|
||||
char *Signature,
|
||||
UINT32 TableIndex)
|
||||
{
|
||||
UINT8 Flags;
|
||||
ACPI_STATUS Status;
|
||||
ACPI_TABLE_HEADER *TableToInstall;
|
||||
ACPI_TABLE_HEADER *MappedTable;
|
||||
@ -380,14 +379,15 @@ AcpiTbInstallTable (
|
||||
MappedTable->Signature, ACPI_CAST_PTR (void, Address)));
|
||||
|
||||
AcpiGbl_RootTableList.Tables[TableIndex].Pointer = OverrideTable;
|
||||
Flags = ACPI_TABLE_ORIGIN_OVERRIDE;
|
||||
Address = ACPI_PTR_TO_PHYSADDR (OverrideTable);
|
||||
|
||||
TableToInstall = OverrideTable;
|
||||
Flags = ACPI_TABLE_ORIGIN_OVERRIDE;
|
||||
}
|
||||
else
|
||||
{
|
||||
TableToInstall = MappedTable;
|
||||
Flags = ACPI_TABLE_ORIGIN_MAPPED;
|
||||
}
|
||||
|
||||
/* Initialize the table entry */
|
||||
@ -479,7 +479,6 @@ AcpiTbGetRootTableEntry (
|
||||
* FUNCTION: AcpiTbParseRootTable
|
||||
*
|
||||
* PARAMETERS: Rsdp - Pointer to the RSDP
|
||||
* Flags - Flags
|
||||
*
|
||||
* RETURN: Status
|
||||
*
|
||||
@ -494,8 +493,7 @@ AcpiTbGetRootTableEntry (
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbParseRootTable (
|
||||
ACPI_PHYSICAL_ADDRESS RsdpAddress,
|
||||
UINT8 Flags)
|
||||
ACPI_PHYSICAL_ADDRESS RsdpAddress)
|
||||
{
|
||||
ACPI_TABLE_RSDP *Rsdp;
|
||||
UINT32 TableEntrySize;
|
||||
@ -636,14 +634,14 @@ AcpiTbParseRootTable (
|
||||
for (i = 2; i < AcpiGbl_RootTableList.Count; i++)
|
||||
{
|
||||
AcpiTbInstallTable (AcpiGbl_RootTableList.Tables[i].Address,
|
||||
Flags, NULL, i);
|
||||
NULL, i);
|
||||
|
||||
/* Special case for FADT - get the DSDT and FACS */
|
||||
|
||||
if (ACPI_COMPARE_NAME (
|
||||
&AcpiGbl_RootTableList.Tables[i].Signature, ACPI_SIG_FADT))
|
||||
{
|
||||
AcpiTbParseFadt (i, Flags);
|
||||
AcpiTbParseFadt (i);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ AcpiInitializeTables (
|
||||
* Root Table Array. This array contains the information of the RSDT/XSDT
|
||||
* in a common, more useable format.
|
||||
*/
|
||||
Status = AcpiTbParseRootTable (RsdpAddress, ACPI_TABLE_ORIGIN_MAPPED);
|
||||
Status = AcpiTbParseRootTable (RsdpAddress);
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
@ -126,8 +126,7 @@ AcpiAllocateRootTable (
|
||||
*/
|
||||
void
|
||||
AcpiTbParseFadt (
|
||||
UINT32 TableIndex,
|
||||
UINT8 Flags);
|
||||
UINT32 TableIndex);
|
||||
|
||||
void
|
||||
AcpiTbCreateLocalFadt (
|
||||
@ -234,13 +233,11 @@ AcpiTbVerifyChecksum (
|
||||
void
|
||||
AcpiTbInstallTable (
|
||||
ACPI_PHYSICAL_ADDRESS Address,
|
||||
UINT8 Flags,
|
||||
char *Signature,
|
||||
UINT32 TableIndex);
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbParseRootTable (
|
||||
ACPI_PHYSICAL_ADDRESS RsdpAddress,
|
||||
UINT8 Flags);
|
||||
ACPI_PHYSICAL_ADDRESS RsdpAddress);
|
||||
|
||||
#endif /* __ACTABLES_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user