diff options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/intel/fsp1_1/fsp_util.c | 7 | ||||
-rw-r--r-- | src/drivers/intel/fsp1_1/include/fsp/util.h | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp1_1/fsp_util.c b/src/drivers/intel/fsp1_1/fsp_util.c index 6e490d32fa..5ce753f4d4 100644 --- a/src/drivers/intel/fsp1_1/fsp_util.c +++ b/src/drivers/intel/fsp1_1/fsp_util.c @@ -17,6 +17,7 @@ #include <bootstate.h> #include <cbmem.h> #include <console/console.h> +#include <console/streams.h> #include <fsp/util.h> #include <timestamp.h> @@ -288,3 +289,9 @@ void fsp_display_upd_value(const char *name, uint32_t size, uint64_t old, } } } + +size_t EFIAPI fsp_write_line(uint8_t *buffer, size_t number_of_bytes) +{ + console_write_line(buffer, number_of_bytes); + return number_of_bytes; +} 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 */ |