mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-21 15:43:21 +02:00
e38b27199e
The mdacon driver supports using ISA MDA or Hercules-compatible display
adapters as a secondary text console. This was commonly used in the
1990s and earlier for debugging software which took over the primary
display. It is highly unlikely anyone is doing so nowadays because
serial consoles and much better methods of debugging exist.
The driver is not enabled by any defconfig, nor any of the
dozens of distro configs collected at [1]. It has been relegated to VTs
13-16 since commit 0b9cf3aa6b ("mdacon messing up default vc's - set
default to vc13-16 again") in Linux 2.6.27 (and before Linux 2.5.53 -
see the link in the message of the above commit). The change in 2.6.27
was done because it was incorrectly detecting non-MDA adapters as MDA
and taking over all VTs, rendering them unusable.
Furthermore, vgacon supports using MDA/Hercules-compatible adapters as
the primary text console, so any systems with only one of these
adapters were already using vgacon and will not experience any loss in
functionality from the removal of this driver.
Given all of these factors, the mdacon driver is likely entirely
unused. Remove it.
[1] https://github.com/nyrahul/linux-kernel-configs/tree/f0bee86a135a0406ea427855f52702dd00d770f9
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* include/linux/vt_buffer.h -- Access to VT screen buffer
|
|
*
|
|
* (c) 1998 Martin Mares <mj@ucw.cz>
|
|
*
|
|
* This is a set of macros and functions which are used in the
|
|
* console driver and related code to access the screen buffer.
|
|
* In most cases the console works with simple in-memory buffer,
|
|
* but when handling hardware text mode consoles, we store
|
|
* the foreground console directly in video memory.
|
|
*/
|
|
|
|
#ifndef _LINUX_VT_BUFFER_H_
|
|
#define _LINUX_VT_BUFFER_H_
|
|
|
|
#include <linux/string.h>
|
|
|
|
#if IS_ENABLED(CONFIG_VGA_CONSOLE)
|
|
#include <asm/vga.h>
|
|
#endif
|
|
|
|
#ifndef VT_BUF_HAVE_RW
|
|
#define scr_writew(val, addr) (*(addr) = (val))
|
|
#define scr_readw(addr) (*(addr))
|
|
#endif
|
|
|
|
#ifndef VT_BUF_HAVE_MEMSETW
|
|
static inline void scr_memsetw(u16 *s, u16 c, unsigned int count)
|
|
{
|
|
memset16(s, c, count / 2);
|
|
}
|
|
#endif
|
|
|
|
#ifndef VT_BUF_HAVE_MEMCPYW
|
|
static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
|
|
{
|
|
memcpy(d, s, count);
|
|
}
|
|
#endif
|
|
|
|
#ifndef VT_BUF_HAVE_MEMMOVEW
|
|
static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count)
|
|
{
|
|
memmove(d, s, count);
|
|
}
|
|
#endif
|
|
|
|
#endif
|