/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_USB_WUSBA_IO_H
#define _SYS_USB_WUSBA_IO_H
#ifdef __cplusplus
extern "C" {
#endif
/* ioctl commands between wusb host and the wusbadm tool */
/* get the state of a device corresponding to cdid */
/* for WUSB_HC_GET_DSTATE ioctl */
typedef struct wusb_hc_get_dstate {
/* OUT arg - driver name XXX: need to find MAX nodename len */
/* device state, refer to WUSB 1.0 spec - Figure 7.1 */
enum wusb_device_state {
WUSB_STATE_UNCONNTED = 0,
};
/* get host 48-bit MAC addr */
/* load CC to host and update chid when cc list is null */
/* remove CC from host */
/* CC structure for WUSB_HC_ADD_CC and WUSB_HC_REM_CC ioctl */
typedef struct wusb_cc {
} wusb_cc_t;
/* set host beaconing channel number */
/* start host to accept device connections and transfers */
/*
* start flag bitmap for WUSB_HC_START ioctl:
* INITIAL_START and CHANNEL_START are exclusive
*/
/* stop host functioning */
/*
* stop flag bitmap for WUSB_HC_STOP ioctl:
* FINAL_STOP and CHANNEL_STOP are exclusive, and there must be one
* REM_ALL_CC is optional
*/
/* start host to accept new device connections */
/* stop host from accepting new device connections */
/* get host state */
/* host state for WUSB_HC_GET_HSTATE ioctl */
enum wusb_host_state {
WUSB_HC_DISCONNTED = 0,
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_WUSBA_IO_H */