linux_usb.c (205803) | linux_usb.c (207080) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_compat_linux.c 205803 2010-03-28 20:04:03Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_compat_linux.c 207080 2010-04-22 22:15:08Z thompsa $ */ |
2/*- 3 * Copyright (c) 2007 Luigi Rizzo - Universita` di Pisa. All rights reserved. 4 * Copyright (c) 2007 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 956 unchanged lines hidden (view full) --- 966 967 udev->linux_iface_start = p_ui; 968 udev->linux_iface_end = p_ui + iface_index; 969 udev->linux_endpoint_start = p_uhe; 970 udev->linux_endpoint_end = p_uhe + nedesc; 971 udev->devnum = device_get_unit(dev); 972 bcopy(&udev->ddesc, &udev->descriptor, 973 sizeof(udev->descriptor)); | 2/*- 3 * Copyright (c) 2007 Luigi Rizzo - Universita` di Pisa. All rights reserved. 4 * Copyright (c) 2007 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 956 unchanged lines hidden (view full) --- 966 967 udev->linux_iface_start = p_ui; 968 udev->linux_iface_end = p_ui + iface_index; 969 udev->linux_endpoint_start = p_uhe; 970 udev->linux_endpoint_end = p_uhe + nedesc; 971 udev->devnum = device_get_unit(dev); 972 bcopy(&udev->ddesc, &udev->descriptor, 973 sizeof(udev->descriptor)); |
974 bcopy(udev->default_ep.edesc, &udev->ep0.desc, | 974 bcopy(udev->ctrl_ep.edesc, &udev->ep0.desc, |
975 sizeof(udev->ep0.desc)); 976 } 977 } 978 return (0); 979} 980 981/*------------------------------------------------------------------------* 982 * usb_alloc_urb --- 750 unchanged lines hidden --- | 975 sizeof(udev->ep0.desc)); 976 } 977 } 978 return (0); 979} 980 981/*------------------------------------------------------------------------* 982 * usb_alloc_urb --- 750 unchanged lines hidden --- |