diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/intel/fsp2_0/debug.c | 7 | ||||
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/debug.h | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/debug.c b/src/drivers/intel/fsp2_0/debug.c index 5053b5e8ff..6d88f024ae 100644 --- a/src/drivers/intel/fsp2_0/debug.c +++ b/src/drivers/intel/fsp2_0/debug.c @@ -10,9 +10,16 @@ */ #include <console/console.h> +#include <console/streams.h> #include <fsp/util.h> #include <soc/intel/common/util.h> +asmlinkage size_t fsp_write_line(uint8_t *buffer, size_t number_of_bytes) +{ + console_write_line(buffer, number_of_bytes); + return number_of_bytes; +} + /*----------- * MemoryInit *----------- 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_ */ |