usb_transfer.c (6cec9cad762b6476313fb1f8e931a1647822db6b) | usb_transfer.c (b217d1841299b7cbb400f6b2e9d66189897eb8c0) |
---|---|
1/* $FreeBSD$ */ 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 --- 946 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, | 1/* $FreeBSD$ */ 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 --- 946 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 --- |