[BACK]Return to if_upl.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/usb/if_upl.c between version 1.59 and 1.59.8.2

version 1.59, 2017/01/12 18:26:08 version 1.59.8.2, 2018/01/31 18:01:54
Line 228  upl_attach(device_t parent, device_t sel
Line 228  upl_attach(device_t parent, device_t sel
         usb_interface_descriptor_t      *id;          usb_interface_descriptor_t      *id;
         usb_endpoint_descriptor_t       *ed;          usb_endpoint_descriptor_t       *ed;
         int                     i;          int                     i;
           int                     rv;
   
         DPRINTFN(5,(" : upl_attach: sc=%p, dev=%p", sc, dev));          DPRINTFN(5,(" : upl_attach: sc=%p, dev=%p", sc, dev));
   
Line 307  upl_attach(device_t parent, device_t sel
Line 308  upl_attach(device_t parent, device_t sel
         IFQ_SET_READY(&ifp->if_snd);          IFQ_SET_READY(&ifp->if_snd);
   
         /* Attach the interface. */          /* Attach the interface. */
         if_initialize(ifp);          rv = if_initialize(ifp);
           if (rv != 0) {
                   aprint_error_dev(self, "if_initialize failed(%d)\n", rv);
                   splx(s);
                   return;
           }
         if_register(ifp);          if_register(ifp);
         if_alloc_sadl(ifp);          if_alloc_sadl(ifp);
   
Line 436  upl_rx_list_init(struct upl_softc *sc)
Line 442  upl_rx_list_init(struct upl_softc *sc)
                         return ENOBUFS;                          return ENOBUFS;
                 if (c->upl_xfer == NULL) {                  if (c->upl_xfer == NULL) {
                         int error = usbd_create_xfer(sc->sc_ep[UPL_ENDPT_RX],                          int error = usbd_create_xfer(sc->sc_ep[UPL_ENDPT_RX],
                             UPL_BUFSZ, USBD_SHORT_XFER_OK, 0, &c->upl_xfer);                              UPL_BUFSZ, 0, 0, &c->upl_xfer);
                         if (error)                          if (error)
                                 return error;                                  return error;
                         c->upl_buf = usbd_get_buffer(c->upl_xfer);                          c->upl_buf = usbd_get_buffer(c->upl_xfer);

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.59.8.2

CVSweb <webmaster@jp.NetBSD.org>