Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Only pull in HID processing if a driver needs it.



details:   https://anonhg.NetBSD.org/src/rev/5b988b56d23a
branches:  trunk
changeset: 519859:5b988b56d23a
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Dec 29 10:50:55 2001 +0000

description:
Only pull in HID processing if a driver needs it.

diffstat:

 sys/dev/usb/files.usb |  21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diffs (63 lines):

diff -r bb3e81323bb0 -r 5b988b56d23a sys/dev/usb/files.usb
--- a/sys/dev/usb/files.usb     Sat Dec 29 09:26:23 2001 +0000
+++ b/sys/dev/usb/files.usb     Sat Dec 29 10:50:55 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.usb,v 1.36 2001/12/28 17:32:36 augustss Exp $
+#      $NetBSD: files.usb,v 1.37 2001/12/29 10:50:55 augustss Exp $
 #
 # Config file and device description for machine-independent USB code.
 # Included by ports that need it.  Ports that use it must provide
@@ -8,7 +8,6 @@
 
 device usb { }
 attach usb at usbus
-file   dev/usb/hid.c                   usb
 file   dev/usb/usb.c                   usb                     needs-flag
 file   dev/usb/usbdi.c                 usb
 file   dev/usb/usbdi_util.c            usb
@@ -27,9 +26,6 @@
 # Modem and com serial port "bus"
 define ucombus {[ portno = -1 ]}
 
-# HID "bus"
-define uhidbus {[ reportid = -1 ]}
-
 # EZ-USB firmware loader
 define ezload
 file   dev/usb/ezload.c                ezload
@@ -58,24 +54,31 @@
 
 
 # HID
+# HID "bus"
+define uhidbus {[ reportid = -1 ]}
+
+# HID processing
+define hid
+file   dev/usb/hid.c                   hid
+
 # HID root device for multiple report IDs
-device uhidev: uhidbus
+device uhidev: hid, uhidbus
 attach uhidev at uhub
 file   dev/usb/uhidev.c                uhidev
 
 # Generic HID devices
-device uhid
+device uhid: hid
 attach uhid at uhidbus
 file   dev/usb/uhid.c                  uhid                    needs-flag
 
 # Keyboards
-device ukbd: wskbddev
+device ukbd: hid, wskbddev
 attach ukbd at uhidbus
 file   dev/usb/ukbd.c                  ukbd                    needs-flag
 file   dev/usb/ukbdmap.c               ukbd
 
 # Mice
-device ums: wsmousedev
+device ums: hid, wsmousedev
 attach ums at uhidbus
 file   dev/usb/ums.c                   ums
 



Home | Main Index | Thread Index | Old Index