console.c (cb5629b10d64a8006622ce3a52bc887d91057d69) | console.c (5a891ed5adef39aca0b7662c58a2566c7a16237e) |
---|---|
1/* 2 * arch/xtensa/platforms/iss/console.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001-2005 Tensilica Inc. --- 126 unchanged lines hidden (view full) --- 135 tty_flip_buffer_push(tty); 136 137 138 mod_timer(&serial_timer, jiffies + SERIAL_TIMER_VALUE); 139 spin_unlock(&timer_lock); 140} 141 142 | 1/* 2 * arch/xtensa/platforms/iss/console.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001-2005 Tensilica Inc. --- 126 unchanged lines hidden (view full) --- 135 tty_flip_buffer_push(tty); 136 137 138 mod_timer(&serial_timer, jiffies + SERIAL_TIMER_VALUE); 139 spin_unlock(&timer_lock); 140} 141 142 |
143static void rs_put_char(struct tty_struct *tty, unsigned char ch) | 143static int rs_put_char(struct tty_struct *tty, unsigned char ch) |
144{ 145 char buf[2]; 146 | 144{ 145 char buf[2]; 146 |
147 if (!tty) 148 return; 149 | |
150 buf[0] = ch; 151 buf[1] = '\0'; /* Is this NULL necessary? */ 152 __simc (SYS_write, 1, (unsigned long) buf, 1, 0, 0); | 147 buf[0] = ch; 148 buf[1] = '\0'; /* Is this NULL necessary? */ 149 __simc (SYS_write, 1, (unsigned long) buf, 1, 0, 0); |
150 return 1; |
|
153} 154 155static void rs_flush_chars(struct tty_struct *tty) 156{ 157} 158 159static int rs_write_room(struct tty_struct *tty) 160{ --- 137 unchanged lines hidden --- | 151} 152 153static void rs_flush_chars(struct tty_struct *tty) 154{ 155} 156 157static int rs_write_room(struct tty_struct *tty) 158{ --- 137 unchanged lines hidden --- |