xref: /onnv-gate/usr/src/uts/common/sys/usb/hcd/ehci/ehci_intr.h (revision 7492:2387323b838f)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7492SZhigang.Lu@Sun.COM  * Common Development and Distribution License (the "License").
6*7492SZhigang.Lu@Sun.COM  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*7492SZhigang.Lu@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef _SYS_USB_EHCI_INTR_H
270Sstevel@tonic-gate #define	_SYS_USB_EHCI_INTR_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate 
300Sstevel@tonic-gate #ifdef	__cplusplus
310Sstevel@tonic-gate extern "C" {
320Sstevel@tonic-gate #endif
330Sstevel@tonic-gate 
340Sstevel@tonic-gate /*
350Sstevel@tonic-gate  * Enchanced Host Controller Driver (EHCI)
360Sstevel@tonic-gate  *
370Sstevel@tonic-gate  * The EHCI driver is a software driver which interfaces to the Universal
380Sstevel@tonic-gate  * Serial Bus layer (USBA) and the Host Controller (HC). The interface to
390Sstevel@tonic-gate  * the Host Controller is defined by the EHCI Host Controller Interface.
400Sstevel@tonic-gate  *
410Sstevel@tonic-gate  * This header file describes the data structures and function prototypes
420Sstevel@tonic-gate  * related EHCI driver interrupt handling.
430Sstevel@tonic-gate  */
440Sstevel@tonic-gate 
450Sstevel@tonic-gate /*
460Sstevel@tonic-gate  * EHCI driver external interrupt function prototypes.
470Sstevel@tonic-gate  */
480Sstevel@tonic-gate extern void	ehci_handle_ue(ehci_state_t		*ehcip);
490Sstevel@tonic-gate extern void	ehci_handle_frame_list_rollover(
500Sstevel@tonic-gate 				ehci_state_t		*ehcip);
510Sstevel@tonic-gate extern void	ehci_handle_endpoint_reclaimation(
520Sstevel@tonic-gate 				ehci_state_t		*ehcip);
530Sstevel@tonic-gate extern void	ehci_traverse_active_qtd_list(
540Sstevel@tonic-gate 				ehci_state_t		*ehcip);
550Sstevel@tonic-gate extern usb_cr_t	ehci_check_for_error(
560Sstevel@tonic-gate 				ehci_state_t		*ehcip,
570Sstevel@tonic-gate 				ehci_pipe_private_t	*pp,
580Sstevel@tonic-gate 				ehci_trans_wrapper_t	*tw,
590Sstevel@tonic-gate 				ehci_qtd_t		*qtd,
600Sstevel@tonic-gate 				uint_t			ctrl);
610Sstevel@tonic-gate extern void	ehci_handle_error(
620Sstevel@tonic-gate 				ehci_state_t		*ehcip,
630Sstevel@tonic-gate 				ehci_qtd_t		*qtd,
640Sstevel@tonic-gate 				usb_cr_t		error);
650Sstevel@tonic-gate extern void	ehci_handle_ctrl_qtd(
660Sstevel@tonic-gate 				ehci_state_t		*ehcip,
670Sstevel@tonic-gate 				ehci_pipe_private_t	*pp,
680Sstevel@tonic-gate 				ehci_trans_wrapper_t	*tw,
690Sstevel@tonic-gate 				ehci_qtd_t		*qtd,
700Sstevel@tonic-gate 				void			*);
710Sstevel@tonic-gate extern void	ehci_handle_bulk_qtd(
720Sstevel@tonic-gate 				ehci_state_t		*ehcip,
730Sstevel@tonic-gate 				ehci_pipe_private_t	*pp,
740Sstevel@tonic-gate 				ehci_trans_wrapper_t	*tw,
750Sstevel@tonic-gate 				ehci_qtd_t		*qtd,
760Sstevel@tonic-gate 				void			*);
770Sstevel@tonic-gate extern void	ehci_handle_intr_qtd(
780Sstevel@tonic-gate 				ehci_state_t		*ehcip,
790Sstevel@tonic-gate 				ehci_pipe_private_t	*pp,
800Sstevel@tonic-gate 				ehci_trans_wrapper_t	*tw,
810Sstevel@tonic-gate 				ehci_qtd_t		*qtd,
820Sstevel@tonic-gate 				void			*);
830Sstevel@tonic-gate 
840Sstevel@tonic-gate #ifdef __cplusplus
850Sstevel@tonic-gate }
860Sstevel@tonic-gate #endif
870Sstevel@tonic-gate 
880Sstevel@tonic-gate #endif /* _SYS_USB_EHCI_INTR_H */
89