hwarc.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_HWARC_H
#define _SYS_USB_HWARC_H
#ifdef __cplusplus
extern "C" {
#endif
/* Power Management support */
typedef struct hwarc_power {
void *hrc_state; /* Hwarc state */
int hrc_pm_busy; /* Hwarc busy counter */
/* Hwarc State structure */
typedef struct hwarc_state {
char *hrc_devinst; /* Device instance */
int hrc_dev_state; /* USB device state */
}))
#define HWARC_SER_SIG B_TRUE
#define HWARC_GET_IF 0xA1
/* HWARC masks for debug printing */
#define PRINT_MASK_ATTA 0x00000001
#define PRINT_MASK_OPEN 0x00000002
#define PRINT_MASK_CLOSE 0x00000004
#define PRINT_MASK_READ 0x00000008
#define PRINT_MASK_IOCTL 0x00000010
#define PRINT_MASK_PM 0x00000020
#define PRINT_MASK_CB 0x00000040
#define PRINT_MASK_HOTPLUG 0x00000080
#define PRINT_MASK_DEVCTRL 0x00000100
#define PRINT_MASK_DEVMAP 0x00000200
#define PRINT_MASK_ALL 0xFFFFFFFF
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_HWARC_H */