The stuff below should only be available to other usbcore components; no device driver should ever call this stuff. It belongs in "hcd.h" not "usb.h".
It'd be good if we could set config to zero ... that's the same state as a device is in after set_address is called. We don't need it yet ... but it's a good capability to have. A device in that state would have no interfaces ... just begging to have some user mode tool set the configuration. Easy to test this mode with off-the-shelf devices, too. Other than that, it looked nice as I browsed it. Though it should have a comment about how probing drivers and setting the configuration are mutually exclusive. - Dave
--- a/include/linux/usb.h Fri Oct 11 21:52:51 2002
+++ b/include/linux/usb.h Fri Oct 11 21:52:51 2002
@@ -1032,6 +1033,9 @@
struct scatterlist *sg, int n_hw_ents);
void usb_buffer_unmap_sg (struct usb_device *dev, unsigned pipe,
struct scatterlist *sg, int n_hw_ents);
+void usb_reap_interfaces(struct usb_device *dev);
+int usb_physical_set_conf(struct usb_device *dev, int configuration);
+int usb_logical_register_dev(struct usb_device *dev);
/*-------------------------------------------------------------------*
* SYNCHRONOUS CALL SUPPORT *
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
