Deleted Added
full compact
usb_bus.h (190754) usb_bus.h (191400)
1/* $FreeBSD: head/sys/dev/usb/usb_bus.h 190754 2009-04-06 00:22:49Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb/usb_bus.h 191400 2009-04-22 17:08:10Z 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.

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

57
58/*
59 * The following structure defines an USB BUS. There is one USB BUS
60 * for every Host or Device controller.
61 */
62struct usb2_bus {
63 struct usb2_bus_stat stats_err;
64 struct usb2_bus_stat stats_ok;
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.

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

57
58/*
59 * The following structure defines an USB BUS. There is one USB BUS
60 * for every Host or Device controller.
61 */
62struct usb2_bus {
63 struct usb2_bus_stat stats_err;
64 struct usb2_bus_stat stats_ok;
65 struct usb2_process explore_proc;
66 struct usb2_sw_transfer roothub_req;
67 struct root_hold_token *bus_roothold;
68 /*
69 * There are two callback processes. One for Giant locked
70 * callbacks. One for non-Giant locked callbacks. This should
71 * avoid congestion and reduce response time in most cases.
72 */
73 struct usb2_process giant_callback_proc;
74 struct usb2_process non_giant_callback_proc;
65 struct usb2_sw_transfer roothub_req;
66 struct root_hold_token *bus_roothold;
67 /*
68 * There are two callback processes. One for Giant locked
69 * callbacks. One for non-Giant locked callbacks. This should
70 * avoid congestion and reduce response time in most cases.
71 */
72 struct usb2_process giant_callback_proc;
73 struct usb2_process non_giant_callback_proc;
74
75 /* Explore process */
76 struct usb2_process explore_proc;
77
78 /* Control request process */
79 struct usb2_process control_xfer_proc;
80
75 struct usb2_bus_msg explore_msg[2];
76 struct usb2_bus_msg detach_msg[2];
77 struct usb2_bus_msg attach_msg[2];
78 /*
79 * This mutex protects the USB hardware:
80 */
81 struct mtx bus_mtx;
82 struct usb2_xfer_queue intr_q;

--- 32 unchanged lines hidden ---
81 struct usb2_bus_msg explore_msg[2];
82 struct usb2_bus_msg detach_msg[2];
83 struct usb2_bus_msg attach_msg[2];
84 /*
85 * This mutex protects the USB hardware:
86 */
87 struct mtx bus_mtx;
88 struct usb2_xfer_queue intr_q;

--- 32 unchanged lines hidden ---