1 /* Functions local to drivers/usb/core/ */
3 extern void usb_create_sysfs_dev_files (struct usb_device *dev);
4 extern void usb_remove_sysfs_dev_files (struct usb_device *dev);
5 extern void usb_create_sysfs_intf_files (struct usb_interface *intf);
6 extern void usb_remove_sysfs_intf_files (struct usb_interface *intf);
7 extern int usb_probe_interface (struct device *dev);
8 extern int usb_unbind_interface (struct device *dev);
10 extern void usb_disable_endpoint (struct usb_device *dev, unsigned int epaddr);
11 extern void usb_disable_interface (struct usb_device *dev,
12 struct usb_interface *intf);
13 extern void usb_release_interface_cache(struct kref *ref);
14 extern void usb_disable_device (struct usb_device *dev, int skip_ep0);
16 extern void usb_enable_interface (struct usb_device *dev,
17 struct usb_interface *intf);
19 extern int usb_get_device_descriptor(struct usb_device *dev,
21 extern int usb_set_configuration(struct usb_device *dev, int configuration);
23 extern void usb_lock_all_devices(void);
24 extern void usb_unlock_all_devices(void);
26 /* for labeling diagnostics */
27 extern const char *usbcore_name;
30 extern struct usb_driver usbfs_driver;
31 extern struct file_operations usbfs_devices_fops;
32 extern struct file_operations usbfs_device_file_operations;
33 extern void usbfs_conn_disc_event(void);
36 struct list_head list; /* state list */
37 struct usb_device *dev;
39 spinlock_t lock; /* protects the async urb lists */
40 struct list_head async_pending;
41 struct list_head async_completed;
42 wait_queue_head_t wait; /* wake up if a request completed */
43 unsigned int discsignr;
44 struct task_struct *disctask;
45 void __user *disccontext;
46 unsigned long ifclaimed;