usb_busdma.c (190749) | usb_busdma.c (192499) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_busdma.c 190749 2009-04-05 21:24:15Z piso $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_busdma.c 192499 2009-05-21 00:04:17Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 1264 unchanged lines hidden (view full) --- 1274 * flush operations. 1275 */ 1276 isread = USB_GET_DATA_ISREAD(xfer); 1277 pg = xfer->dma_page_ptr; 1278 1279 if (xfer->flags_int.control_xfr && 1280 xfer->flags_int.control_hdr) { 1281 /* special case */ | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 1264 unchanged lines hidden (view full) --- 1274 * flush operations. 1275 */ 1276 isread = USB_GET_DATA_ISREAD(xfer); 1277 pg = xfer->dma_page_ptr; 1278 1279 if (xfer->flags_int.control_xfr && 1280 xfer->flags_int.control_hdr) { 1281 /* special case */ |
1282 if (xfer->flags_int.usb2_mode == USB_MODE_DEVICE) { | 1282 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { |
1283 /* The device controller writes to memory */ 1284 xfer->frbuffers[0].isread = 1; 1285 } else { 1286 /* The host controller reads from memory */ 1287 xfer->frbuffers[0].isread = 0; 1288 } 1289 } else { 1290 /* default case */ --- 148 unchanged lines hidden --- | 1283 /* The device controller writes to memory */ 1284 xfer->frbuffers[0].isread = 1; 1285 } else { 1286 /* The host controller reads from memory */ 1287 xfer->frbuffers[0].isread = 0; 1288 } 1289 } else { 1290 /* default case */ --- 148 unchanged lines hidden --- |