usb_transfer.c (246616) | usb_transfer.c (259218) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_transfer.c 246616 2013-02-10 10:56:13Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_transfer.c 259218 2013-12-11 13:20:32Z 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. --- 145 unchanged lines hidden (view full) --- 155 * 156 * Returns: 157 * 0: no DMA delay required 158 * Else: milliseconds of DMA delay 159 *------------------------------------------------------------------------*/ 160usb_timeout_t 161usbd_get_dma_delay(struct usb_device *udev) 162{ | 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. --- 145 unchanged lines hidden (view full) --- 155 * 156 * Returns: 157 * 0: no DMA delay required 158 * Else: milliseconds of DMA delay 159 *------------------------------------------------------------------------*/ 160usb_timeout_t 161usbd_get_dma_delay(struct usb_device *udev) 162{ |
163 struct usb_bus_methods *mtod; | 163 const struct usb_bus_methods *mtod; |
164 uint32_t temp; 165 166 mtod = udev->bus->methods; 167 temp = 0; 168 169 if (mtod->get_dma_delay) { 170 (mtod->get_dma_delay) (udev, &temp); 171 /* --- 3245 unchanged lines hidden --- | 164 uint32_t temp; 165 166 mtod = udev->bus->methods; 167 temp = 0; 168 169 if (mtod->get_dma_delay) { 170 (mtod->get_dma_delay) (udev, &temp); 171 /* --- 3245 unchanged lines hidden --- |