usb.h (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | usb.h (6d5e8254bf488a40b7ae2faafbffa232ab19d541) |
---|---|
1/* Functions local to drivers/usb/core/ */ 2 3extern void usb_create_sysfs_dev_files (struct usb_device *dev); 4extern void usb_remove_sysfs_dev_files (struct usb_device *dev); 5extern void usb_create_sysfs_intf_files (struct usb_interface *intf); 6extern void usb_remove_sysfs_intf_files (struct usb_interface *intf); 7 8extern void usb_disable_endpoint (struct usb_device *dev, unsigned int epaddr); --- 7 unchanged lines hidden (view full) --- 16extern int usb_set_configuration(struct usb_device *dev, int configuration); 17 18extern void usb_lock_all_devices(void); 19extern void usb_unlock_all_devices(void); 20 21extern void usb_kick_khubd(struct usb_device *dev); 22extern void usb_resume_root_hub(struct usb_device *dev); 23 | 1/* Functions local to drivers/usb/core/ */ 2 3extern void usb_create_sysfs_dev_files (struct usb_device *dev); 4extern void usb_remove_sysfs_dev_files (struct usb_device *dev); 5extern void usb_create_sysfs_intf_files (struct usb_interface *intf); 6extern void usb_remove_sysfs_intf_files (struct usb_interface *intf); 7 8extern void usb_disable_endpoint (struct usb_device *dev, unsigned int epaddr); --- 7 unchanged lines hidden (view full) --- 16extern int usb_set_configuration(struct usb_device *dev, int configuration); 17 18extern void usb_lock_all_devices(void); 19extern void usb_unlock_all_devices(void); 20 21extern void usb_kick_khubd(struct usb_device *dev); 22extern void usb_resume_root_hub(struct usb_device *dev); 23 |
24extern int usb_hub_init(void); 25extern void usb_hub_cleanup(void); 26extern int usb_major_init(void); 27extern void usb_major_cleanup(void); 28extern int usb_host_init(void); 29extern void usb_host_cleanup(void); 30 |
|
24/* for labeling diagnostics */ 25extern const char *usbcore_name; 26 27/* usbfs stuff */ 28extern struct usb_driver usbfs_driver; 29extern struct file_operations usbfs_devices_fops; 30extern struct file_operations usbfs_device_file_operations; 31extern void usbfs_conn_disc_event(void); 32 | 31/* for labeling diagnostics */ 32extern const char *usbcore_name; 33 34/* usbfs stuff */ 35extern struct usb_driver usbfs_driver; 36extern struct file_operations usbfs_devices_fops; 37extern struct file_operations usbfs_device_file_operations; 38extern void usbfs_conn_disc_event(void); 39 |
40 |
|
33struct 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; 45}; 46 | 41struct dev_state { 42 struct list_head list; /* state list */ 43 struct usb_device *dev; 44 struct file *file; 45 spinlock_t lock; /* protects the async urb lists */ 46 struct list_head async_pending; 47 struct list_head async_completed; 48 wait_queue_head_t wait; /* wake up if a request completed */ 49 unsigned int discsignr; 50 struct task_struct *disctask; 51 void __user *disccontext; 52 unsigned long ifclaimed; 53}; 54 |