Commit Graph

16 Commits

Author SHA1 Message Date
n_hibma
6ee166cb62 Don't fail if less then MAXDEV /dev/usb\d+ entries exist. 2000-01-10 22:35:33 +00:00
kuriyama
14606a9a3d usbd.conf is in section 5, not 8. 1999-12-30 10:46:08 +00:00
obrien
3daedb32dd Add a missing '"' in the examples. 1999-12-17 06:04:37 +00:00
n_hibma
ec77c8ed33 Complain if we get an error that is not ENXIO while opening /dev/usb\d+
devices. For example, starting 'usbd -e' would give a 'No USB
controllers found' message instead of a '/dev/usb0: Permission denied'.

Submitted-By:  Dirk-Willem van Gulik <dirkx@webweaving.org>
1999-12-06 14:50:41 +00:00
n_hibma
66bb1ef94c Add the ability to match on device names attached to.
If a device is attached to ums4, you can reference this devname in
the configuration file as ${DEVNAME} (a shell variable, yes).
1999-11-28 21:27:31 +00:00
n_hibma
e0cf3d9b90 Avoid null dereference on verbose output.
Submitted-By: Doug Ambrisko <ambrisko@whistle.com>

Don't print a warning on exit status 0.
1999-11-24 19:18:57 +00:00
n_hibma
dc9f13f434 Flip the sequence of vendor, product around, to make it consistent
with the rest of the world. This avoids confusion when talking about
VID.PID.RID vs. PID.VID.RID. The former is the sequence normally used.
1999-11-22 19:08:36 +00:00
n_hibma
6bba2d7ce1 Clarify the functionality of usbd a bit more. 1999-11-22 19:04:58 +00:00
n_hibma
8e826fbb57 Add event queue handling. It triggers activities on events read from
/dev/usb. The actions are specified in the file /etc/usbd.conf.

usbd.c:
   - Add event queue (/dev/usb) handling.
   - Add comments
   - Clean up code some more

usbd.8:
   - Update manpage for the new command line flags
   - Remove a duplicate FreeBSD tag from it).

usbd.conf, usbd.conf.5, Makefile:
   - Add the usbd.conf configuration file and the man page for it.

NOTE: MAKEDEV already creates the /dev/usb device tree node, no change
needed there anymore.
1999-11-21 17:44:43 +00:00
n_hibma
bab819dcdd Cleanup of the code before we add a few thins.
- remove the use of NDEV. It is confusing. MAXUSBDEV should do.
- add some comments.
- add more explanation in usage()
- change the timeout value for undetected USB devices from 300 to 30
  seconds.  I don't think anyone wants to wait 5 minutes for broken
  devices to show up. The overhead CPU wise is very little.
- print 'no controllers found' as a fatal error.
- remove inclusion of malloc.h. It's unused.
1999-11-18 18:04:17 +00:00
peter
efabb9ccb1 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
nik
559bbb333e Add $Id$, to make it simpler for members of the translation teams to
track.

The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:12:29 +00:00
n_hibma
cb5131e1df Syncing with NetBSD version 1998/12/14 1999-04-11 21:03:28 +00:00
n_hibma
bb7a814654 Added Id 1998-12-14 09:40:15 +00:00
bde
2a43681c84 Made this actually work when there is an obj dir.
Removed bogons, especially the include of bsd.subdir.mk.

Fixed style bugs.
1998-12-13 15:52:26 +00:00
n_hibma
1f1ab4819c Initial commit of ported NetBSD USB stack 1998-11-26 23:13:13 +00:00