diff options
Diffstat (limited to 'drivers/staging/usbip/stub.h')
-rw-r--r-- | drivers/staging/usbip/stub.h | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/drivers/staging/usbip/stub.h b/drivers/staging/usbip/stub.h index 6004fcdbc1a4..6592aa2ad15c 100644 --- a/drivers/staging/usbip/stub.h +++ b/drivers/staging/usbip/stub.h @@ -17,13 +17,12 @@ * USA. */ -#include <linux/kernel.h> #include <linux/list.h> -#include <linux/spinlock.h> #include <linux/slab.h> -#include <linux/string.h> -#include <linux/module.h> -#include <linux/net.h> +#include <linux/spinlock.h> +#include <linux/types.h> +#include <linux/usb.h> +#include <linux/wait.h> #define STUB_BUSID_OTHER 0 #define STUB_BUSID_REMOV 1 @@ -58,7 +57,6 @@ struct stub_device { struct list_head unlink_tx; struct list_head unlink_free; - wait_queue_head_t tx_waitq; }; @@ -87,25 +85,22 @@ struct bus_id_priv { char shutdown_busid; }; +/* stub_priv is allocated from stub_priv_cache */ extern struct kmem_cache *stub_priv_cache; - -/*-------------------------------------------------------------------------*/ -/* prototype declarations */ - -/* stub_tx.c */ -void stub_complete(struct urb *); -int stub_tx_loop(void *data); - /* stub_dev.c */ extern struct usb_driver stub_driver; -/* stub_rx.c */ -int stub_rx_loop(void *data); -void stub_enqueue_ret_unlink(struct stub_device *, __u32, __u32); - /* stub_main.c */ struct bus_id_priv *get_busid_priv(const char *busid); int del_match_busid(char *busid); - void stub_device_cleanup_urbs(struct stub_device *sdev); + +/* stub_rx.c */ +int stub_rx_loop(void *data); + +/* stub_tx.c */ +void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum, + __u32 status); +void stub_complete(struct urb *urb); +int stub_tx_loop(void *data); |