/* * arch/xtensa/platforms/iss/console.c * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001-2005 Tensilica Inc. * Authors Christian Zankel, Joe Taylor
*/
ret = tty_register_driver(driver); if (ret) {
pr_err("Couldn't register serial driver\n");
tty_driver_kref_put(driver);
tty_port_destroy(&serial_port);
/* We use `late_initcall' instead of just `__initcall' as a workaround for * the fact that (1) simcons_tty_init can't be called before tty_init, * (2) tty_init is called via `module_init', (3) if statically linked, * module_init == device_init, and (4) there's no ordering of init lists. * We can do this easily because simcons is always statically linked, but * other tty drivers that depend on tty_init and which must use * `module_init' to declare their init routines are likely to be broken.
*/
late_initcall(rs_init);
#ifdef CONFIG_SERIAL_CONSOLE
staticvoid iss_console_write(struct console *co, constchar *s, unsigned count)
{ if (s && *s != 0)
simc_write(1, s, min(count, strlen(s)));
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.