Print this page
5832 EOF wireless usb (aka UWB)
Reviewed by: TBD
Reviewed by: TBD
Approved by: TBD


   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_USBA_USBA_PRIVATE_H
  27 #define _SYS_USB_USBA_USBA_PRIVATE_H
  28 
  29 
  30 #include <sys/sunndi.h>
  31 
  32 /*
  33  * Header file for items to be shared within usba but not to be used
  34  * by drivers
  35  */
  36 
  37 #ifdef  __cplusplus
  38 extern "C" {
  39 #endif
  40 
  41 /*
  42  * **************************************************************************
  43  * DDK version 0.8 binaries are supported.


 186         uint_t                  if_index,
 187         uint_t                  alt_if_setting,
 188         uint_t                  ep_index,
 189         uint_t                  descr_type,
 190         uint_t                  descr_index,
 191         void                    *ret_descr,
 192         size_t                  ret_buf_len);
 193 
 194 
 195 /*
 196  * for unpacking any kind of LE data
 197  */
 198 size_t usb_parse_CV_descr(
 199         char                    *format,
 200         uchar_t                 *data,
 201         size_t                  datalen,
 202         void                    *structure,
 203         size_t                  structlen);
 204 
 205 /*
 206  * For WUSB extended descriptors
 207  */
 208 size_t
 209 usb_parse_bos_descr(uchar_t     *buf,   /* from GET_DESCRIPTOR(BOS) */
 210         size_t                  buflen,
 211         usb_bos_descr_t         *ret_descr,
 212         size_t                  ret_buf_len);
 213 
 214 size_t
 215 usb_parse_uwb_bos_descr(uchar_t *buf,   /* from GET_DESCRIPTOR(BOS) */
 216         size_t                  buflen,
 217         usb_uwb_cap_descr_t             *ret_descr,
 218         size_t                  ret_buf_len);
 219 
 220 size_t
 221 usb_parse_comp_ep_descr(uchar_t *buf,   /* from GET_DESCRIPTOR(CONFIGURATION) */
 222         size_t                  buflen,
 223         uint_t                  if_number,
 224         uint_t                  alt_if_setting,
 225         uint_t                  ep_index,
 226         usb_ep_comp_descr_t     *ret_descr,
 227         size_t                  ret_buf_len);
 228 
 229 /*
 230  * Returns pointer to the raw config cloud. The client should
 231  * not free this space.
 232  */
 233 uchar_t *usb_get_raw_cfg_data(
 234         dev_info_t              *dip,
 235         size_t                  *length);
 236 
 237 /*
 238  * Return pointer to device descriptor
 239  */
 240 usb_dev_descr_t *usb_get_dev_descr(
 241         dev_info_t              *dip);
 242 
 243 
 244 /*
 245  * **************************************************************************
 246  * List entry functions and definitions
 247  * **************************************************************************
 248  */
 249 




   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  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26  */
  27 
  28 #ifndef _SYS_USB_USBA_USBA_PRIVATE_H
  29 #define _SYS_USB_USBA_USBA_PRIVATE_H
  30 
  31 
  32 #include <sys/sunndi.h>
  33 
  34 /*
  35  * Header file for items to be shared within usba but not to be used
  36  * by drivers
  37  */
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 /*
  44  * **************************************************************************
  45  * DDK version 0.8 binaries are supported.


 188         uint_t                  if_index,
 189         uint_t                  alt_if_setting,
 190         uint_t                  ep_index,
 191         uint_t                  descr_type,
 192         uint_t                  descr_index,
 193         void                    *ret_descr,
 194         size_t                  ret_buf_len);
 195 
 196 
 197 /*
 198  * for unpacking any kind of LE data
 199  */
 200 size_t usb_parse_CV_descr(
 201         char                    *format,
 202         uchar_t                 *data,
 203         size_t                  datalen,
 204         void                    *structure,
 205         size_t                  structlen);
 206 
 207 /*
























 208  * Returns pointer to the raw config cloud. The client should
 209  * not free this space.
 210  */
 211 uchar_t *usb_get_raw_cfg_data(
 212         dev_info_t              *dip,
 213         size_t                  *length);
 214 
 215 /*
 216  * Return pointer to device descriptor
 217  */
 218 usb_dev_descr_t *usb_get_dev_descr(
 219         dev_info_t              *dip);
 220 
 221 
 222 /*
 223  * **************************************************************************
 224  * List entry functions and definitions
 225  * **************************************************************************
 226  */
 227