general cleanup. remove bits that don't exist Reference: /n/atom/patch/applied2013/usb4clean Date: Sun Dec 29 15:27:40 CET 2013 Signed-off-by: quanstro@quanstro.net --- /sys/man/4/usb Sun Dec 29 15:27:31 2013 +++ /sys/man/4/usb Sun Dec 29 15:27:32 2013 @@ -1,7 +1,6 @@ .TH USB 4 .SH NAME audio, -ccid, disk, ether, kb, @@ -9,7 +8,8 @@ probe, serial, usbeject, -usbfat: +usbfat +usbsd \- Universal Serial Bus device drivers .SH SYNOPSIS .B usb/kb @@ -45,6 +45,8 @@ .I disk ... ] .PP +.B usbsd +.PP .B usb/audio [ .B -dpV @@ -94,24 +96,6 @@ .I dev ... ] .PP -.B usb/ccid -[ -.B -d -] -.ig -.PP -.B usb/ibuddy -[ -.B -Dd -] [ -.B -m -.I mnt -] [ -.B -s -.I srv -] [ -.I dev ... -] .. .B usb/probe .SH DESCRIPTION @@ -235,13 +219,14 @@ .BI sdU N unmounts all partitions from disk with USB target .IR N . -.ig -An argument -.BI sdU N . M -or -.BI sdU N . M . P -.\" TODO: fill in missing words -.. +The script +.B usbsd +uses +.IR sdloop (3) +to present a USB disk as a +.IR sd (3) +device and partition it as per +.IR prep (8). .SS Printers .I Print provides a single file can be written to print on a USB printer. @@ -401,7 +386,7 @@ secondarily by channel. Samples occupy the minimum integral number of bytes. Read and write operations of arbitrary size are allowed. -. +.ig .SS Ccid .I Ccid discovers and configures SIM or SAM cards using the CCID standard. @@ -435,54 +420,6 @@ When the smartcard disappears, all reads and write fail until the file is reopened and a new ATR is written to it. -. -.ig -.SS Ibuddy -.PP -Ibuddy supports a USB I-buddy toy, a little winged-demon. -The driver provides one directory per attached toy with a single -.BR ctl -file to control the device. -Directories are named -.BR ibuddyN , -being -.I N -the corresponding usb device number. -When read, the -.BR ctl -file provides the state of the device in this form: -.IP -.EX -hips right|left -wings open|close -red on|off -green on|off -blue on|off -heart on|off -.EE -.PP -Each line describes the status of one feature. -.IR Red , -.IR blue , -and -.IR green -are the different leds in the head of -the toy. -.IR Heart -represents the red led in the chest of -the toy. -.IR Wings -represents the status of the wings, which -can be closed or open. -.IR Hips -represents the orientation -of the toy (left or right, from the figure's point of view). -.PP -Lines can be written to the -.BR ctl -file to command the device. -Multiple lines (six at most) can be written -at once, with one action per line. .. .SH SOURCE .B /sys/src/cmd/usb @@ -490,6 +427,7 @@ .IR kbin (3), .IR mouse (3), .IR sd (3), +.IR sdloop (3), .IR uart (3), .IR usb (3), .IR usbd (4),