Changeset 93416 in vbox
- Timestamp:
- Jan 24, 2022 4:26:56 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149518
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r93115 r93416 51 51 #include "revision-generated.h" 52 52 53 /** Detect whether kernel mode setting is OFF. */ 54 #if defined(CONFIG_VGA_CONSOLE) 55 # if RTLNX_VER_MIN(5,17,0) 56 # define VBOX_VIDEO_NOMODESET() drm_firmware_drivers_only() && vbox_modeset == -1 57 # elif RTLNX_VER_MIN(4,7,0) 58 # define VBOX_VIDEO_NOMODESET() vgacon_text_force() && vbox_modeset == -1 59 # else /* < 4.7.0 */ 60 # define VBOX_VIDEO_NOMODESET() 0 61 # endif /* < 4.7.0 */ 62 #else /* !CONFIG_VGA_CONSOLE */ 63 # define VBOX_VIDEO_NOMODESET() 0 64 #endif /* !CONFIG_VGA_CONSOLE */ 65 53 66 static int vbox_modeset = -1; 54 67 … … 399 412 { 400 413 printk("vboxvideo: loading version " VBOX_VERSION_STRING " r" __stringify(VBOX_SVN_REV) "\n"); 401 #if defined(CONFIG_VGA_CONSOLE) || RTLNX_VER_MIN(4,7,0) 402 if (vgacon_text_force() && vbox_modeset == -1) 414 if (VBOX_VIDEO_NOMODESET()) 403 415 { 404 416 printk("vboxvideo: kernel is running with *nomodeset* parameter,\n"); … … 407 419 return -EINVAL; 408 420 } 409 #endif410 421 411 422 if (vbox_modeset == 0)
Note:
See TracChangeset
for help on using the changeset viewer.