linux/arch/x86/boot/tty.c

// SPDX-License-Identifier: GPL-2.0-only
/* -*- linux-c -*- ------------------------------------------------------- *
 *
 *   Copyright (C) 1991, 1992 Linus Torvalds
 *   Copyright 2007 rPath, Inc. - All Rights Reserved
 *   Copyright 2009 Intel Corporation; author H. Peter Anvin
 *
 * ----------------------------------------------------------------------- */

/*
 * Very simple screen and serial I/O
 */

#include "boot.h"

int early_serial_base;

#define XMTRDY

#define TXR
#define LSR

/*
 * These functions are in .inittext so they can be used to signal
 * error during initialization.
 */

static void __section(".inittext") serial_putchar(int ch)
{}

static void __section(".inittext") bios_putchar(int ch)
{}

void __section(".inittext") putchar(int ch)
{}

void __section(".inittext") puts(const char *str)
{}

/*
 * Read the CMOS clock through the BIOS, and return the
 * seconds in BCD.
 */

static u8 gettime(void)
{}

/*
 * Read from the keyboard
 */
int getchar(void)
{}

static int kbd_pending(void)
{}

void kbd_flush(void)
{}

int getchar_timeout(void)
{}