path: root/sys/sys/fbio.h
diff options
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2015-03-01 12:54:22 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2015-03-01 12:54:22 +0000
commit76e2f976561fd436e412f6898c2d2454b0bd5572 (patch)
tree4223e3d377fb373200c2dfa239b3c43e990ff76b /sys/sys/fbio.h
parentbe440d689ddec56c72ca3cdae8e5f4dbe4b2fdd0 (diff)
vt(4): Add support to "downgrade" from eg. vt_fb to vt_vga
The main purpose of this feature is to be able to unload a KMS driver. When going back from the current vt(4) backend to the previous backend, the previous backend is reinitialized with the special VDF_DOWNGRADE flag set. Then the current driver is terminated with the new "vd_fini" callback. In the case of vt_fb and vt_vga, this allows the former to pass the vgapci device vt_fb used to vt_vga so the device can be rePOSTed. Differential Revision: https://reviews.freebsd.org/D687
Notes: svn path=/head/; revision=279488
Diffstat (limited to 'sys/sys/fbio.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 034d05293904..17cd891d3985 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -128,6 +128,9 @@ struct fb_info {
struct cdev *fb_cdev;
+ device_t fb_fbd_dev; /* "fbd" device. */
+ device_t fb_video_dev; /* Video adapter. */
fb_enter_t *enter;
fb_leave_t *leave;
fb_setblankmode_t *setblankmode;