1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2002-2003 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _SYS_USB_EHCI_INTR_H 28 #define _SYS_USB_EHCI_INTR_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 /* 37 * Enchanced Host Controller Driver (EHCI) 38 * 39 * The EHCI driver is a software driver which interfaces to the Universal 40 * Serial Bus layer (USBA) and the Host Controller (HC). The interface to 41 * the Host Controller is defined by the EHCI Host Controller Interface. 42 * 43 * This header file describes the data structures and function prototypes 44 * related EHCI driver interrupt handling. 45 */ 46 47 /* 48 * EHCI driver external interrupt function prototypes. 49 */ 50 extern void ehci_handle_ue(ehci_state_t *ehcip); 51 extern void ehci_handle_frame_list_rollover( 52 ehci_state_t *ehcip); 53 extern void ehci_handle_endpoint_reclaimation( 54 ehci_state_t *ehcip); 55 extern void ehci_traverse_active_qtd_list( 56 ehci_state_t *ehcip); 57 extern usb_cr_t ehci_check_for_error( 58 ehci_state_t *ehcip, 59 ehci_pipe_private_t *pp, 60 ehci_trans_wrapper_t *tw, 61 ehci_qtd_t *qtd, 62 uint_t ctrl); 63 extern void ehci_handle_error( 64 ehci_state_t *ehcip, 65 ehci_qtd_t *qtd, 66 usb_cr_t error); 67 extern void ehci_handle_ctrl_qtd( 68 ehci_state_t *ehcip, 69 ehci_pipe_private_t *pp, 70 ehci_trans_wrapper_t *tw, 71 ehci_qtd_t *qtd, 72 void *); 73 extern void ehci_handle_bulk_qtd( 74 ehci_state_t *ehcip, 75 ehci_pipe_private_t *pp, 76 ehci_trans_wrapper_t *tw, 77 ehci_qtd_t *qtd, 78 void *); 79 extern void ehci_handle_intr_qtd( 80 ehci_state_t *ehcip, 81 ehci_pipe_private_t *pp, 82 ehci_trans_wrapper_t *tw, 83 ehci_qtd_t *qtd, 84 void *); 85 86 #ifdef __cplusplus 87 } 88 #endif 89 90 #endif /* _SYS_USB_EHCI_INTR_H */ 91