drm_nomodeset.c 480 B

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