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_ISOCH_H 27 #define _SYS_USB_EHCI_ISOCH_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 isochronous support. 43 */ 44 45 extern int 46 ehci_isoc_init( 47 ehci_state_t *ehcip); 48 49 extern void 50 ehci_isoc_cleanup( 51 ehci_state_t *ehcip); 52 53 extern void 54 ehci_isoc_pipe_cleanup( 55 ehci_state_t *ehcip, 56 usba_pipe_handle_data_t *ph); 57 58 extern ehci_isoc_xwrapper_t * 59 ehci_allocate_isoc_resources( 60 ehci_state_t *ehcip, 61 usba_pipe_handle_data_t *ph, 62 usb_isoc_req_t *isoc_reqp, 63 usb_flags_t usb_flags); 64 65 extern int 66 ehci_insert_isoc_req( 67 ehci_state_t *ehcip, 68 ehci_pipe_private_t *pp, 69 ehci_isoc_xwrapper_t *itw, 70 usb_flags_t usb_flags); 71 72 extern int 73 ehci_start_isoc_polling( 74 ehci_state_t *ehcip, 75 usba_pipe_handle_data_t *ph, 76 usb_flags_t flags); 77 78 extern void 79 ehci_traverse_active_isoc_list( 80 ehci_state_t *ehcip); 81 82 extern void 83 ehci_hcdi_isoc_callback( 84 usba_pipe_handle_data_t *ph, 85 ehci_isoc_xwrapper_t *itw, 86 usb_cr_t completion_reason); 87 88 #define EHCI_SITD_MAX_XFER_SIZE 1023 89 #define EHCI_MAX_ISOC_PKTS_PER_XFER 1024 90 91 #ifdef __cplusplus 92 } 93 #endif 94 95 #endif /* _SYS_USB_EHCI_ISOCH_H */ 96