aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-12-01 10:49:57 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-12-06 10:27:51 +0000
commitf1105fb8f7a2d9db06ed5e7c31392e6ffa9f06dd (patch)
treee767898451db273867ae99a638ad7f112bfb9739
parent95744d84b13ee1c34fd6d04fb3ff82cb8a34ac45 (diff)
downloadsrc-f1105fb8f7a2d9db06ed5e7c31392e6ffa9f06dd.tar.gz
src-f1105fb8f7a2d9db06ed5e7c31392e6ffa9f06dd.zip
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
-rw-r--r--sys/dev/fb/fb.c1
-rw-r--r--sys/dev/syscons/scvidctl.c1
-rw-r--r--sys/sys/fbio.h25
3 files changed, 0 insertions, 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 c13ef43d2fb9..bfd4dca79dce 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -196,31 +196,6 @@ 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.
*/
#define FBVIDEO_OFF 0