ohci_hub.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_USB_OHCI_HUB_H
#define _SYS_USB_OHCI_HUB_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Open Host Controller Driver (OHCI)
*
* The USB Open Host Controller driver is a software driver which interfaces
* to the Universal Serial Bus layer (USBA) and the USB Open Host Controller.
* The interface to USB Open Host Controller is defined by the OpenHCI Host
* Controller Interface.
*
* This header file describes the data structures required for the USB Open
* Host Controller Driver to maintain state of USB Open Host Controller, to
* perform different USB transfers and for the bandwidth allocations.
*/
/*
* Root hub information structure
*
* The Root hub is a Universal Serial Bus hub attached directly to the
* Host Controller (HC) and all the internal registers of the root hub
* are exposed to the Host Controller Driver (HCD) which is responsible
* for providing the proper hub-class protocol with the USB driver and
* proper control of the root hub. This structure contains information
* about the root hub and its ports.
*/
typedef struct ohci_root_hub {
/* Last state & status for each root hub port */
/* Root hub control pipe handle */
/* Current control request pointer */
/* Root hub control pipe state */
/* Root hub interrupt pipe handle */
/* Current interrupt request pointer */
/* Saved original interrupt request pointer */
/* Root hub interrupt pipe state and timer-id */
/* Port States */
/*
* Time waits for the different OHCI specific operations.
* These timeout values are specified in terms of microseconds.
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_OHCI_HUB_H */