acpi: rename aslc_id, aslc_revision
The fields Creator ID and Creator Revision contain information about the tool that created an ACPI table. This may be the ASL compiler for some tables but it is not for others. Naming these fields aslc_id and aslc_revision is misleading. It is usual to see diverse values of Creator ID. On a laptop I saw these: 'AMD ', 'INTL, 'MSFT', 'PTEC'. Obviously not all relate to the Intel ASL compiler. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
@@ -116,7 +116,7 @@ void acpi_fill_header(struct acpi_table_header *header, char *signature)
|
||||
memcpy(header->oem_id, OEM_ID, 6);
|
||||
memcpy(header->oem_table_id, OEM_TABLE_ID, 8);
|
||||
header->oem_revision = OEM_REVISION;
|
||||
memcpy(header->aslc_id, ASLC_ID, 4);
|
||||
memcpy(header->creator_id, ASLC_ID, 4);
|
||||
}
|
||||
|
||||
void acpi_align(struct acpi_ctx *ctx)
|
||||
@@ -219,7 +219,7 @@ void acpi_create_dbg2(struct acpi_dbg2_header *dbg2,
|
||||
|
||||
header->revision = acpi_get_table_revision(ACPITAB_DBG2);
|
||||
acpi_fill_header(header, "DBG2");
|
||||
header->aslc_revision = ASL_REVISION;
|
||||
header->creator_revision = ASL_REVISION;
|
||||
|
||||
/* One debug device defined */
|
||||
dbg2->devices_offset = sizeof(struct acpi_dbg2_header);
|
||||
|
||||
@@ -23,7 +23,7 @@ int acpi_write_ssdt(struct acpi_ctx *ctx, const struct acpi_writer *entry)
|
||||
|
||||
acpi_fill_header(ssdt, "SSDT");
|
||||
ssdt->revision = acpi_get_table_revision(ACPITAB_SSDT);
|
||||
ssdt->aslc_revision = 1;
|
||||
ssdt->creator_revision = 1;
|
||||
ssdt->length = sizeof(struct acpi_table_header);
|
||||
|
||||
acpi_inc(ctx, sizeof(struct acpi_table_header));
|
||||
|
||||
Reference in New Issue
Block a user