From c52a4f7328b37a5f02d65e8328f551c2168fc8dd Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 9 Aug 2016 09:02:13 -0700 Subject: drivers/intel/fsp1_1: Add fsp_write_line function Add fsp_write_line function which may be called by FSP to output debug serial data to the console. TEST=Build and run on Galileo Gen2 Change-Id: Ib01aef448798e47ac613b38eb20bf25537b9221f Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/16128 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/drivers/intel/fsp1_1/include/fsp/util.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/drivers/intel/fsp1_1/include') diff --git a/src/drivers/intel/fsp1_1/include/fsp/util.h b/src/drivers/intel/fsp1_1/include/fsp/util.h index 07cf0c7de0..eea0c33a76 100644 --- a/src/drivers/intel/fsp1_1/include/fsp/util.h +++ b/src/drivers/intel/fsp1_1/include/fsp/util.h @@ -99,4 +99,13 @@ VOID * EFIAPI get_first_hob(UINT16 type); VOID * EFIAPI get_next_guid_hob(CONST EFI_GUID * guid, CONST VOID *hob_start); VOID * EFIAPI get_first_guid_hob(CONST EFI_GUID * guid); +/* + * Writes number_of_bytes data bytes from buffer to the console. + * The number of bytes actually written to the console is returned. + * + * If number_of_bytes is zero, don't output any data but instead wait until + * the console has output all data, then return 0. + */ +size_t EFIAPI fsp_write_line(uint8_t *buffer, size_t number_of_bytes); + #endif /* FSP1_1_UTIL_H */ -- cgit v1.2.3