Date: Tue, 21 Dec 2021 09:21:48 GMT From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 6bd6344f139f - stable/13 - fb: Add new FBTYPE_EFIFB Message-ID: <202112210921.1BL9LmkC092699@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=6bd6344f139fbc183fbe33a165faaf0ea4767d05 commit 6bd6344f139fbc183fbe33a165faaf0ea4767d05 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2021-12-01 15:13:09 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2021-12-21 09:21:26 +0000 fb: Add new FBTYPE_EFIFB Currently the type isn't set in the fbtype struct so any userland program that call the FBIOGTYPE ioctl will think it's a FBTYPE_SUN1BW which is far from the truth. No app that I found find checks the type but at least now it's correct. Reviewed by: emaste, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33221 (cherry picked from commit ca23e9d2ac2cd5443ab7d5b8999da11feddf828a) --- sys/dev/vt/hw/efifb/efifb.c | 1 + sys/sys/fbio.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/vt/hw/efifb/efifb.c b/sys/dev/vt/hw/efifb/efifb.c index fb270d438c81..3e1a793eee77 100644 --- a/sys/dev/vt/hw/efifb/efifb.c +++ b/sys/dev/vt/hw/efifb/efifb.c @@ -116,6 +116,7 @@ vt_efifb_init(struct vt_device *vd) if (efifb == NULL) return (CN_DEAD); + info->fb_type = FBTYPE_EFIFB; info->fb_height = efifb->fb_height; info->fb_width = efifb->fb_width; diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h index 1e04bc758134..931ef689fc1f 100644 --- a/sys/sys/fbio.h +++ b/sys/sys/fbio.h @@ -91,7 +91,9 @@ #define FBTYPE_TCXCOLOR 29 /* SUNW,tcx */ #define FBTYPE_CREATOR 30 -#define FBTYPE_LASTPLUSONE 31 /* max number of fbs (change as add) */ +#define FBTYPE_EFIFB 31 /* EFI Graphical Output Protocol (GOP) */ + +#define FBTYPE_LASTPLUSONE 32 /* max number of fbs (change as add) */ /* * Frame buffer descriptor as returned by FBIOGTYPE.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112210921.1BL9LmkC092699>