ehci_util.h revision 3b00f31181b46bae37f79ea0f28b4d2f6247a045
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_USB_EHCI_UTIL_H
#define _SYS_USB_EHCI_UTIL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Enchanced Host Controller Driver (EHCI)
*
* The EHCI driver is a software driver which interfaces to the Universal
* Serial Bus layer (USBA) and the Host Controller (HC). The interface to
* the Host Controller is defined by the EHCI Host Controller Interface.
*
* This header file describes the EHCI driver data structures and function
* prototypes for the EHCI Host Controller initilization/deintilization,
* Bandwidth Allocation and other miscellaneous functionalities.
*/
/*
* EHCI driver initialization function prototypes.
*/
extern void ehci_decode_ddi_dma_addr_bind_handle_result(
int result);
extern int ehci_register_intrs_and_init_mutex(
int init_type);
extern usba_hcdi_ops_t *ehci_alloc_hcdi_ops(
/*
* EHCI driver deinitialization function prototypes.
*/
/*
* EHCI driver Bandwidth Allocation function prototypes.
*/
extern int ehci_adjust_polling_interval(
/*
* EHCI driver miscellaneous function prototypes.
*/
extern ehci_state_t *ehci_obtain_state(
dev_info_t *dip);
extern int ehci_state_is_operational(
extern int ehci_do_soft_reset(
extern int ehci_wait_for_sof(
extern void ehci_toggle_scheduler(
ehci_qtd_t *qtd);
int val);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_USB_EHCI_UTIL_H */