linux_usb.c (227461) | linux_usb.c (233774) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_compat_linux.c 227461 2011-11-12 08:16:45Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_compat_linux.c 233774 2012-04-02 10:50:42Z hselasky $ */ |
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 --- 865 unchanged lines hidden (view full) --- 875 uint8_t iface_no; 876 877 /* 878 * We do two passes. One pass for computing necessary memory size 879 * and one pass to initialize all the allocated memory structures. 880 */ 881 for (pass = 0; pass < 2; pass++) { 882 | 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 --- 865 unchanged lines hidden (view full) --- 875 uint8_t iface_no; 876 877 /* 878 * We do two passes. One pass for computing necessary memory size 879 * and one pass to initialize all the allocated memory structures. 880 */ 881 for (pass = 0; pass < 2; pass++) { 882 |
883 iface_no_curr = 0 - 1; | 883 iface_no_curr = 0xFFFF; |
884 niface_total = 0; 885 iface_index = 0; 886 nedesc = 0; 887 desc = NULL; 888 889 /* 890 * Iterate over all the USB descriptors. Use the USB config 891 * descriptor pointer provided by the FreeBSD USB stack. --- 841 unchanged lines hidden --- | 884 niface_total = 0; 885 iface_index = 0; 886 nedesc = 0; 887 desc = NULL; 888 889 /* 890 * Iterate over all the USB descriptors. Use the USB config 891 * descriptor pointer provided by the FreeBSD USB stack. --- 841 unchanged lines hidden --- |