Print this page
3419 usbftdi needs to support the BeagleBone

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/usb/clients/usbser/usbftdi/uftdi_var.h
          +++ new/usr/src/uts/common/sys/usb/clients/usbser/usbftdi/uftdi_var.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   24   */
       25 +/*
       26 + * Copyright 2012 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
       27 + */
  25   28  
  26   29  #ifndef _USBSER_USBFTDI_UFTDI_VAR_H
  27   30  #define _USBSER_USBFTDI_UFTDI_VAR_H
  28   31  
  29   32  /*
  30   33   * USB UFTDI definitions
  31   34   */
  32   35  
  33   36  #include <sys/types.h>
  34   37  #include <sys/dditypes.h>
↓ open down ↓ 42 lines elided ↑ open up ↑
  77   80           */
  78   81          usb_client_dev_data_t   *uf_dev_data;           /* registration data */
  79   82          usb_event_t             *uf_usb_events;         /* usb events */
  80   83          usb_pipe_handle_t       uf_def_ph;              /* default pipe hdl */
  81   84          usb_pipe_handle_t       uf_bulkin_ph;           /* in pipe hdl */
  82   85          int                     uf_bulkin_state;        /* in pipe state */
  83   86          usb_pipe_handle_t       uf_bulkout_ph;          /* in pipe hdl */
  84   87          int                     uf_bulkout_state;       /* out pipe state */
  85   88          usb_log_handle_t        uf_lh;                  /* USBA log handle */
  86   89          int                     uf_dev_state;           /* USB device state */
  87      -        size_t                  uf_xfer_sz;             /* HCI bulk xfer size */
       90 +        size_t                  uf_ibuf_sz;             /* input buffer size */
       91 +        size_t                  uf_obuf_sz;             /* output buffer size */
  88   92  
  89   93          uftdi_pm_t              *uf_pm;                 /* PM support */
  90   94  
  91   95          /*
  92   96           * data receive and transmit
  93   97           */
  94   98          mblk_t                  *uf_rx_mp;              /* rx data */
  95   99          mblk_t                  *uf_tx_mp;              /* tx data */
  96  100          kcondvar_t              uf_tx_cv;               /* tx completion */
  97  101  
↓ open down ↓ 7 lines elided ↑ open up ↑
 105  109  
 106  110  } uftdi_state_t;
 107  111  
 108  112  _NOTE(MUTEX_PROTECTS_DATA(uftdi_state::uf_lock, uftdi_state))
 109  113  _NOTE(DATA_READABLE_WITHOUT_LOCK(uftdi_state::{
 110  114          uf_dip
 111  115          uf_dev_data
 112  116          uf_usb_events
 113  117          uf_def_ph
 114  118          uf_lh
 115      -        uf_xfer_sz
      119 +        uf_ibuf_sz
      120 +        uf_obuf_sz
 116  121          uf_pm
 117  122          uf_port_state
 118  123          uf_cb
 119  124          uf_bulkin_ph
 120  125          uf_bulkout_ph
 121  126          uf_hwport
 122  127  }))
 123  128  
 124  129  /* port state */
 125  130  enum {
↓ open down ↓ 47 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX