Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 mark several interfaces as internal, most of ...



details:   https://anonhg.NetBSD.org/src/rev/bd248301da91
branches:  trunk
changeset: 787306:bd248301da91
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 10 05:11:20 2013 +0000

description:
mark several interfaces as internal, most of which have other exported
APIs for their use.

diffstat:

 share/man/man9/usbdi.9 |  45 ++++++++++++++++++++++++---------------------
 1 files changed, 24 insertions(+), 21 deletions(-)

diffs (95 lines):

diff -r e11b77deec71 -r bd248301da91 share/man/man9/usbdi.9
--- a/share/man/man9/usbdi.9    Mon Jun 10 05:09:34 2013 +0000
+++ b/share/man/man9/usbdi.9    Mon Jun 10 05:11:20 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: usbdi.9,v 1.26 2013/01/22 15:52:17 wiz Exp $
+.\"    $NetBSD: usbdi.9,v 1.27 2013/06/10 05:11:20 mrg Exp $
 .\"
 .\" Copyright (c) 2012 Matthew R. Green
 .\" All rights reserved.
@@ -150,8 +150,9 @@
 .Ft int
 .Fn usbd_get_no_alts "usb_config_descriptor_t *iface" "int ifaceno"
 .Ft usbd_status
-.Fn usbd_get_interface "usbd_interface_handle iface" "uint8_t *aiface"
-.Ft void
+.\" unused, delete?
+.\" .Fn usbd_get_interface "usbd_interface_handle iface" "uint8_t *aiface"
+.\" .Ft void
 .Fn usbd_fill_deviceinfo "usbd_device_handle dev" "struct usb_device_info *di"
 .Ft int
 .Fn usbd_get_interface_altindex "usbd_interface_handle iface"
@@ -253,8 +254,9 @@
 .Ft usbd_status
 .Fn usbd_alloc_report_desc "usbd_interface_handle ifc" "void **descp" \
  "int *sizep" "int mem"
-.Ft usbd_status
-.Fn usbd_get_config "usbd_device_handle dev" "uint8_t *conf"
+.\" private API between ugen(4) and usbdi(9)
+.\" .Ft usbd_status
+.\" .Fn usbd_get_config "usbd_device_handle dev" "uint8_t *conf"
 .Ft usbd_status
 .Fn usbd_get_string_desc "usbd_device_handle dev" "int sindex" "int langid" \
  "usb_string_descriptor_t *sdesc"
@@ -388,8 +390,8 @@
 .\" .Fn usbd_get_interface_descriptor "usbd_interface_handle iface"
 .\" .Fn usbd_get_config_descriptor "usbd_device_handle dev"
 .\" .Fn usbd_get_device_descriptor "usbd_device_handle dev"
-.\" .Fn usbd_set_interface "usbd_interface_handle iface" "int altidx"
 .\" .Fn usbd_get_no_alts "usb_config_descriptor_t *iface" "int ifaceno"
+.\" unused, delete?
 .\" .Fn usbd_get_interface "usbd_interface_handle iface" "uint8_t *aiface"
 .\" .Fn usbd_fill_deviceinfo "usbd_device_handle dev" "struct usb_device_info *di"
 .\" .Fn usbd_get_interface_altindex "usbd_interface_handle iface"
@@ -465,8 +467,6 @@
 .\" .Fn usbd_alloc_report_desc "usbd_interface_handle ifc" "void **descp" \
 .\"  "int *sizep" "int mem"
 .\" .Ft usbd_status
-.\" .Fn usbd_get_config "usbd_device_handle dev" "uint8_t *conf"
-.\" .Ft usbd_status
 .\" .Fn usbd_get_string_desc "usbd_device_handle dev" "int sindex" "int langid" \
 .\"  "usb_string_descriptor_t *sdesc"
 .\" .Ft void
@@ -776,11 +776,15 @@
 .It Dv UR_SET_ADDRESS
 .It Dv UR_GET_DESCRIPTOR
 .It Dv UR_SET_DESCRIPTOR
-.It Dv UR_GET_CONFIG
-.It Dv UR_SET_CONFIG
-.It Dv UR_GET_INTERFACE
-.It Dv UR_SET_INTERFACE
-.It Dv UR_SYNCH_FRAME
+.\" these have API front ends
+.\" .It Dv UR_GET_CONFIG
+.\"  api usbd_get_config() (ugen private)
+.\" .It Dv UR_SET_CONFIG
+.\"  static api usbd_set_config() (usb_subr private)
+.\" .It Dv UR_GET_INTERFACE
+.\" .It Dv UR_SET_INTERFACE
+.\" this isn't supported
+.\" .It Dv UR_SYNCH_FRAME
 .El
 .Pp
 The
@@ -870,14 +874,13 @@
 .It Dv UDESC_CS_ENDPOINT
 .It Dv UDESC_HUB
 .El
-.\".Pp
-.\" these have API front ends
-.\" .It Dv UR_GET_CONFIG
-.\" .It Dv UR_SET_CONFIG
-.\" .It Dv UR_GET_INTERFACE
-.\" .It Dv UR_SET_INTERFACE
-.\" this isn't supported
-.\" .It Dv UR_SYNCH_FRAME
+.Pp
+The
+.\" XXXMRG is the below even remotely valid?
+.Fn usbd_set_interface
+function can be used to change the index used for transfers on this
+interface as obtained via
+.Fn usbd_device2interface_handle .
 .Sh USB DEVICE DETACHMENT
 There are two functions available to ease the detach of active devices.
 Typically a reference count is maintained on syscall activity.



Home | Main Index | Thread Index | Old Index