diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-05-12 01:42:37 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-05-13 00:58:26 +0000 |
commit | 2d0bf34201b68e10597c16d5684c14dd4c9587ea (patch) | |
tree | fe54921a0c78d4e3ee68d84396367d56cb1ddfa4 /src/soc/amd/common/block/include | |
parent | dd882f3812c5fe2fa3f709ed5e61938e723ba51d (diff) |
soc/amd: factor out acpigen_write_alib_dptc to common code
Also drop unneeded intermediate cast to void * before casting the
address of the struct dptc_input type variables to uint8_t *.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ie1e2aa1ec728a4e16d3a587d7400cdfc8962f443
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54077
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc/amd/common/block/include')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/alib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/alib.h b/src/soc/amd/common/block/include/amdblocks/alib.h index b9d34c5860..61608d5679 100644 --- a/src/soc/amd/common/block/include/amdblocks/alib.h +++ b/src/soc/amd/common/block/include/amdblocks/alib.h @@ -21,7 +21,8 @@ struct alib_dptc_param { uint32_t value; } __packed; -void acpigen_dptc_call_alib(const char *buf_name, uint8_t *buffer, size_t size); +void acpigen_write_alib_dptc(uint8_t *default_param, size_t default_param_len, + uint8_t *tablet_param, size_t tablet_param_len); #endif /* !__ACPI__ */ |