/*
* 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_WHCDI_H
#define _SYS_USB_WHCDI_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* This file contains data structures and functions that might be
* shared by HWA and WHCI drivers.
*/
typedef struct wusb_hc_cc_list {
struct wusb_hc_data;
typedef struct wusb_dev_info {
/*
* According to WUSB 1.0 spec, WUSB hosts can support up to 127 devices.
* To comply with USB bus convention that bus address 1 is assigned
* to the host controller device, the addresses assigned to WUSB devices
* would start from 2. So the max device number is reduced to 126.
*/
typedef struct wusb_hc_data {
void *hc_private_data;
/* save the often used IEs so as not to allocate them each time */
/* children info structures */
/* for bus unconfig */
/* child connection functions */
/*
* some necessary host functions:
* Both HWA and HCI must implement these entries to support basic
* host controller operations.
*/
/* host addr in MAC layer */
/* beaconing channel */
/* reserved MASes. bitmaps */
/* connection context list for the host */
/* group temporal key */
/*
* WUSB 1.0 4.3.8.5 says the range of cluster id is in 0x80-0xfe,
* we limit the maximum WUSB host controller numbers to 31 now,
* and take the upper portion of this range as the broadcast
* cluster id
*/
USB_EP_ATTR_MASK) == USB_EP_ATTR_INTR) ||\
((endpoint->bmAttributes &\
/* helper functions */
usb_port_t *port);
usb_port_t *port);
/* device notification support */
/* wusb common device function */
dev_info_t **child_dip);
/* device dynamical configuration functions */
/* WUSB HC common requests */
/* WUSB HC connection context list operations */
/* security functions */
/* crypto functions */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_WHCDI_H */