summaryrefslogtreecommitdiff
path: root/src/drivers/intel/fsp2_0/include/fsp
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-04-01 12:30:08 +0530
committerSubrata Banik <subratabanik@google.com>2024-04-06 04:32:01 +0000
commitafe84274eef7e73c12e68a84db642ae96c248147 (patch)
treed5dd360bd6873bcd97dcca1477a759002ec66944 /src/drivers/intel/fsp2_0/include/fsp
parent9c4d85d83af20b7e83ebcb577cd3566619abd545 (diff)
drivers/intel/fsp2_0: Enhance portability with uintptr_t/size_t
Replace fixed-width integers for pointers and sizes with uintptr_t and size_t, promoting portability across 32-bit and 64-bit architectures. For FSP-API specific UPD assignments, rely on `efi_uintn_t` rather fixed size datatype uint32_t/uint64_t. BUG=b:242829490 TEST=Firmware splash screen visible on google/rex0 w/ both 32-bit and 64-bit compilation. Change-Id: Iab5c612e0640441a2a10e77949416de2afdb8985 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81615 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Dinesh Gehlot <digehlot@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Ronak Kanabar <ronak.kanabar@intel.com>
Diffstat (limited to 'src/drivers/intel/fsp2_0/include/fsp')
-rw-r--r--src/drivers/intel/fsp2_0/include/fsp/fsp_gop_blt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/fsp_gop_blt.h b/src/drivers/intel/fsp2_0/include/fsp/fsp_gop_blt.h
index 7ffb54c3b3..ff1548328e 100644
--- a/src/drivers/intel/fsp2_0/include/fsp/fsp_gop_blt.h
+++ b/src/drivers/intel/fsp2_0/include/fsp/fsp_gop_blt.h
@@ -7,8 +7,8 @@
#include <types.h>
/* Convert a *.BMP graphics image to a GOP blt buffer */
-void fsp_convert_bmp_to_gop_blt(uint32_t *logo, uint32_t *logo_size,
- uint32_t *blt_ptr, uint32_t *blt_size,
+void fsp_convert_bmp_to_gop_blt(efi_uintn_t *logo, uint32_t *logo_size,
+ efi_uintn_t *blt_ptr, efi_uintn_t *blt_size,
uint32_t *pixel_height, uint32_t *pixel_width);
#endif /* FSP_GOP_BLT_H */