PERFORCE change 133183 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Jan 13 03:45:54 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133183
Change 133183 by hselasky at hselasky_laptop001 on 2008/01/13 11:45:39
Style change by "usb_style.sh".
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/ohci.c#58 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/ohci.c#58 (text+ko) ====
@@ -1921,7 +1921,7 @@
nframes = le32toh(hcca->hcca_frame_number);
DPRINTFN(5, ("xfer=%p isoc_next=%u nframes=%u hcca_fn=%u\n",
- xfer, xfer->pipe->isoc_next, xfer->nframes, nframes));
+ xfer, xfer->pipe->isoc_next, xfer->nframes, nframes));
if ((LIST_FIRST(&(xfer->pipe->list_head)) == NULL) ||
(((nframes - xfer->pipe->isoc_next) & 0xFFFF) < xfer->nframes) ||
@@ -1978,11 +1978,11 @@
plen++;
ncur++;
- if (/* check if the ITD is full */
+ if ( /* check if the ITD is full */
(ncur == OHCI_ITD_NOFFSET) ||
- /* check if we have put more than 4K into the ITD */
- (length & 0xF000) ||
- /* check if it is the last frame */
+ /* check if we have put more than 4K into the ITD */
+ (length & 0xF000) ||
+ /* check if it is the last frame */
(nframes == 0)) {
/* fill current ITD */
@@ -2001,24 +2001,24 @@
td->itd_be = ~0;
while (ncur--) {
- td->itd_offset[ncur] =
- htole16(OHCI_ITD_MK_OFFS(0));
+ td->itd_offset[ncur] =
+ htole16(OHCI_ITD_MK_OFFS(0));
}
} else {
- usbd_get_page(xfer->frbuffers + 0, buf_offset-length, &buf_res);
+ usbd_get_page(xfer->frbuffers + 0, buf_offset - length, &buf_res);
length = OHCI_PAGE_MASK(buf_res.physaddr);
- buf_res.physaddr =
- OHCI_PAGE(buf_res.physaddr);
+ buf_res.physaddr =
+ OHCI_PAGE(buf_res.physaddr);
td->itd_bp0 = htole32(buf_res.physaddr);
- usbd_get_page(xfer->frbuffers + 0, buf_offset-1, &buf_res);
+ usbd_get_page(xfer->frbuffers + 0, buf_offset - 1, &buf_res);
td->itd_be = htole32(buf_res.physaddr);
while (ncur--) {
itd_offset[ncur] += length;
- itd_offset[ncur] =
- OHCI_ITD_MK_OFFS(itd_offset[ncur]);
- td->itd_offset[ncur] =
- htole16(itd_offset[ncur]);
+ itd_offset[ncur] =
+ OHCI_ITD_MK_OFFS(itd_offset[ncur]);
+ td->itd_offset[ncur] =
+ htole16(itd_offset[ncur]);
}
}
ncur = 0;
More information about the p4-projects
mailing list