From nobody Tue Dec 21 09:21:46 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AC7F018F33EB; Tue, 21 Dec 2021 09:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJ9vG6WjTz4Rlt; Tue, 21 Dec 2021 09:21:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BADDE27075; Tue, 21 Dec 2021 09:21:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BL9LkMG092652; Tue, 21 Dec 2021 09:21:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BL9Lk31092651; Tue, 21 Dec 2021 09:21:46 GMT (envelope-from git) Date: Tue, 21 Dec 2021 09:21:46 GMT Message-Id: <202112210921.1BL9Lk31092651@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: cee79df364e6 - stable/13 - fb: Remove unused cursors ioctls List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cee79df364e6e9f609c3bf738de8434b46a30d36 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640078507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o932m3r3wM+VhPzU2Wu/sGKiOCYoDn52WbOIlfLwTy0=; b=Bq1L3dE5GqOYfcmMgTw3FslbJWvvJytWkdLgPHK509vkT/b6uvEUi9Mr70XoEJ7ZP5O8fl kb8jgdhfluI5A7NvCXRMYasrm5nrRUCH8i3TBdXVd/HmACgn2f18yIv9Z2goYy1t60cqSg V0e8L4useOKhldqYbc+sGKKkjlKpbGq/utqCPjNK7BsykuEhepedFawo1U1V5Vp/SY+4+O PEVXzkDfZH6hRmsVYeX3ND6hkpsLhfFOzuZUyaAgY4V044f1qCAmQ6eBksW71ozkcbRFuo KTFmbhvjJAQH/fTw4bfZ70aygJ0rjghaU+0hGH/qclLzQbotLto3J7baciUuTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640078507; a=rsa-sha256; cv=none; b=jkk8cEjPxf5iQCq7nrq5avQgQFTJ9I57Lx2yV/+1QqlYXmD3KMU06tqckxbSXWcC6CNctC IPI99ZBjhM29D7gEPmn+hPOrpwT8+T0Al4ldQVb44n6pzN0OZfda+KZlPChfnRFyPMc85i NJygbUh+7/2UGucLt884UfeFHBJ2WUMDKxdXIZBvBWqO7v2peTvKLXYxzR3lgJXoqusVxw 78ht8sLDV2wfYX3vumNy2YgDYk4x2d8E3H2VeWkfu8y01q0KJOlm0DqgGPgqehE+qxeSzp wX4Dfx8XJZwWb2W4rtnuzQpNa3zdxTyJTFyGgeihIa8TN1kr+vwHgMUBmhYNNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=cee79df364e6e9f609c3bf738de8434b46a30d36 commit cee79df364e6e9f609c3bf738de8434b46a30d36 Author: Emmanuel Vadot AuthorDate: 2021-12-01 10:56:26 +0000 Commit: Emmanuel Vadot CommitDate: 2021-12-21 09:21:16 +0000 fb: Remove unused cursors ioctls The cursors related 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/D33217 (cherry picked from commit b9d3b253e2f7c4910bbd3844158a2a80f9a7ff4f) arm/freescale: remove FBIOSCURSOR Unbreaks building EFIKA_MX Fixes: b9d3b253e2f7c491 ("fb: Remove unused cursors ioctls") Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 793c74e415abf3c7e44c2df1472fdffde620f8e4) --- sys/arm/freescale/imx/imx51_ipuv3.c | 2 -- sys/dev/fb/fb.c | 5 ----- sys/dev/syscons/scvidctl.c | 5 ----- sys/sys/fbio.h | 38 ------------------------------------- 4 files changed, 50 deletions(-) diff --git a/sys/arm/freescale/imx/imx51_ipuv3.c b/sys/arm/freescale/imx/imx51_ipuv3.c index 520ace1a1b53..a29a562719d4 100644 --- a/sys/arm/freescale/imx/imx51_ipuv3.c +++ b/sys/arm/freescale/imx/imx51_ipuv3.c @@ -742,8 +742,6 @@ ipu3fb_ioctl(video_adapter_t *adp, u_long cmd, caddr_t data) fb->fb_cmsize = 1 << sc->depth; fb->fb_size = sc->fb_size; break; - case FBIOSCURSOR: - return (ENODEV); default: return (fb_commonioctl(adp, cmd, data)); } diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c index 8226c3317c6b..12423ad86f4f 100644 --- a/sys/dev/fb/fb.c +++ b/sys/dev/fb/fb.c @@ -738,11 +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 FBIOSCURSOR: - case FBIOGCURSOR: - case FBIOSCURPOS: - case FBIOGCURPOS: - case FBIOGCURMAX: case FBIOMONINFO: case FBIOGXINFO: diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c index c5881545f435..7c2b395d975b 100644 --- a/sys/dev/syscons/scvidctl.c +++ b/sys/dev/syscons/scvidctl.c @@ -614,11 +614,6 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) case FBIOPUTCMAP: case FBIOGETCMAP: case FBIOGTYPE: - case FBIOSCURSOR: - case FBIOGCURSOR: - case FBIOSCURPOS: - case FBIOGCURPOS: - case FBIOGCURMAX: if (scp != scp->sc->cur_scp) return ENODEV; /* XXX */ return fb_ioctl(adp, cmd, data); diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h index e6e9ede78e30..6b618777e84a 100644 --- a/sys/sys/fbio.h +++ b/sys/sys/fbio.h @@ -184,44 +184,6 @@ struct fbcmap { #define FBIOPUTCMAP _IOW('F', 3, struct fbcmap) #define FBIOGETCMAP _IOW('F', 4, struct fbcmap) -/* - * Hardware cursor control (for, e.g., CG6). A rather complex and icky - * interface that smells like VMS, but there it is.... - */ -struct fbcurpos { - short x; - short y; -}; - -struct fbcursor { - short set; /* flags; see below */ - short enable; /* nonzero => cursor on, 0 => cursor off */ - struct fbcurpos pos; /* position on display */ - struct fbcurpos hot; /* hot-spot within cursor */ - struct fbcmap cmap; /* cursor color map */ - struct fbcurpos size; /* number of valid bits in image & mask */ - caddr_t image; /* cursor image bits */ - caddr_t mask; /* cursor mask bits */ -}; -#define FB_CUR_SETCUR 0x01 /* set on/off (i.e., obey fbcursor.enable) */ -#define FB_CUR_SETPOS 0x02 /* set position */ -#define FB_CUR_SETHOT 0x04 /* set hot-spot */ -#define FB_CUR_SETCMAP 0x08 /* set cursor color map */ -#define FB_CUR_SETSHAPE 0x10 /* set size & bits */ -#define FB_CUR_SETALL (FB_CUR_SETCUR | FB_CUR_SETPOS | FB_CUR_SETHOT | \ - FB_CUR_SETCMAP | FB_CUR_SETSHAPE) - -/* controls for cursor attributes & shape (including position) */ -#define FBIOSCURSOR _IOW('F', 24, struct fbcursor) -#define FBIOGCURSOR _IOWR('F', 25, struct fbcursor) - -/* controls for cursor position only */ -#define FBIOSCURPOS _IOW('F', 26, struct fbcurpos) -#define FBIOGCURPOS _IOW('F', 27, struct fbcurpos) - -/* get maximum cursor size */ -#define FBIOGCURMAX _IOR('F', 28, struct fbcurpos) - /* * Video board information */