diff options
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_usb.h')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_usb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.h b/drivers/net/wireless/zd1211rw/zd_usb.h index 2d688f48a34c..b3df2c8116cc 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.h +++ b/drivers/net/wireless/zd1211rw/zd_usb.h | |||
@@ -217,8 +217,11 @@ struct zd_usb { | |||
217 | struct zd_usb_rx rx; | 217 | struct zd_usb_rx rx; |
218 | struct zd_usb_tx tx; | 218 | struct zd_usb_tx tx; |
219 | struct usb_interface *intf; | 219 | struct usb_interface *intf; |
220 | struct usb_anchor submitted_cmds; | ||
221 | struct urb *urb_async_waiting; | ||
222 | int cmd_error; | ||
220 | u8 req_buf[64]; /* zd_usb_iowrite16v needs 62 bytes */ | 223 | u8 req_buf[64]; /* zd_usb_iowrite16v needs 62 bytes */ |
221 | u8 is_zd1211b:1, initialized:1, was_running:1; | 224 | u8 is_zd1211b:1, initialized:1, was_running:1, in_async:1; |
222 | }; | 225 | }; |
223 | 226 | ||
224 | #define zd_usb_dev(usb) (&usb->intf->dev) | 227 | #define zd_usb_dev(usb) (&usb->intf->dev) |
@@ -270,6 +273,10 @@ static inline int zd_usb_ioread16(struct zd_usb *usb, u16 *value, | |||
270 | return zd_usb_ioread16v(usb, value, (const zd_addr_t *)&addr, 1); | 273 | return zd_usb_ioread16v(usb, value, (const zd_addr_t *)&addr, 1); |
271 | } | 274 | } |
272 | 275 | ||
276 | void zd_usb_iowrite16v_async_start(struct zd_usb *usb); | ||
277 | int zd_usb_iowrite16v_async_end(struct zd_usb *usb, unsigned int timeout); | ||
278 | int zd_usb_iowrite16v_async(struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, | ||
279 | unsigned int count); | ||
273 | int zd_usb_iowrite16v(struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, | 280 | int zd_usb_iowrite16v(struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, |
274 | unsigned int count); | 281 | unsigned int count); |
275 | 282 | ||