src/acpi/acpigen.c: Use macro for access_size
Change-Id: I677d055b3cd47f760d743a6ecb63cb5738274090 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42727 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
653eb15ccd
commit
721cb8a717
1 changed files with 2 additions and 2 deletions
|
@ -687,7 +687,7 @@ void acpigen_write_empty_PTC(void)
|
|||
.space_id = ACPI_ADDRESS_SPACE_FIXED,
|
||||
.bit_width = 0,
|
||||
.bit_offset = 0,
|
||||
.access_size = 0,
|
||||
.access_size = ACPI_ACCESS_SIZE_UNDEFINED,
|
||||
.addrl = 0,
|
||||
.addrh = 0,
|
||||
};
|
||||
|
@ -1553,7 +1553,7 @@ void acpigen_write_CPPC_package(const struct cppc_config *config)
|
|||
for (i = 0; i < max; ++i) {
|
||||
const acpi_addr_t *reg = &(config->regs[i]);
|
||||
if (reg->space_id == ACPI_ADDRESS_SPACE_MEMORY &&
|
||||
reg->bit_width == 32 && reg->access_size == 0) {
|
||||
reg->bit_width == 32 && reg->access_size == ACPI_ACCESS_SIZE_UNDEFINED) {
|
||||
acpigen_write_dword(reg->addrl);
|
||||
} else {
|
||||
acpigen_write_register_resource(reg);
|
||||
|
|
Loading…
Reference in a new issue