Changeset 268
- Timestamp:
- Feb 5, 2011, 3:50:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-mos-driver/if_mos.c
r267 r268 1039 1039 struct usb_page_cache *pc; 1040 1040 int actlen; 1041 1042 // DPRINTF("%s: %s: enter\n", "mos", __func__); 1041 long pkt; 1042 1043 //DPRINTF("%s: %s: enter\n", "mos", __func__); 1043 1044 ifp->if_oerrors++; 1044 1045 1045 1046 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); 1047 DPRINTF("%s: %s: actlen %i\n", "mos", __func__, actlen); 1046 1048 1047 1049 //XXX: Porting, how? mos_txeof(c->mos_xfer, c, stat); 1048 1050 switch (USB_GET_STATE(xfer)) { 1049 1051 case USB_ST_TRANSFERRED: 1050 //DPRINTF("State is ST_TRANS\n");1052 DPRINTF("State is ST_TRANS\n"); 1051 1053 1052 1054 pc = usbd_xfer_get_frame(xfer, 0); 1053 //usbd_copy_out(pc, 0, &pkt, sizeof(pkt));1055 usbd_copy_out(pc, 0, &pkt, sizeof(pkt)); 1054 1056 /* FALLTHROUGH */ 1055 1057 case USB_ST_SETUP: 1056 1058 tr_setup: 1057 //DPRINTF("State is ST_SETUP\n");1058 usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));1059 usbd_transfer_submit(xfer);1059 DPRINTF("State is ST_SETUP\n"); 1060 //usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer)); 1061 //usbd_transfer_submit(xfer); 1060 1062 return; 1061 1063 default: /* Error */
Note:
See TracChangeset
for help on using the changeset viewer.