Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Remove uyurex(4).



details:   https://anonhg.NetBSD.org/src/rev/7d441153f3a6
branches:  trunk
changeset: 467197:7d441153f3a6
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Jan 17 15:00:20 2020 +0000

description:
Remove uyurex(4).

This is a driver for a "nonsense machine" made by the art group Maywa-Denki
in 2008. It was disabled by default.

Unfortunately even so it draws development attention (flaws found in the
code, MP-ification needs) and it is best not to continue to maintain this
driver.

Proposed without objections on tech-kern.

diffstat:

 distrib/sets/lists/man/mi     |    5 +-
 share/man/man4/Makefile       |    3 +-
 share/man/man4/uyurex.4       |   53 -----
 sys/arch/amd64/conf/ALL       |    6 +-
 sys/arch/i386/conf/ALL        |    6 +-
 sys/dev/DEVNAMES              |    3 +-
 sys/dev/usb/TODO.usbmp        |    7 +-
 sys/dev/usb/files.usb         |    7 +-
 sys/dev/usb/uyurex.c          |  386 ------------------------------------------
 usr.sbin/makemandb/nostem.txt |    1 -
 10 files changed, 9 insertions(+), 468 deletions(-)

diffs (truncated from 635 to 300 lines):

diff -r 43999daaaf15 -r 7d441153f3a6 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Fri Jan 17 13:54:47 2020 +0000
+++ b/distrib/sets/lists/man/mi Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1668 2020/01/01 10:11:21 ryo Exp $
+# $NetBSD: mi,v 1.1669 2020/01/17 15:00:20 maya Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -1928,7 +1928,6 @@
 ./usr/share/man/cat4/uvisor.0                  man-sys-catman          .cat
 ./usr/share/man/cat4/uvscom.0                  man-sys-catman          .cat
 ./usr/share/man/cat4/uyap.0                    man-sys-catman          .cat
-./usr/share/man/cat4/uyurex.0                  man-sys-catman          .cat
 ./usr/share/man/cat4/vald.0                    man-sys-catman          .cat
 ./usr/share/man/cat4/valz.0                    man-sys-catman          .cat
 ./usr/share/man/cat4/vax/acc.0                 man-sys-catman          .cat
@@ -5037,7 +5036,6 @@
 ./usr/share/man/html4/uvisor.html              man-sys-htmlman         html
 ./usr/share/man/html4/uvscom.html              man-sys-htmlman         html
 ./usr/share/man/html4/uyap.html                        man-sys-htmlman         html
-./usr/share/man/html4/uyurex.html              man-sys-htmlman         html
 ./usr/share/man/html4/vald.html                        man-sys-htmlman         html
 ./usr/share/man/html4/valz.html                        man-sys-htmlman         html
 ./usr/share/man/html4/vax/acc.html             man-sys-htmlman         html
@@ -8070,7 +8068,6 @@
 ./usr/share/man/man4/uvisor.4                  man-sys-man             .man
 ./usr/share/man/man4/uvscom.4                  man-sys-man             .man
 ./usr/share/man/man4/uyap.4                    man-sys-man             .man
-./usr/share/man/man4/uyurex.4                  man-sys-man             .man
 ./usr/share/man/man4/vald.4                    man-sys-man             .man
 ./usr/share/man/man4/valz.4                    man-sys-man             .man
 ./usr/share/man/man4/vax/acc.4                 man-sys-man             .man
diff -r 43999daaaf15 -r 7d441153f3a6 share/man/man4/Makefile
--- a/share/man/man4/Makefile   Fri Jan 17 13:54:47 2020 +0000
+++ b/share/man/man4/Makefile   Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.693 2020/01/01 10:11:21 ryo Exp $
+#      $NetBSD: Makefile,v 1.694 2020/01/17 15:00:20 maya Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
 MAN=   aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -88,7 +88,6 @@
        uplcom.4 ure.4 urio.4 url.4 urndis.4 urtw.4 urtwn.4 \
        usb.4 usbnet.4 uscanner.4 uslsa.4 usmsc.4 usscanner.4 \
        ustir.4 uthum.4 utoppy.4 uts.4 uvideo.4 uvisor.4 uvscom.4 uyap.4 \
-       uyurex.4 \
        xhci.4 \
 
 # Ir devices
