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 53255Slg150142 * Common Development and Distribution License (the "License"). 63255Slg150142 * 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_ISOCH_H 270Sstevel@tonic-gate #define _SYS_USB_EHCI_ISOCH_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 isochronous support. 430Sstevel@tonic-gate */ 440Sstevel@tonic-gate 450Sstevel@tonic-gate extern int 460Sstevel@tonic-gate ehci_isoc_init( 470Sstevel@tonic-gate ehci_state_t *ehcip); 480Sstevel@tonic-gate 490Sstevel@tonic-gate extern void 500Sstevel@tonic-gate ehci_isoc_cleanup( 510Sstevel@tonic-gate ehci_state_t *ehcip); 520Sstevel@tonic-gate 530Sstevel@tonic-gate extern void 540Sstevel@tonic-gate ehci_isoc_pipe_cleanup( 550Sstevel@tonic-gate ehci_state_t *ehcip, 560Sstevel@tonic-gate usba_pipe_handle_data_t *ph); 570Sstevel@tonic-gate 580Sstevel@tonic-gate extern ehci_isoc_xwrapper_t * 590Sstevel@tonic-gate ehci_allocate_isoc_resources( 600Sstevel@tonic-gate ehci_state_t *ehcip, 610Sstevel@tonic-gate usba_pipe_handle_data_t *ph, 620Sstevel@tonic-gate usb_isoc_req_t *isoc_reqp, 630Sstevel@tonic-gate usb_flags_t usb_flags); 640Sstevel@tonic-gate 650Sstevel@tonic-gate extern int 660Sstevel@tonic-gate ehci_insert_isoc_req( 670Sstevel@tonic-gate ehci_state_t *ehcip, 680Sstevel@tonic-gate ehci_pipe_private_t *pp, 690Sstevel@tonic-gate ehci_isoc_xwrapper_t *itw, 700Sstevel@tonic-gate usb_flags_t usb_flags); 710Sstevel@tonic-gate 720Sstevel@tonic-gate extern int 730Sstevel@tonic-gate ehci_start_isoc_polling( 740Sstevel@tonic-gate ehci_state_t *ehcip, 750Sstevel@tonic-gate usba_pipe_handle_data_t *ph, 760Sstevel@tonic-gate usb_flags_t flags); 770Sstevel@tonic-gate 780Sstevel@tonic-gate extern void 790Sstevel@tonic-gate ehci_traverse_active_isoc_list( 800Sstevel@tonic-gate ehci_state_t *ehcip); 810Sstevel@tonic-gate 820Sstevel@tonic-gate extern void 830Sstevel@tonic-gate ehci_hcdi_isoc_callback( 840Sstevel@tonic-gate usba_pipe_handle_data_t *ph, 850Sstevel@tonic-gate ehci_isoc_xwrapper_t *itw, 860Sstevel@tonic-gate usb_cr_t completion_reason); 870Sstevel@tonic-gate 880Sstevel@tonic-gate #define EHCI_SITD_MAX_XFER_SIZE 1023 893255Slg150142 #define EHCI_MAX_ISOC_PKTS_PER_XFER 1024 900Sstevel@tonic-gate 910Sstevel@tonic-gate #ifdef __cplusplus 920Sstevel@tonic-gate } 930Sstevel@tonic-gate #endif 940Sstevel@tonic-gate 950Sstevel@tonic-gate #endif /* _SYS_USB_EHCI_ISOCH_H */ 96