diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2023-01-04 17:36:29 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2023-02-09 22:30:06 +0530 |
| commit | 4e0572f57bc832b13f6e813dcdaebb1bf4d1172a (patch) | |
| tree | c1297293a92b4bcd7f116dec10da41795e966f5c /include | |
| parent | 0ee3a86fedafccaa5f57df86b07547747920972e (diff) | |
| download | opensbi-4e0572f57bc832b13f6e813dcdaebb1bf4d1172a.zip opensbi-4e0572f57bc832b13f6e813dcdaebb1bf4d1172a.tar.gz opensbi-4e0572f57bc832b13f6e813dcdaebb1bf4d1172a.tar.bz2 | |
lib: sbi: Add sbi_ngets() function
We add new sbi_ngets() which help us read characters into a
physical memory location.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_console.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_console.h b/include/sbi/sbi_console.h index dd6a905..3c1f5e5 100644 --- a/include/sbi/sbi_console.h +++ b/include/sbi/sbi_console.h @@ -37,6 +37,8 @@ unsigned long sbi_nputs(const char *str, unsigned long len); void sbi_gets(char *s, int maxwidth, char endchar); +unsigned long sbi_ngets(char *str, unsigned long len); + int __printf(2, 3) sbi_sprintf(char *out, const char *format, ...); int __printf(3, 4) sbi_snprintf(char *out, u32 out_sz, const char *format, ...); |
