Deleted Added
sdiff udiff text old ( 184610 ) new ( 184824 )
full compact
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_core.h 184610 2008-11-04 02:31:03Z alfred $ */
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.

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

154/* macros */
155
156#define usb2_callout_init_mtx(c,m,f) callout_init_mtx(&(c)->co,m,f)
157#define usb2_callout_reset(c,t,f,d) callout_reset(&(c)->co,t,f,d)
158#define usb2_callout_stop(c) callout_stop(&(c)->co)
159#define usb2_callout_drain(c) callout_drain(&(c)->co)
160#define usb2_callout_pending(c) callout_pending(&(c)->co)
161
162/* structure prototypes */
163
164struct file;
165struct usb2_bus;
166struct usb2_device;
167struct usb2_page;
168struct usb2_page_cache;
169struct usb2_xfer;

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

299 TAILQ_ENTRY(usb2_xfer) wait_entry; /* used at various places */
300
301 struct usb2_page_cache *buf_fixup; /* fixup buffer(s) */
302 struct usb2_xfer_queue *wait_queue; /* pointer to queue that we
303 * are waiting on */
304 struct usb2_page *dma_page_ptr;
305 struct usb2_pipe *pipe; /* our USB pipe */
306 struct usb2_device *udev;
307 struct mtx *priv_mtx; /* cannot be changed during operation */
308 struct mtx *usb2_mtx; /* used by HC driver */
309 struct usb2_xfer_root *usb2_root; /* used by HC driver */
310 void *usb2_sc; /* used by HC driver */
311 void *qh_start[2]; /* used by HC driver */
312 void *td_start[2]; /* used by HC driver */
313 void *td_transfer_first; /* used by HC driver */
314 void *td_transfer_last; /* used by HC driver */
315 void *td_transfer_cache; /* used by HC driver */
316 void *priv_sc; /* device driver data pointer 1 */

--- 132 unchanged lines hidden ---