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 2006 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 #ifndef _SYS_USB_EHCI_ISOCH_H 27 #define _SYS_USB_EHCI_ISOCH_H 28 29 #pragma ident "%Z%%M% %I% %E% SMI" 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 /* 36 * Enchanced Host Controller Driver (EHCI) 37 * 38 * The EHCI driver is a software driver which interfaces to the Universal 39 * Serial Bus layer (USBA) and the Host Controller (HC). The interface to 40 * the Host Controller is defined by the EHCI Host Controller Interface. 41 * 42 * This header file describes the data structures and function prototypes 43 * related EHCI driver isochronous support. 44 */ 45 46 extern int 47 ehci_isoc_init( 48 ehci_state_t *ehcip); 49 50 extern void 51 ehci_isoc_cleanup( 52 ehci_state_t *ehcip); 53 54 extern void 55 ehci_isoc_pipe_cleanup( 56 ehci_state_t *ehcip, 57 usba_pipe_handle_data_t *ph); 58 59 extern ehci_isoc_xwrapper_t * 60 ehci_allocate_isoc_resources( 61 ehci_state_t *ehcip, 62 usba_pipe_handle_data_t *ph, 63 usb_isoc_req_t *isoc_reqp, 64 usb_flags_t usb_flags); 65 66 extern int 67 ehci_insert_isoc_req( 68 ehci_state_t *ehcip, 69 ehci_pipe_private_t *pp, 70 ehci_isoc_xwrapper_t *itw, 71 usb_flags_t usb_flags); 72 73 extern int 74 ehci_start_isoc_polling( 75 ehci_state_t *ehcip, 76 usba_pipe_handle_data_t *ph, 77 usb_flags_t flags); 78 79 extern void 80 ehci_traverse_active_isoc_list( 81 ehci_state_t *ehcip); 82 83 extern void 84 ehci_hcdi_isoc_callback( 85 usba_pipe_handle_data_t *ph, 86 ehci_isoc_xwrapper_t *itw, 87 usb_cr_t completion_reason); 88 89 #define EHCI_SITD_MAX_XFER_SIZE 1023 90 #define EHCI_MAX_ISOC_PKTS_PER_XFER 1024 91 92 #ifdef __cplusplus 93 } 94 #endif 95 96 #endif /* _SYS_USB_EHCI_ISOCH_H */ 97