brintos

brintos / linux-shallow public Read only

0
0
Text · 520 B · 13cc8b7 Raw
27 lines · c
1// SPDX-License-Identifier: GPL-2.02 3#include <linux/module.h>4#include <linux/types.h>5 6#include <video/nomodeset.h>7 8static bool video_nomodeset;9 10bool video_firmware_drivers_only(void)11{12	return video_nomodeset;13}14EXPORT_SYMBOL(video_firmware_drivers_only);15 16static int __init disable_modeset(char *str)17{18	video_nomodeset = true;19 20	pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");21 22	return 1;23}24 25/* Disable kernel modesetting */26__setup("nomodeset", disable_modeset);27