Deleted Added
full compact
usb_transfer.c (187180) usb_transfer.c (188411)
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_transfer.c 187180 2009-01-13 19:04:58Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_transfer.c 188411 2009-02-09 21:56:33Z 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.

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

1061 uint32_t temp;
1062
1063 USB_BUS_LOCK_ASSERT(info->bus, MA_OWNED);
1064
1065 /* wait for any outstanding DMA operations */
1066
1067 if (needs_delay) {
1068 temp = usb2_get_dma_delay(info->bus);
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.

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

1061 uint32_t temp;
1062
1063 USB_BUS_LOCK_ASSERT(info->bus, MA_OWNED);
1064
1065 /* wait for any outstanding DMA operations */
1066
1067 if (needs_delay) {
1068 temp = usb2_get_dma_delay(info->bus);
1069 usb2_pause_mtx(&info->bus->bus_mtx, temp);
1069 usb2_pause_mtx(&info->bus->bus_mtx,
1070 USB_MS_TO_TICKS(temp));
1070 }
1071
1072 /* make sure that our done messages are not queued anywhere */
1073 usb2_proc_mwait(info->done_p, &info->done_m[0], &info->done_m[1]);
1074
1075 USB_BUS_UNLOCK(info->bus);
1076
1077 /* free DMA'able memory, if any */

--- 1744 unchanged lines hidden ---
1071 }
1072
1073 /* make sure that our done messages are not queued anywhere */
1074 usb2_proc_mwait(info->done_p, &info->done_m[0], &info->done_m[1]);
1075
1076 USB_BUS_UNLOCK(info->bus);
1077
1078 /* free DMA'able memory, if any */

--- 1744 unchanged lines hidden ---