/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_USB_USBPRN_H
#define _SYS_USB_USBPRN_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* This header file contains internal driver structures info
*
* Write timeout values for 1K of data transfer
*/
/* ps_flags values */
/* Maximum transfer size */
/*
* Per pipe state information
*/
typedef struct usbprn_ps {
} usbprn_ps_t;
/*
* PM support
*/
typedef struct usbprn_power {
/* device busy accounting */
int usbprn_pm_busy;
/* this is the bit mask of the power states that device has */
/* wakeup and power transistion capabilites of an interface */
/*
* State structure
*/
typedef struct usbprn_state {
int usbprn_flags;
/* serialize access */
/* mblk_t that contains the data to be sent */
/* warlock directives, stable data */
/* Values for usbprn_flags */
/* Macros */
/*
* Check if it the device is not being closed
* or not being disconnected or not being suspended
*/
#define USBPRN_DEVICE_ACCESS_OK(s) \
(((s)->usbprn_flags & USBPRN_OPEN) && \
(((s)->usbprn_dev_state == USB_DEV_ONLINE)))
/* Check if the pipes are idle or closed */
#define USBPRN_PIPES_BUSY(s) \
/*
* Debug message Masks
*/
/* log message breakup */
/* max device id length */
/* ugen support */
(((minor) & USBPRN_MINOR_INSTANCE_MASK) >> \
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_USBPRN_H */