diff options
author | Wolfgang Denk <wd@denx.de> | 2009-12-21 21:01:56 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-21 21:01:56 +0100 |
commit | f7767c7541a8cdae55655d10f039a5bc62894ee8 (patch) | |
tree | c559df77384b70faa52a3b1993c6587a37245fb8 /include/serial.h | |
parent | b6535daefd65c93ea429bc4728062379dda6e482 (diff) | |
parent | 127e10842b2474ac20e40572a4102dd4d5ed80f1 (diff) | |
download | u-boot-imx-f7767c7541a8cdae55655d10f039a5bc62894ee8.zip u-boot-imx-f7767c7541a8cdae55655d10f039a5bc62894ee8.tar.gz u-boot-imx-f7767c7541a8cdae55655d10f039a5bc62894ee8.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'include/serial.h')
-rw-r--r-- | include/serial.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/serial.h b/include/serial.h index bbda3f0..f2638ec 100644 --- a/include/serial.h +++ b/include/serial.h @@ -66,4 +66,22 @@ extern void serial_stdio_init(void); extern int serial_assign(char * name); extern void serial_reinit_all(void); +/* For usbtty */ +#ifdef CONFIG_USB_TTY + +extern int usbtty_getc(void); +extern void usbtty_putc(const char c); +extern void usbtty_puts(const char *str); +extern int usbtty_tstc(void); + +#else + +/* stubs */ +#define usbtty_getc() 0 +#define usbtty_putc(a) +#define usbtty_puts(a) +#define usbtty_tstc() 0 + +#endif /* CONFIG_USB_TTY */ + #endif |