ufoma.c (ed6d949afdbe3f25e6ef640881d8a0a72d7b7aa8) ufoma.c (8f9e0ef947d29b8728c62a941c13e127120701fc)
1/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD$");
5#define UFOMA_HANDSFREE
6/*-
7 * Copyright (c) 2005, Takanori Watanabe
8 * Copyright (c) 2003, M. Warner Losh <imp@FreeBSD.org>.

--- 557 unchanged lines hidden (view full) ---

566 usbd_xfer_status(xfer, NULL, NULL, &aframes, &nframes);
567
568 switch (USB_GET_STATE(xfer)) {
569 case USB_ST_TRANSFERRED:
570tr_transferred:
571 if (aframes != nframes)
572 goto tr_setup;
573 pc1 = usbd_xfer_get_frame(xfer, 1);
1/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD$");
5#define UFOMA_HANDSFREE
6/*-
7 * Copyright (c) 2005, Takanori Watanabe
8 * Copyright (c) 2003, M. Warner Losh <imp@FreeBSD.org>.

--- 557 unchanged lines hidden (view full) ---

566 usbd_xfer_status(xfer, NULL, NULL, &aframes, &nframes);
567
568 switch (USB_GET_STATE(xfer)) {
569 case USB_ST_TRANSFERRED:
570tr_transferred:
571 if (aframes != nframes)
572 goto tr_setup;
573 pc1 = usbd_xfer_get_frame(xfer, 1);
574 len = usbd_xfer_get_frame_len(xfer, 1);
574 len = usbd_xfer_frame_len(xfer, 1);
575 if (len > 0)
576 ucom_put_data(&sc->sc_ucom, pc1, 0, len);
577 /* FALLTHROUGH */
578 case USB_ST_SETUP:
579tr_setup:
580 if (sc->sc_num_msg) {
581 sc->sc_num_msg--;
582

--- 661 unchanged lines hidden ---
575 if (len > 0)
576 ucom_put_data(&sc->sc_ucom, pc1, 0, len);
577 /* FALLTHROUGH */
578 case USB_ST_SETUP:
579tr_setup:
580 if (sc->sc_num_msg) {
581 sc->sc_num_msg--;
582

--- 661 unchanged lines hidden ---