/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _SYS_USB_LIBUSB_LIBUSB_IMPL_H
#define _SYS_USB_LIBUSB_LIBUSB_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
/* debug levels */
#define DEBUG_NONE 0
/* api binding */
#define API_RELAXED 0
/*
* XXX issues: remove duplicates with usb.h
*/
/* some useful defines */
/*
* bEndpointAddress masks
*/
/*
* The compiler pads the above structures; the following represent the
* unpadded, aggregate data sizes.
*/
/* I/O direction */
#define READ 0
typedef enum {
USB_ERROR_TYPE_NONE = 0,
/*
*/
typedef struct usb_dev_handle_info {
int configuration_value;
int configuration_index;
int claimed_interface;
int alternate;
typedef struct {
typedef struct {
int ref_count;
int ep0_fd;
int ep0_fd_stat;
#define USB_PARSE_ERROR 0
if ((buf)[0] == 0) { \
break; \
} else { \
}
typedef struct usb_cfg_descr {
/*
* usb_if_descr:
* usb interface descriptor, refer to USB 2.0/9.6.5
*/
typedef struct usb_if_descr {
/*
* usb_ep_descr:
* usb endpoint descriptor, refer to USB 2.0/9.6.6
*/
typedef struct usb_ep_descr {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_LIBUSB_LIBUSB_IMPL_H */