Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 2010 22:19:08 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Weongyo Jeong <weongyo@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-user@freebsd.org" <svn-src-user@freebsd.org>
Subject:   Re: svn commit: r213847 - user/weongyo/usb/sys/dev/usb
Message-ID:  <201010142219.08408.hselasky@c2i.net>
In-Reply-To: <201010142004.o9EK458X035369@svn.freebsd.org>
References:  <201010142004.o9EK458X035369@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 14 October 2010 22:04:05 Weongyo Jeong wrote:
> +       for (i = 0; i < up->up_frames; i++) {
> +               if (ptr + sizeof(u_int32_t) >= end)
> +                       goto done;
> +               *((u_int32_t *)ptr) = xfer->frlengths[i];
> +               ptr += sizeof(u_int32_t);
> +
> +               if (ptr + xfer->frlengths[i] >= end)
> +                       goto done;
> +               usbd_get_page(&xfer->frbuffers[i], 0, &res);
> +               bcopy(res.buffer, ptr, xfer->frlengths[i]);
> +               ptr += xfer->frlengths[i];
> +       }

For isochronous transfers only the first frbuffer is used for all transfers, 
which are back to back.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010142219.08408.hselasky>