summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2023-01-04 17:36:29 +0530
committerAnup Patel <[email protected]>2023-02-09 22:30:06 +0530
commit4e0572f57bc832b13f6e813dcdaebb1bf4d1172a (patch)
treec1297293a92b4bcd7f116dec10da41795e966f5c /include
parent0ee3a86fedafccaa5f57df86b07547747920972e (diff)
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 <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Andrew Jones <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_console.h b/include/sbi/sbi_console.h
index dd6a905d..3c1f5e59 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, ...);