usb_core.h (189599) | usb_core.h (190174) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_core.h 189599 2009-03-09 20:08:08Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_core.h 190174 2009-03-20 19:04:31Z 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. --- 142 unchanged lines hidden (view full) --- 152struct usb2_device; 153struct usb2_page; 154struct usb2_page_cache; 155struct usb2_xfer; 156struct usb2_xfer_root; 157 158/* typedefs */ 159 | 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. --- 142 unchanged lines hidden (view full) --- 152struct usb2_device; 153struct usb2_page; 154struct usb2_page_cache; 155struct usb2_xfer; 156struct usb2_xfer_root; 157 158/* typedefs */ 159 |
160typedef uint8_t usb2_error_t; 161 | |
162typedef void (usb2_callback_t)(struct usb2_xfer *); 163 | 160typedef void (usb2_callback_t)(struct usb2_xfer *); 161 |
162#ifndef USB_HAVE_USB_ERROR_T 163typedef uint8_t usb2_error_t; /* see "USB_ERR_XXX" */ 164#endif 165 166#ifndef USB_HAVE_TIMEOUT_T 167typedef uint32_t usb2_timeout_t; /* milliseconds */ 168#endif 169 170#ifndef USB_HAVE_LENGTH_T 171typedef uint32_t usb2_length_t; /* bytes */ 172#endif 173 174#ifndef USB_HAVE_FRAMES_T 175typedef uint32_t usb2_frames_t; /* units */ 176#endif 177 178#ifndef USB_HAVE_INTERVAL_T 179typedef uint32_t usb2_interval_t; /* milliseconds */ 180#endif 181 182#ifndef USB_HAVE_SIZE_T 183typedef uint32_t usb2_size_t; /* bytes */ 184#endif 185 186#ifndef USB_HAVE_REFS_T 187typedef uint32_t usb2_refs_t; /* units */ 188#endif 189 190#ifndef USB_HAVE_TICKS_T 191typedef uint32_t usb2_ticks_t; /* system defined */ 192#endif 193 |
|
164/* structures */ 165 166/* 167 * Common queue structure for USB transfers. 168 */ 169struct usb2_xfer_queue { 170 TAILQ_HEAD(, usb2_xfer) head; 171 struct usb2_xfer *curr; /* current USB transfer processed */ --- 244 unchanged lines hidden --- | 194/* structures */ 195 196/* 197 * Common queue structure for USB transfers. 198 */ 199struct usb2_xfer_queue { 200 TAILQ_HEAD(, usb2_xfer) head; 201 struct usb2_xfer *curr; /* current USB transfer processed */ --- 244 unchanged lines hidden --- |