Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / usb / core / usb.h
blob4c33eee520011bc7eba449f9c379d4e4007f067c
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);
8 extern void usb_disable_endpoint (struct usb_device *dev, unsigned int epaddr);
9 extern void usb_disable_interface (struct usb_device *dev,
10 struct usb_interface *intf);
11 extern void usb_release_interface_cache(struct kref *ref);
12 extern void usb_disable_device (struct usb_device *dev, int skip_ep0);
14 extern int usb_get_device_descriptor(struct usb_device *dev,
15 unsigned int size);
16 extern int usb_set_configuration(struct usb_device *dev, int configuration);
18 extern void usb_lock_all_devices(void);
19 extern void usb_unlock_all_devices(void);
21 extern void usb_kick_khubd(struct usb_device *dev);
22 extern void usb_resume_root_hub(struct usb_device *dev);
24 /* for labeling diagnostics */
25 extern const char *usbcore_name;
27 /* usbfs stuff */
28 extern struct usb_driver usbfs_driver;
29 extern struct file_operations usbfs_devices_fops;
30 extern struct file_operations usbfs_device_file_operations;
31 extern void usbfs_conn_disc_event(void);
33 struct dev_state {
34 struct list_head list; /* state list */
35 struct usb_device *dev;
36 struct file *file;
37 spinlock_t lock; /* protects the async urb lists */
38 struct list_head async_pending;
39 struct list_head async_completed;
40 wait_queue_head_t wait; /* wake up if a request completed */
41 unsigned int discsignr;
42 struct task_struct *disctask;
43 void __user *disccontext;
44 unsigned long ifclaimed;