// 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 * * ----------------------------------------------------------------------- */ /* * Select video mode */ #include <uapi/asm/boot.h> #include "boot.h" #include "video.h" #include "vesa.h" static u16 video_segment; static void store_cursor_position(void) { … } static void store_video_mode(void) { … } /* * Store the video mode parameters for later usage by the kernel. * This is done by asking the BIOS except for the rows/columns * parameters in the default 80x25 mode -- these are set directly, * because some very obscure BIOSes supply insane values. */ static void store_mode_params(void) { … } static unsigned int get_entry(void) { … } static void display_menu(void) { … } #define H(x) … #define SCAN … static unsigned int mode_menu(void) { … } /* Save screen content to the heap */ static struct saved_screen { … } saved; static void save_screen(void) { … } static void restore_screen(void) { … } void set_video(void) { … }