diff -r 43999daaaf15 -r 7d441153f3a6 share/man/man4/uyurex.4
--- a/share/man/man4/uyurex.4   Fri Jan 17 13:54:47 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-.\"    $NetBSD: uyurex.4,v 1.6 2017/07/03 21:30:58 wiz Exp $
-.\"    $OpenBSD: uyurex.4,v 1.2 2010/03/01 09:36:24 jmc Exp $
-.\"
-.\" Copyright (c) 2010 Yojiro UO <yuo%nui.org@localhost>
-.\"
-.\" Permission to use, copy, modify, and distribute this software for any
-.\" purpose with or without fee is hereby granted, provided that the above
-.\" copyright notice and this permission notice appear in all copies.
-.\"
-.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.Dd March 11, 2010
-.Dt UYUREX 4
-.Os
-.Sh NAME
-.Nm uyurex
-.Nd YUREX USB twitch/jiggle of knee sensor
-.Sh SYNOPSIS
-.Cd "uyurex* at uhidev? reportid ?"
-.Sh DESCRIPTION
-The
-.Nm
-driver provides support for the Maywa-denki & KAYAC YUREX device.
-The device has a sensor to count user's leg twitch and it
-possesses a collection of sensor values which are
-made available through the
-.Xr envstat 8
-command.
-The counter unit for twitch is "BBU" (BinBo-YUsuri or
-Bounding Body from Unconsciousness) and the unit for BBU speed
-is "mBBU/sec" (milli BBU per second).
-.Sh SEE ALSO
-.Xr envsys 4 ,
-.Xr intro 4 ,
-.Xr uhidev 4 ,
-.Xr envstat 8 ,
-.Xr sysmon_envsys 9
-.Rs
-.%T The YUREX Web Page
-.%U http://bbu.kayac.com/en/about/
-.Re
-.Sh AUTHORS
-.An -nosplit
-The
-.Nm
-driver was written by
-.An Yojiro UO Aq Mt yuo%nui.org@localhost .
diff -r 43999daaaf15 -r 7d441153f3a6 sys/arch/amd64/conf/ALL
--- a/sys/arch/amd64/conf/ALL   Fri Jan 17 13:54:47 2020 +0000
+++ b/sys/arch/amd64/conf/ALL   Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.135 2020/01/01 10:36:43 ryo Exp $
+# $NetBSD: ALL,v 1.136 2020/01/17 15:00:20 maya Exp $
 # From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
 #
 # ALL machine description file
@@ -17,7 +17,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident         "ALL-$Revision: 1.135 $"
+#ident         "ALL-$Revision: 1.136 $"
 
 maxusers       64              # estimated number of users
 
@@ -1182,8 +1182,6 @@
 uatp*  at uhidev? reportid ?
 wsmouse* at uatp? mux 0
 
-uyurex* at uhidev? reportid ?
-
 # USB Keyboards
 ukbd*  at uhidev? reportid ?
 wskbd* at ukbd? console ? mux 1
diff -r 43999daaaf15 -r 7d441153f3a6 sys/arch/i386/conf/ALL
--- a/sys/arch/i386/conf/ALL    Fri Jan 17 13:54:47 2020 +0000
+++ b/sys/arch/i386/conf/ALL    Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.479 2020/01/01 10:36:43 ryo Exp $
+# $NetBSD: ALL,v 1.480 2020/01/17 15:00:20 maya Exp $
 # From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
 #
 # ALL machine description file
@@ -17,7 +17,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident         "ALL-$Revision: 1.479 $"
+#ident         "ALL-$Revision: 1.480 $"
 
 maxusers       64              # estimated number of users
 
@@ -1285,8 +1285,6 @@
 uatp*  at uhidev? reportid ?
 wsmouse* at uatp? mux 0
 
-uyurex* at uhidev? reportid ?
-
 # USB Keyboards
 ukbd*  at uhidev? reportid ?
 wskbd* at ukbd? console ? mux 1
diff -r 43999daaaf15 -r 7d441153f3a6 sys/dev/DEVNAMES
--- a/sys/dev/DEVNAMES  Fri Jan 17 13:54:47 2020 +0000
+++ b/sys/dev/DEVNAMES  Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: DEVNAMES,v 1.325 2019/11/01 02:53:23 msaitoh Exp $
+#      $NetBSD: DEVNAMES,v 1.326 2020/01/17 15:00:20 maya Exp $
 #
 # This file contains all used device names and defined attributes in
 # alphabetical order. New devices added to the system somewhere should first
