git: 26542b33a4d5 - main - fb: Remove unused FBIOSVIDEO/FBIOGVIDEO ioctls

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 10:29:45 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=26542b33a4d5e06a26bd9ea523c1087d75c0c41a

commit 26542b33a4d5e06a26bd9ea523c1087d75c0c41a
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-12-01 10:51:17 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-12-06 10:27:53 +0000

    fb: Remove unused FBIOSVIDEO/FBIOGVIDEO ioctls
    
    The FBIOSVIDEO/FBIOGVIDEO ioctls were added in 1994 with the 4.4 Lite import
    but were never implemented in either sc(4), fb(4) or vt(4).
    Remove it.
    
    Reviewed by:    emaste, tsoome
    MFC after:      2 weeks
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D33216
---
 sys/dev/fb/fb.c            | 2 --
 sys/dev/syscons/scvidctl.c | 2 --
 sys/sys/fbio.h             | 9 ---------
 3 files changed, 13 deletions(-)

diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c
index 85a129cfe0ae..f6e7f0837210 100644
--- a/sys/dev/fb/fb.c
+++ b/sys/dev/fb/fb.c
@@ -738,8 +738,6 @@ fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg)
 	case FBIO_SETLINEWIDTH:	/* set scan line width in pixel */
 
 	case FBIOGTYPE:
-	case FBIOSVIDEO:
-	case FBIOGVIDEO:
 	case FBIOVERTICAL:
 	case FBIOSCURSOR:
 	case FBIOGCURSOR:
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index 93b9e84b67df..c5881545f435 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -614,8 +614,6 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td)
     case FBIOPUTCMAP:
     case FBIOGETCMAP:
     case FBIOGTYPE:
-    case FBIOSVIDEO:
-    case FBIOGVIDEO:
     case FBIOSCURSOR:
     case FBIOGCURSOR:
     case FBIOSCURPOS:
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index bfd4dca79dce..63709e7c6bf1 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -195,15 +195,6 @@ struct fbcmap {
 #define	FBIOPUTCMAP	_IOW('F', 3, struct fbcmap)
 #define	FBIOGETCMAP	_IOW('F', 4, struct fbcmap)
 
-/*
- * Video control.
- */
-#define	FBVIDEO_OFF		0
-#define	FBVIDEO_ON		1
-
-#define	FBIOSVIDEO	_IOW('F', 7, int)
-#define	FBIOGVIDEO	_IOR('F', 8, int)
-
 /* vertical retrace */
 #define	FBIOVERTICAL	_IO('F', 9)