Deleted Added
full compact
usb_device.c (192500) usb_device.c (192502)
1/* $FreeBSD: head/sys/dev/usb/usb_device.c 192500 2009-05-21 01:05:21Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb/usb_device.c 192502 2009-05-21 01:48:42Z thompsa $ */
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.

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

82static void usb2_cdev_free(struct usb2_device *);
83static void usb2_cdev_cleanup(void *);
84#endif
85
86/* This variable is global to allow easy access to it: */
87
88int usb2_template = 0;
89
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.

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

82static void usb2_cdev_free(struct usb2_device *);
83static void usb2_cdev_cleanup(void *);
84#endif
85
86/* This variable is global to allow easy access to it: */
87
88int usb2_template = 0;
89
90SYSCTL_INT(_hw_usb2, OID_AUTO, template, CTLFLAG_RW,
90SYSCTL_INT(_hw_usb, OID_AUTO, template, CTLFLAG_RW,
91 &usb2_template, 0, "Selected USB device side template");
92
93static const char* statestr[USB_STATE_MAX] = {
94 [USB_STATE_DETACHED] = "DETACHED",
95 [USB_STATE_ATTACHED] = "ATTACHED",
96 [USB_STATE_POWERED] = "POWERED",
97 [USB_STATE_ADDRESSED] = "ADDRESSED",
98 [USB_STATE_CONFIGURED] = "CONFIGURED",

--- 2378 unchanged lines hidden ---
91 &usb2_template, 0, "Selected USB device side template");
92
93static const char* statestr[USB_STATE_MAX] = {
94 [USB_STATE_DETACHED] = "DETACHED",
95 [USB_STATE_ATTACHED] = "ATTACHED",
96 [USB_STATE_POWERED] = "POWERED",
97 [USB_STATE_ADDRESSED] = "ADDRESSED",
98 [USB_STATE_CONFIGURED] = "CONFIGURED",

--- 2378 unchanged lines hidden ---