nomodeset.c 520 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/module.h>
  3. #include <linux/types.h>
  4. #include <video/nomodeset.h>
  5. static bool video_nomodeset;
  6. bool video_firmware_drivers_only(void)
  7. {
  8. return video_nomodeset;
  9. }
  10. EXPORT_SYMBOL(video_firmware_drivers_only);
  11. static int __init disable_modeset(char *str)
  12. {
  13. video_nomodeset = true;
  14. pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
  15. return 1;
  16. }
  17. /* Disable kernel modesetting */
  18. __setup("nomodeset", disable_modeset);