1/*-
2 * Copyright (c) 2009 Andrew Thompson
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
--- 7 unchanged lines hidden (view full) ---
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/dev/usb/usbdi.h 220301 2011-04-03 20:03:45Z hselasky $
25 */
26#ifndef _USB_USBDI_H_
27#define _USB_USBDI_H_
28
29struct usb_fifo;
30struct usb_xfer;
31struct usb_device;
32struct usb_attach_arg;
--- 458 unchanged lines hidden (view full) ---
491void usbd_set_parent_iface(struct usb_device *udev, uint8_t iface_index,
492 uint8_t parent_index);
493uint8_t usbd_get_bus_index(struct usb_device *udev);
494uint8_t usbd_get_device_index(struct usb_device *udev);
495void usbd_set_power_mode(struct usb_device *udev, uint8_t power_mode);
496uint8_t usbd_filter_power_mode(struct usb_device *udev, uint8_t power_mode);
497uint8_t usbd_device_attached(struct usb_device *udev);
498
499usb_frlength_t
500 usbd_xfer_old_frame_length(struct usb_xfer *xfer, usb_frcount_t frindex);
501void usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen,
502 int *aframes, int *nframes);
503struct usb_page_cache *usbd_xfer_get_frame(struct usb_xfer *xfer,
504 usb_frcount_t frindex);
505void *usbd_xfer_softc(struct usb_xfer *xfer);
506void *usbd_xfer_get_priv(struct usb_xfer *xfer);
507void usbd_xfer_set_priv(struct usb_xfer *xfer, void *);
508void usbd_xfer_set_interval(struct usb_xfer *xfer, int);
--- 69 unchanged lines hidden ---
2 * Copyright (c) 2009 Andrew Thompson
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
--- 7 unchanged lines hidden (view full) ---
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/dev/usb/usbdi.h 220301 2011-04-03 20:03:45Z hselasky $
25 */
26#ifndef _USB_USBDI_H_
27#define _USB_USBDI_H_
28
29struct usb_fifo;
30struct usb_xfer;
31struct usb_device;
32struct usb_attach_arg;
--- 458 unchanged lines hidden (view full) ---
491void usbd_set_parent_iface(struct usb_device *udev, uint8_t iface_index,
492 uint8_t parent_index);
493uint8_t usbd_get_bus_index(struct usb_device *udev);
494uint8_t usbd_get_device_index(struct usb_device *udev);
495void usbd_set_power_mode(struct usb_device *udev, uint8_t power_mode);
496uint8_t usbd_filter_power_mode(struct usb_device *udev, uint8_t power_mode);
497uint8_t usbd_device_attached(struct usb_device *udev);
498
499usb_frlength_t
500 usbd_xfer_old_frame_length(struct usb_xfer *xfer, usb_frcount_t frindex);
501void usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen,
502 int *aframes, int *nframes);
503struct usb_page_cache *usbd_xfer_get_frame(struct usb_xfer *xfer,
504 usb_frcount_t frindex);
505void *usbd_xfer_softc(struct usb_xfer *xfer);
506void *usbd_xfer_get_priv(struct usb_xfer *xfer);
507void usbd_xfer_set_priv(struct usb_xfer *xfer, void *);
508void usbd_xfer_set_interval(struct usb_xfer *xfer, int);
--- 69 unchanged lines hidden ---