From 00a38a4a9e668caf573517051aafff9eba61def3 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 9 Aug 2016 09:04:45 -0700 Subject: drivers/intel/fsp2_0: 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: If7bfcea1af82209dcdc5a9f9f2d9334842c1595e Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/16129 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/drivers/intel/fsp2_0/include/fsp/debug.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/drivers/intel/fsp2_0/include/fsp/debug.h') diff --git a/src/drivers/intel/fsp2_0/include/fsp/debug.h b/src/drivers/intel/fsp2_0/include/fsp/debug.h index 3708c679eb..2f1d806b25 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/debug.h +++ b/src/drivers/intel/fsp2_0/include/fsp/debug.h @@ -58,4 +58,13 @@ const char *fsp_get_guid_name(const uint8_t *guid); void fsp_print_guid_extension_hob(const struct hob_header *hob); int fsp_find_bootloader_tolum(struct range_entry *re); +/* + * 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. + */ +asmlinkage size_t fsp_write_line(uint8_t *buffer, size_t number_of_bytes); + #endif /* _FSP2_0_DEBUG_H_ */ -- cgit v1.2.3