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