Deleted Added
full compact
usb_transfer.c (263159) usb_transfer.c (276717)
1/* $FreeBSD: head/sys/dev/usb/usb_transfer.c 263159 2014-03-14 08:42:30Z hselasky $ */
1/* $FreeBSD: head/sys/dev/usb/usb_transfer.c 276717 2015-01-05 20:22:18Z hselasky $ */
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.

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

955 info->xfer_page_cache_end = USB_ADD_BYTES(buf, parm->size[2]);
956
957 cv_init(&info->cv_drain, "WDRAIN");
958
959 info->xfer_mtx = xfer_mtx;
960#if USB_HAVE_BUSDMA
961 usb_dma_tag_setup(&info->dma_parent_tag,
962 parm->dma_tag_p, udev->bus->dma_parent_tag[0].tag,
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.

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

955 info->xfer_page_cache_end = USB_ADD_BYTES(buf, parm->size[2]);
956
957 cv_init(&info->cv_drain, "WDRAIN");
958
959 info->xfer_mtx = xfer_mtx;
960#if USB_HAVE_BUSDMA
961 usb_dma_tag_setup(&info->dma_parent_tag,
962 parm->dma_tag_p, udev->bus->dma_parent_tag[0].tag,
963 xfer_mtx, &usb_bdma_done_event, 32, parm->dma_tag_max);
963 xfer_mtx, &usb_bdma_done_event, udev->bus->dma_bits,
964 parm->dma_tag_max);
964#endif
965
966 info->bus = udev->bus;
967 info->udev = udev;
968
969 TAILQ_INIT(&info->done_q.head);
970 info->done_q.command = &usbd_callback_wrapper;
971#if USB_HAVE_BUSDMA

--- 2486 unchanged lines hidden ---
965#endif
966
967 info->bus = udev->bus;
968 info->udev = udev;
969
970 TAILQ_INIT(&info->done_q.head);
971 info->done_q.command = &usbd_callback_wrapper;
972#if USB_HAVE_BUSDMA

--- 2486 unchanged lines hidden ---