@@ -1441,7 +1441,6 @@
 uvisor                 MI
 uvscom                 MI
 uyap                   MI
-uyurex                 MI
 va                     vax
 vcons                  MI              Attribute
 veriexec               MI
diff -r 43999daaaf15 -r 7d441153f3a6 sys/dev/usb/TODO.usbmp
--- a/sys/dev/usb/TODO.usbmp    Fri Jan 17 13:54:47 2020 +0000
+++ b/sys/dev/usb/TODO.usbmp    Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.usbmp,v 1.16 2019/08/23 07:29:29 mrg Exp $
+$NetBSD: TODO.usbmp,v 1.17 2020/01/17 15:00:20 maya Exp $
 
 
 the majority of the USB MP device interface is documented in usbdivar.h.
@@ -54,9 +54,6 @@
   pbms(4)
   - depends upon wscons? check intr
 
-  uyurex(4)
-  - sysmon -- hm?
-
 splusb drivers to convert:
   - auvitek_dtv.c
   - auvitek_video.c
@@ -100,7 +97,6 @@
   - ustir.c
   - uthum.c
   - uvscom.c
-  - uyurex.c
 
 missing D_MPSAFE drivers:
   - ucom
@@ -124,7 +120,6 @@
   - if_zyd.c
   - ukbd.c
   - ulpt.c
-  - uyurex.c
 
 driver testing:                STATUS
   - uhub               working
diff -r 43999daaaf15 -r 7d441153f3a6 sys/dev/usb/files.usb
--- a/sys/dev/usb/files.usb     Fri Jan 17 13:54:47 2020 +0000
+++ b/sys/dev/usb/files.usb     Fri Jan 17 15:00:20 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.usb,v 1.168 2019/09/20 10:34:54 mrg Exp $
+#      $NetBSD: files.usb,v 1.169 2020/01/17 15:00:20 maya Exp $
 #
 # Config file and device description for machine-independent USB code.
 # Included by ports that need it.  Ports that use it must provide
@@ -528,11 +528,6 @@
 attach uhso at usbdevif
 file   dev/usb/uhso.c                  uhso
 
-# Maywa-denki/Kayac YUREX
-device uyurex: hid
-attach uyurex at uhidbus
-file   dev/usb/uyurex.c                uyurex
-
 # Microsoft RNDIS
 device urndis: arp, ether, ifnet, usbnet
 attach urndis at usbifif
diff -r 43999daaaf15 -r 7d441153f3a6 sys/dev/usb/uyurex.c
--- a/sys/dev/usb/uyurex.c      Fri Jan 17 13:54:47 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,386 +0,0 @@
-/*     $NetBSD: uyurex.c,v 1.16 2019/05/05 03:17:54 mrg Exp $ */
-/*     $OpenBSD: uyurex.c,v 1.3 2010/03/04 03:47:22 deraadt Exp $ */
-
-/*
- * Copyright (c) 2010 Yojiro UO <yuo%nui.org@localhost>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * Driver for Maywa-Denki & KAYAC YUREX BBU sensor
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uyurex.c,v 1.16 2019/05/05 03:17:54 mrg Exp $");
-
-#ifdef _KERNEL_OPT
-#include "opt_usb.h"
-#endif
-
-#include <sys/param.h>
-#include <sys/proc.h>
-#include <sys/systm.h>
-#include <sys/kernel.h>
-#include <sys/kmem.h>
-#include <sys/device.h>
-#include <sys/conf.h>
-#include <sys/envsys.h>
-
-#include <dev/sysmon/sysmonvar.h>
-
-#include <dev/usb/usb.h>
-#include <dev/usb/usbhid.h>
-#include <dev/usb/usbdi.h>
-#include <dev/usb/usbdi_util.h>
-#include <dev/usb/usbdevs.h>
-#include <dev/usb/uhidev.h>
-#include <dev/hid/hid.h>
-
-#define        CMD_NONE        0xf0
-#define CMD_EOF                0x0d
-#define CMD_ACK                0x21
-#define        CMD_MODE        0x41 /* XXX */
-#define        CMD_VALUE       0x43
-#define CMD_READ       0x52
-#define CMD_WRITE      0x53
-#define CMD_PADDING    0xff
-
-#define UPDATE_TICK    5 /* sec */
-
-#ifdef UYUREX_DEBUG
-int    uyurexdebug = 0;



Home | Main Index | Thread Index | Old Index