wusb_df.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.
*/
#ifndef _SYS_USB_WUSB_DF_H
#define _SYS_USB_WUSB_DF_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Power Management support
*/
typedef struct wusb_df_power {
void *wusb_df_state; /* points back to wusb_df_state */
int wusb_df_pm_busy;
/* wakeup and power transistion capabilites of an interface */
/*
* State structure
*/
typedef struct wusb_df_state {
char *wusb_df_devinst; /* Dev and instance */
int wusb_df_dev_state; /* USB device states. */
}))
/* Macros */
/* For serialization. */
#define WUSB_DF_SER_NOSIG B_FALSE
#define WUSB_DF_SER_SIG B_TRUE
/* For logging. */
#define PRINT_MASK_ALL 0xFFFFFFFF
#define PRINT_MASK_ATTA 0x00000001
#define PRINT_MASK_PM 0x00000010
#define PRINT_MASK_CB 0x00000020
#define PRINT_MASK_CPR 0x00000040
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_WUSB_DF_H */