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 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #ifndef _SYS_USB_HWAHC_UTIL_H
  27 #define _SYS_USB_HWAHC_UTIL_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 usba_hcdi_ops_t *hwahc_alloc_hcdi_ops(hwahc_state_t *hwahcp);
  34 int     hwahc_start_result_thread(hwahc_state_t *hwahcp);
  35 int     hwahc_set_encrypt(dev_info_t *, usb_port_t, uint8_t type);
  36 int     hwahc_set_ptk(dev_info_t *, usb_key_descr_t *, size_t, usb_port_t);
  37 int     hwahc_set_gtk(dev_info_t *, usb_key_descr_t *, size_t);
  38 int     hwahc_set_device_info(dev_info_t *, wusb_dev_info_t *, usb_port_t);
  39 int     hwahc_set_cluster_id(dev_info_t *, uint8_t);
  40 int     hwahc_set_stream_idx(dev_info_t *, uint8_t);
  41 int     hwahc_set_wusb_mas(dev_info_t *, uint8_t *);
  42 int     hwahc_add_mmc_ie(dev_info_t *dip, uint8_t interval, uint8_t rcnt,
  43                 uint8_t iehdl, uint16_t len, uint8_t *data);
  44 int     hwahc_remove_mmc_ie(dev_info_t *dip, uint8_t iehdl);
  45 int     hwahc_stop_ch(dev_info_t *dip, uint32_t time);
  46 int     hwahc_set_num_dnts(dev_info_t *dip, uint8_t interval, uint8_t nslot);
  47 int     hwahc_get_time(dev_info_t *dip, uint8_t time_type, uint16_t len,
  48             uint32_t *time);
  49 
  50 #ifdef __cplusplus
  51 }
  52 #endif
  53 
  54 #endif /* _SYS_USB_HWAHC_UTIL_H */