Index: share/man/man4/usb_template.4 =================================================================== --- share/man/man4/usb_template.4 +++ share/man/man4/usb_template.4 @@ -32,7 +32,7 @@ . .Nm usb_template . -.Nd "USB templates" +.Nd "USB device side templates" . . .Sh SYNOPSIS @@ -62,16 +62,33 @@ The USB template module currently has templates for USB Mass Storage, USB CDC Ethernet and Message Transfer Protocol. . -USB templates are currently selected using the "hw.usb.template" -sysctl. +USB templates are currently selected using the +.Va hw.usb.template +sysctl and tunable. . -The "hw.usb.template" value can be changed at any time, but will not +The +.Va hw.usb.template +value can be changed at any time, but will not have any effect until the USB device has been re-enumerated. . -. +Available templates are: +.Bl -column -offset 3n "Value" +.It Em Value Ta Em Description +.It Dv 0 Ta Mass Storage +.It Dv 1 Ta CDC Ethernet +.It Dv 2 Ta Media Transfer Protocol +.It Dv 3 Ta serial port +.It Dv 4 Ta audio +.It Dv 5 Ta keyboard +.It Dv 6 Ta mouse +.It Dv 7 Ta phone +.It Dv 8 Ta CDC Ethernet and serial port +.It Dv 9 Ta MIDI +.El . .Sh SEE ALSO -.Xr usb 4 +.Xr usb 4 , +.Xr usfs 4 .Sh STANDARDS The .Nm Index: share/man/man4/usfs.4 =================================================================== --- share/man/man4/usfs.4 +++ share/man/man4/usfs.4 @@ -50,12 +50,17 @@ The .Nm driver provides support for emulating an USB mass storage device when -the USB stack is activated in USB device side mode. +the USB stack is activated in USB device side mode (the +.Xr usb_template 4 +module is loaded and the +.Va hw.usb.template +sysctl is set to 0). .Pp Upon attach the driver creates a RAM disk which can be read and written. .Sh SEE ALSO .Xr umass 4 , -.Xr usb 4 +.Xr usb 4 , +.Xr usb_template 4 .Sh HISTORY The .Nm