mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
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
This commit is contained in:
parent
706f32db8a
commit
ca23e9d2ac
@ -117,6 +117,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;
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user