Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2021 09:21:43 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: 2d8d4ade23b0 - stable/13 - fb: Remove unused FBIOSATTR/FBIOGATTR ioctls
Message-ID:  <202112210921.1BL9LhE7092572@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=2d8d4ade23b05149abcd14aaf4e2fa9d63583b2d

commit 2d8d4ade23b05149abcd14aaf4e2fa9d63583b2d
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-12-01 10:49:57 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-12-21 09:18:49 +0000

    fb: Remove unused FBIOSATTR/FBIOGATTR ioctls
    
    The FBIOSATTR/FBIOGATTR 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/D33215
    
    (cherry picked from commit f1105fb8f7a2d9db06ed5e7c31392e6ffa9f06dd)
---
 sys/dev/fb/fb.c            |  1 -
 sys/dev/syscons/scvidctl.c |  1 -
 sys/sys/fbio.h             | 25 -------------------------
 3 files changed, 27 deletions(-)

diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c
index 98b197adde66..85a129cfe0ae 100644
--- a/sys/dev/fb/fb.c
+++ b/sys/dev/fb/fb.c
@@ -738,7 +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 FBIOGATTR:
 	case FBIOSVIDEO:
 	case FBIOGVIDEO:
 	case FBIOVERTICAL:
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index 07566e64a212..93b9e84b67df 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -614,7 +614,6 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td)
     case FBIOPUTCMAP:
     case FBIOGETCMAP:
     case FBIOGTYPE:
-    case FBIOGATTR:
     case FBIOSVIDEO:
     case FBIOGVIDEO:
     case FBIOSCURSOR:
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 86e21da68d6e..d453b546b5b3 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -184,31 +184,6 @@ struct fbcmap {
 #define	FBIOPUTCMAP	_IOW('F', 3, struct fbcmap)
 #define	FBIOGETCMAP	_IOW('F', 4, struct fbcmap)
 
-/*
- * Set/get attributes.
- */
-#define	FB_ATTR_NDEVSPECIFIC	8	/* no. of device specific values */
-#define	FB_ATTR_NEMUTYPES	4	/* no. of emulation types */
-
-struct fbsattr {
-	int	flags;			/* flags; see below */
-	int	emu_type;		/* emulation type (-1 if unused) */
-	int	dev_specific[FB_ATTR_NDEVSPECIFIC];	/* catchall */
-};
-#define	FB_ATTR_AUTOINIT	1	/* emulation auto init flag */
-#define	FB_ATTR_DEVSPECIFIC	2	/* dev. specific stuff valid flag */
-
-struct fbgattr {
-	int	real_type;		/* real device type */
-	int	owner;			/* PID of owner, 0 if myself */
-	struct	fbtype fbtype;		/* fbtype info for real device */
-	struct	fbsattr sattr;		/* see above */
-	int	emu_types[FB_ATTR_NEMUTYPES];	/* possible emulations */
-						/* (-1 if unused) */
-};
-#define	FBIOSATTR	_IOW('F', 5, struct fbsattr)
-#define	FBIOGATTR	_IOR('F', 6, struct fbgattr)
-
 /*
  * Video control.
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112210921.1BL9LhE7092572>