diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-11-21 17:44:43 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-11-21 17:44:43 +0000 |
commit | 8e826fbb578d38649959b6b64ece53cd8b855cbc (patch) | |
tree | 5fdcc59381b32577ef609d3f512cf95b0a157ea4 /etc | |
parent | ba8f82e935f9f8dedd683e1686829f526abed6a7 (diff) | |
download | FreeBSD-src-8e826fbb578d38649959b6b64ece53cd8b855cbc.zip FreeBSD-src-8e826fbb578d38649959b6b64ece53cd8b855cbc.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/usbd.conf | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/etc/usbd.conf b/etc/usbd.conf new file mode 100644 index 0000000..a91a69c --- /dev/null +++ b/etc/usbd.conf @@ -0,0 +1,35 @@ +# Configuration file the USB daemon. +# +# See usbd.conf(5) for the description of the format of the file. + +# Firmware download into the ActiveWire board. After the firmware download is done +# the device detaches and reappears as something new and shiny. +# +device "ActiveWire board, firmware download" + product 0x0100 + vendor 0x0854 + release 0x0000 + attach "/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex" + +# The piece below has to be copied for every drive. It does not work for the +# generic case, the umass storage class uses interface drivers. The info for +# the interfaces is not yet exported. +# +device "USB Zip drive" + product 0x0001 + vendor 0x059b + release 0x0100 + attach "/usr/bin/camcontrol rescan bus 0" + +# The entry below is for the Logitech mouse. Replace the product and vendor +# id (and the device name of course) with the data for your mouse. +# +device "Logitech N48 USB mouse" + product 0xc001 + vendor 0x046d + attach "/usr/sbin/moused -p /dev/ums0 -I /var/run/moused.ums0.pid" + +# The fallthrough entry: Nothing is specified, nothing is done. And it isn't +# necessary at all :-). Just for pretty printing in debugging mode. +# +device "USB device" |