wusb_ca_priv.h revision ff0e937b36dcde1a47ff7b00aa76a491c0dc07a8
/*
* 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.
*/
/*
* WUSB cable association driver private data structures and definitions.
*/
#ifndef _SYS_USB_WUSB_CA_PRIV_H
#define _SYS_USB_WUSB_CA_PRIV_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Power Management support
*/
typedef struct wusb_ca_power {
void *wusb_ca_state; /* points back to wusb_ca_state */
int wusb_ca_pm_busy;
/* wakeup and power transistion capabilites of an interface */
/* flag to indicate if driver is about to raise power level */
/*
* State structure
*/
typedef struct wusb_ca_state {
char *wusb_ca_devinst; /* Dev and instance */
int wusb_ca_dev_state; /* USB device states. */
int wusb_ca_drv_state; /* driver states. */
}))
/* Macros */
#define WUSB_CA_OPEN 0x00000001
/* Other */
#define WUSB_CA_DRAIN_TMO 15
/* For serialization. */
#define WUSB_CA_SER_NOSIG B_FALSE
#define WUSB_CA_SER_SIG B_TRUE
/* For logging. */
#define WUSB_CA_LOG_LOG 1
#define WUSB_CA_LOG_CONSOLE 0
#define PRINT_MASK_ALL 0xFFFFFFFF
#define PRINT_MASK_ATTA 0x00000001
#define PRINT_MASK_CLOSE 0x00000002
#define PRINT_MASK_OPEN 0x00000004
#define PRINT_MASK_EVENTS 0x00000008
#define PRINT_MASK_PM 0x00000010
#define PRINT_MASK_CB 0x00000020
#define PRINT_MASK_CPR 0x00000040
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_WUSB_CA_PRIV_H */