usb_hub.h (190754) | usb_hub.h (192499) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_hub.h 190754 2009-04-06 00:22:49Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_hub.h 192499 2009-05-21 00:04:17Z 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. --- 19 unchanged lines hidden (view full) --- 29 30/* 31 * The following structure defines an USB port. 32 */ 33struct usb2_port { 34 uint8_t restartcnt; 35#define USB_RESTART_MAX 5 36 uint8_t device_index; /* zero means not valid */ | 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. --- 19 unchanged lines hidden (view full) --- 29 30/* 31 * The following structure defines an USB port. 32 */ 33struct usb2_port { 34 uint8_t restartcnt; 35#define USB_RESTART_MAX 5 36 uint8_t device_index; /* zero means not valid */ |
37 uint8_t usb2_mode:1; /* current USB mode */ 38 uint8_t unused:7; | 37 enum usb_hc_mode usb_mode; /* host or device mode */ |
39}; 40 41/* 42 * The following structure defines how many bytes are 43 * left in an 1ms USB time slot. 44 */ 45struct usb2_fs_isoc_schedule { 46 uint16_t total_bytes; --- 37 unchanged lines hidden --- | 38}; 39 40/* 41 * The following structure defines how many bytes are 42 * left in an 1ms USB time slot. 43 */ 44struct usb2_fs_isoc_schedule { 45 uint16_t total_bytes; --- 37 unchanged lines hidden --- |