goldfish.c (69851e4ab8feeb369119a44ddca430c0ee15f0d8) | goldfish.c (95713967ba52389f7cea75704d0cf048080ec218) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Google, Inc. 4 * Copyright (C) 2012 Intel, Inc. 5 * Copyright (C) 2017 Imagination Technologies Ltd. 6 */ 7 8#include <linux/console.h> --- 171 unchanged lines hidden (view full) --- 180 tty_port_close(tty->port, tty, filp); 181} 182 183static void goldfish_tty_hangup(struct tty_struct *tty) 184{ 185 tty_port_hangup(tty->port); 186} 187 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Google, Inc. 4 * Copyright (C) 2012 Intel, Inc. 5 * Copyright (C) 2017 Imagination Technologies Ltd. 6 */ 7 8#include <linux/console.h> --- 171 unchanged lines hidden (view full) --- 180 tty_port_close(tty->port, tty, filp); 181} 182 183static void goldfish_tty_hangup(struct tty_struct *tty) 184{ 185 tty_port_hangup(tty->port); 186} 187 |
188static int goldfish_tty_write(struct tty_struct *tty, const u8 *buf, int count) | 188static ssize_t goldfish_tty_write(struct tty_struct *tty, const u8 *buf, 189 size_t count) |
189{ 190 goldfish_tty_do_write(tty->index, buf, count); 191 return count; 192} 193 194static unsigned int goldfish_tty_write_room(struct tty_struct *tty) 195{ 196 return 0x10000; --- 284 unchanged lines hidden --- | 190{ 191 goldfish_tty_do_write(tty->index, buf, count); 192 return count; 193} 194 195static unsigned int goldfish_tty_write_room(struct tty_struct *tty) 196{ 197 return 0x10000; --- 284 unchanged lines hidden --- |