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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
          +++ new/usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24   26   */
  25   27  
  26   28  
  27   29  /*
  28   30   * USBA: Solaris USB Architecture support
  29   31   *
  30   32   * all functions exposed to client drivers  have prefix usb_ while all USBA
  31   33   * internal functions or functions exposed to HCD or hubd only have prefix
  32   34   * usba_
  33   35   *
↓ open down ↓ 482 lines elided ↑ open up ↑
 516  518          if ((ep->bmAttributes & USB_EP_ATTR_MASK) ==
 517  519              USB_EP_ATTR_ISOCH) {
 518  520                  ph_data->p_spec_flag |= USBA_PH_FLAG_USE_SOFT_INTR;
 519  521          }
 520  522  
 521  523          /* fix up the MaxPacketSize if it is the default endpoint descr */
 522  524          if ((ep == &usba_default_ep_descr) && usba_device) {
 523  525                  uint16_t        maxpktsize;
 524  526  
 525  527                  maxpktsize = usba_device->usb_dev_descr->bMaxPacketSize0;
 526      -                if (usba_device->usb_is_wireless) {
 527      -                        /*
 528      -                         * according to wusb 1.0 spec 4.8.1, the host must
 529      -                         * assume a wMaxPacketSize of 512 for the default
 530      -                         * control pipe of a wusb device
 531      -                         */
 532      -                        maxpktsize = 0x200;
 533      -                }
 534  528                  USB_DPRINTF_L3(DPRINT_MASK_USBAI, usbai_log_handle,
 535  529                      "adjusting max packet size from %d to %d",
 536  530                      ph_data->p_ep.wMaxPacketSize, maxpktsize);
 537  531  
 538  532                  ph_data->p_ep.wMaxPacketSize = maxpktsize;
 539  533          }
 540  534  
 541  535          /* now update usba_ph_impl structure */
 542  536          mutex_enter(&ph_impl->usba_ph_mutex);
 543  537          ph_impl->usba_ph_dip = dip;
↓ open down ↓ 1166 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX