From 73fd2d85ccd52fd646e4a221d431b4a70697cf04 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 12 Jul 2017 22:16:54 +0000 Subject: [PATCH] Add deprecation notices for various device drivers removed in 12.0. This is a direct commit to stable/10 since these files have already been removed in head. git-svn-id: svn://svn.freebsd.org/base/stable/10@320923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- share/man/man4/digi.4 | 7 ++++++- share/man/man4/man4.i386/ie.4 | 7 ++++++- share/man/man4/man4.i386/wl.4 | 7 ++++++- share/man/man4/mcd.4 | 7 ++++++- share/man/man4/scd.4 | 7 ++++++- share/man/man4/si.4 | 7 ++++++- share/man/man4/spic.4 | 7 ++++++- sys/dev/digi/digi.c | 2 ++ sys/dev/ie/if_ie.c | 2 ++ sys/dev/mcd/mcd.c | 2 ++ sys/dev/scd/scd.c | 2 ++ sys/dev/si/si.c | 2 ++ sys/dev/wl/if_wl.c | 2 ++ sys/i386/isa/spic.c | 2 ++ usr.sbin/sicontrol/sicontrol.8 | 7 ++++++- usr.sbin/wlconfig/wlconfig.8 | 7 ++++++- 16 files changed, 68 insertions(+), 9 deletions(-) diff --git a/share/man/man4/digi.4 b/share/man/man4/digi.4 index f84ac78e0..0363dd2aa 100644 --- a/share/man/man4/digi.4 +++ b/share/man/man4/digi.4 @@ -37,7 +37,7 @@ .\" from: sio.4,v 1.15 1994/12/06 20:14:30 bde Exp .\" $FreeBSD$ .\" -.Dd December 7, 2003 +.Dd July 8, 2017 .Dt DIGI 4 .Os .Sh NAME @@ -84,6 +84,11 @@ Device numbering: \fBI\fPnitial \fBPPPPP\fPort number .Ed +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm diff --git a/share/man/man4/man4.i386/ie.4 b/share/man/man4/man4.i386/ie.4 index 2ef9d0566..f58815f54 100644 --- a/share/man/man4/man4.i386/ie.4 +++ b/share/man/man4/man4.i386/ie.4 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 16, 2005 +.Dd July 8, 2017 .Dt IE 4 i386 .Os .Sh NAME @@ -52,6 +52,11 @@ In .Cd hint.ie.0.port="0x300" .Cd hint.ie.0.irq="5" .Cd hint.ie.0.maddr="0xd0000" +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh HARDWARE The .Nm diff --git a/share/man/man4/man4.i386/wl.4 b/share/man/man4/man4.i386/wl.4 index a1eacdabc..468fb553f 100644 --- a/share/man/man4/man4.i386/wl.4 +++ b/share/man/man4/man4.i386/wl.4 @@ -29,7 +29,7 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD$ -.Dd September 29, 2006 +.Dd July 8, 2017 .Dt WL 4 i386 .Os .Sh NAME @@ -37,6 +37,11 @@ .Nd T1 speed ISA/radio lan card .Sh SYNOPSIS .Cd "device wl0 at isa? port 0x300 irq 5" +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm diff --git a/share/man/man4/mcd.4 b/share/man/man4/mcd.4 index 8efa7db6f..380a966a7 100644 --- a/share/man/man4/mcd.4 +++ b/share/man/man4/mcd.4 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 8, 1994 +.Dd July 8, 2017 .Dt MCD 4 .Os .Sh NAME @@ -40,6 +40,11 @@ In .Cd hint.mcd.0.at="isa" .Cd hint.mcd.0.port="0x300" .Cd hint.mcd.0.irq="10" +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm diff --git a/share/man/man4/scd.4 b/share/man/man4/scd.4 index dbbb18f35..1bc366c09 100644 --- a/share/man/man4/scd.4 +++ b/share/man/man4/scd.4 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 17, 2008 +.Dd July 8, 2017 .Dt SCD 4 .Os .Sh NAME @@ -39,6 +39,11 @@ In .Pa /boot/device.hints : .Cd hint.scd.0.at="isa" .Cd hint.scd.0.port="0x230" +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm diff --git a/share/man/man4/si.4 b/share/man/man4/si.4 index 5eb7629d9..e8e48dea1 100644 --- a/share/man/man4/si.4 +++ b/share/man/man4/si.4 @@ -1,5 +1,5 @@ .\" $FreeBSD$ -.Dd September 16, 1995 +.Dd July 8, 2017 .Dt SI 4 .Os .Sh NAME @@ -13,6 +13,11 @@ For ISA host cards put the following lines in .Cd hint.si.0.at="isa" .Cd hint.si.0.maddr="0xd0000" .Cd hint.si.0.irq="12" +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh DESCRIPTION The Specialix SI/XIO and SX hardware makes up an 8 to 32 port RS-232 serial multiplexor. diff --git a/share/man/man4/spic.4 b/share/man/man4/spic.4 index a398007f8..9d6fd281f 100644 --- a/share/man/man4/spic.4 +++ b/share/man/man4/spic.4 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 20, 2002 +.Dd July 8, 2017 .Dt SPIC 4 .Os .Sh NAME @@ -33,6 +33,11 @@ .Nd Sony Programmable I/O Controller device driver .Sh SYNOPSIS .Cd "device spic" +.Sh DEPRECATION NOTICE +The +.Nm +driver will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index 7adc72a39..1d861b84c 100644 --- a/sys/dev/digi/digi.c +++ b/sys/dev/digi/digi.c @@ -1458,6 +1458,8 @@ digi_attach(struct digi_softc *sc) digi_loadmoduledata(sc); digi_init(sc); digi_freemoduledata(sc); + device_printf(dev, + "WARNING: This driver is deprecated and will be removed.\n"); return (0); } diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index cf9145319..b1a066289 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -326,6 +326,8 @@ ie_attach(device_t dev) mtx_destroy(&sc->lock); return (error); } + device_printf(dev, + "WARNING: This driver is deprecated and will be removed.\n"); return (0); } diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 966acc2e5..f5562fbb3 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -206,6 +206,8 @@ mcd_attach(struct mcd_softc *sc) UID_ROOT, GID_OPERATOR, 0640, "mcd%d", unit); sc->mcd_dev_t->si_drv1 = (void *)sc; + device_printf(sc->dev, + "WARNING: This driver is deprecated and will be removed.\n"); return (0); } diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 0175db620..244a33734 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -172,6 +172,8 @@ scd_attach(struct scd_softc *sc) sc->scd_dev_t = make_dev(&scd_cdevsw, 8 * unit, UID_ROOT, GID_OPERATOR, 0640, "scd%d", unit); sc->scd_dev_t->si_drv1 = (void *)sc; + device_printf(sc->dev, + "WARNING: This driver is deprecated and will be removed.\n"); return (0); } diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index c9d1c8311..0e3981023 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -605,6 +605,8 @@ try_next2: if (unit == 0) make_dev(&si_Scdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "si_control"); + device_printf(dev, + "WARNING: This driver is deprecated and will be removed.\n"); return (0); } diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index c6db4b9f1..80bd7f099 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -575,6 +575,8 @@ wlattach(device_t device) if (bootverbose) wldump(sc); + device_printf(device, + "WARNING: This driver is deprecated and will be removed.\n"); return (0); } diff --git a/sys/i386/isa/spic.c b/sys/i386/isa/spic.c index 70c1cc15b..f9769b7eb 100644 --- a/sys/i386/isa/spic.c +++ b/sys/i386/isa/spic.c @@ -346,6 +346,8 @@ spic_attach(device_t dev) /* There can be only one */ make_dev(&spic_cdevsw, 0, 0, 0, 0600, "jogdial"); + device_printf(dev, + "WARNING: This driver is deprecated and will be removed.\n"); return 0; } diff --git a/usr.sbin/sicontrol/sicontrol.8 b/usr.sbin/sicontrol/sicontrol.8 index a3aa87a19..88273b3d1 100644 --- a/usr.sbin/sicontrol/sicontrol.8 +++ b/usr.sbin/sicontrol/sicontrol.8 @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.Dd September 26, 1995 +.Dd July 8, 2017 .Dt SICONTROL 8 .Os .Sh NAME @@ -10,6 +10,11 @@ .Nm device .Ar command Op Ar param ... +.Sh DEPRECATION NOTICE +The +.Nm +utility will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm diff --git a/usr.sbin/wlconfig/wlconfig.8 b/usr.sbin/wlconfig/wlconfig.8 index b4483394d..cdeddf9ed 100644 --- a/usr.sbin/wlconfig/wlconfig.8 +++ b/usr.sbin/wlconfig/wlconfig.8 @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.Dd December 26, 1996 +.Dd July 8, 2017 .Dt WLCONFIG 8 i386 .Os .Sh NAME @@ -10,6 +10,11 @@ .Nm .Ar ifname .Op Ar param value ... +.Sh DEPRECATION NOTICE +The +.Nm +utility will be removed in +.Fx 12.0 . .Sh DESCRIPTION The .Nm -- 2.42.0