X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fos.h;h=64e89a06c9498e24d84a00e734ce9f339ee657e8;hb=d295c3ec3543e697b6f9f077f52877e081db4c6f;hp=2bf4bdb1b8369a48b3c3f6ec89d8889b97bd685c;hpb=47b98ad0f6779485d0f0c14f337c3eece273eb54;p=u-boot diff --git a/include/os.h b/include/os.h index 2bf4bdb1b8..64e89a06c9 100644 --- a/include/os.h +++ b/include/os.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Operating System Interface * @@ -5,7 +6,6 @@ * They are kept in a separate file so we can include system headers. * * Copyright (c) 2011 The Chromium OS Authors. - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __OS_H__ @@ -240,6 +240,26 @@ const char *os_dirent_get_typename(enum os_dirent_t type); */ int os_get_filesize(const char *fname, loff_t *size); +/** + * Write a character to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param ch Character to write + */ +void os_putc(int ch); + +/** + * Write a string to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param str String to write (note that \n is not appended) + */ +void os_puts(const char *str); + /** * Write the sandbox RAM buffer to a existing file *