goldfish.c (1136fa0c07de570dc17858745af8be169d1440ba) goldfish.c (3f8bab174cb26aa5a8053c4457cc733881e3ad88)
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>

--- 420 unchanged lines hidden (view full) ---

429 goldfish_tty_current_line_count--;
430 if (goldfish_tty_current_line_count == 0)
431 goldfish_tty_delete_driver();
432 mutex_unlock(&goldfish_tty_lock);
433 return 0;
434}
435
436#ifdef CONFIG_GOLDFISH_TTY_EARLY_CONSOLE
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>

--- 420 unchanged lines hidden (view full) ---

429 goldfish_tty_current_line_count--;
430 if (goldfish_tty_current_line_count == 0)
431 goldfish_tty_delete_driver();
432 mutex_unlock(&goldfish_tty_lock);
433 return 0;
434}
435
436#ifdef CONFIG_GOLDFISH_TTY_EARLY_CONSOLE
437static void gf_early_console_putchar(struct uart_port *port, int ch)
437static void gf_early_console_putchar(struct uart_port *port, unsigned char ch)
438{
439 __raw_writel(ch, port->membase);
440}
441
442static void gf_early_write(struct console *con, const char *s, unsigned int n)
443{
444 struct earlycon_device *dev = con->data;
445

--- 35 unchanged lines hidden ---
438{
439 __raw_writel(ch, port->membase);
440}
441
442static void gf_early_write(struct console *con, const char *s, unsigned int n)
443{
444 struct earlycon_device *dev = con->data;
445

--- 35 unchanged lines hidden ---