summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-08-18 02:14:52 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-08-18 02:14:52 +0200
commit1f80ddafb8dc676b5b281be4dfc787d278a1498a (patch)
tree2eddfb6c5e3c38d954c69d376dec09e7e8b7af1d /sys
parent50bdbb8f48b7bcfc05f201c4e1bf04d09b76f139 (diff)
nusb(4): nusb/serial is different, add ptp
Diffstat (limited to 'sys')
-rw-r--r--sys/man/4/nusb29
1 files changed, 18 insertions, 11 deletions
diff --git a/sys/man/4/nusb b/sys/man/4/nusb
index 29fd76b7a..cc9d0b494 100644
--- a/sys/man/4/nusb
+++ b/sys/man/4/nusb
@@ -139,24 +139,26 @@ file supplies the device geometry and partitions when read.
.I Serial
provides a file system (usually seen at
.BR /dev )
-that includes one directory per USB serial port, named
-.BI eiaU N
-or
-.BI eiaU N . M.
-In this directory there are two files,
-.BR eiaU ,
+that includes two files,
+.BI eiaU N ,
similar to
.BI eia N
in
-.IR uart (3),
+.IR uart (3)
+but where
+.I N
+is the
+.I devid
+or
+.IR devid . lun,
and
-.BR eiaUctl ,
+.BI eiaU N ctl,
which admits writes in the same format as
.BI eia N ctl
in
.IR uart (3).
Reading from
-.B eiaUctl
+.BI eiaU N ctl
gives the serial port's settings in the same format as
.BI eia N status
in
@@ -166,9 +168,9 @@ Options are similar to those of
.PP
JTAG ports are similar
but the files are named
-.B jtag
+.BI jtag N
and
-.BR jtagctl .
+.BI jtag N ctl .
.
.SS Audio devices
.I Audio
@@ -179,6 +181,11 @@ containing files
.BR volume
and
.BR audio .
+.SS Ptp devices
+.I Ptp
+supports PTP (picture transfer protocol) devices like cameras.
+The filesystem can be accessed under
+.BI /shr/sdU devid .0 .
.SH SOURCE
.B /sys/src/cmd/nusb
.SH "SEE ALSO"