]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/common.h
stdio: Pass device pointer to stdio methods
[people/ms/u-boot.git] / include / common.h
index 82c0a5a9a6ce076176ad5a72a718a925ed9cb4aa..a75fc25c5f6aeefeba4d46800c8eb7377086178b 100644 (file)
@@ -639,6 +639,11 @@ void       serial_puts   (const char *);
 int    serial_getc   (void);
 int    serial_tstc   (void);
 
+/* These versions take a stdio_dev pointer */
+struct stdio_dev;
+int serial_stub_getc(struct stdio_dev *sdev);
+int serial_stub_tstc(struct stdio_dev *sdev);
+
 void   _serial_setbrg (const int);
 void   _serial_putc   (const char, const int);
 void   _serial_putc_raw(const char, const int);