diff options
| author | Anup Patel <[email protected]> | 2022-11-23 12:32:06 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-02-10 10:04:41 +0530 |
| commit | c43903c4eae41be9917b0623f3625d96ca25fbc3 (patch) | |
| tree | e931eac5580b18383faba31b3a9b3a88eaa5210d /include | |
| parent | 5a41a3884fe2a639698aaa67a9c1ecc33573eb78 (diff) | |
lib: sbi: Add console_puts() callback in the console device
We add console_puts() callback in the console device which allows
console drivers (such as semihosting) to implement a specialized
way to output character string.
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi/sbi_console.h b/include/sbi/sbi_console.h index 3c1f5e59..09797652 100644 --- a/include/sbi/sbi_console.h +++ b/include/sbi/sbi_console.h @@ -19,6 +19,9 @@ struct sbi_console_device { /** Write a character to the console output */ void (*console_putc)(char ch); + /** Write a character string to the console output */ + unsigned long (*console_puts)(const char *str, unsigned long len); + /** Read a character from the console input */ int (*console_getc)(void); }; |
