diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2000-01-25 18:40:39 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2000-01-25 18:40:39 +0000 |
commit | 97f54a6227dfa04788bd2fd417fc10a3316aa2ab (patch) | |
tree | 20184f0d94d3955996cb5be76760d0ebe4b30768 /sys/dev | |
parent | 54e504ae5d377fd5fa63415eb201ca2375214cf0 (diff) | |
download | FreeBSD-src-97f54a6227dfa04788bd2fd417fc10a3316aa2ab.zip FreeBSD-src-97f54a6227dfa04788bd2fd417fc10a3316aa2ab.tar.gz |
Add usbd_clear_endpoint_toggle(pipe) function.
This is needed to implement a asynchronous callback for clear endpoint
stall, needed for the umass driver.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/usbdi.c | 8 | ||||
-rw-r--r-- | sys/dev/usb/usbdi.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 75741fb..23063df 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -609,6 +609,14 @@ usbd_clear_endpoint_stall_async(pipe) return (err); } +void +usbd_clear_endpoint_toggle(pipe) + usbd_pipe_handle pipe; +{ + pipe->methods->cleartoggle(pipe); +} + + usbd_status usbd_endpoint_count(iface, count) usbd_interface_handle iface; diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index dd1671c..be28e25 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -124,6 +124,7 @@ usb_endpoint_descriptor_t *usbd_interface2endpoint_descriptor usbd_status usbd_abort_pipe __P((usbd_pipe_handle pipe)); usbd_status usbd_clear_endpoint_stall __P((usbd_pipe_handle pipe)); usbd_status usbd_clear_endpoint_stall_async __P((usbd_pipe_handle pipe)); +void usbd_clear_endpoint_toggle __P((usbd_pipe_handle pipe)); usbd_status usbd_endpoint_count __P((usbd_interface_handle dev, u_int8_t *count)); usbd_status usbd_interface_count |