usb.h (185290) | usb.h (186730) |
---|---|
1/* $FreeBSD: head/sys/dev/usb2/include/usb2_standard.h 185290 2008-11-25 08:04:40Z alfred $ */ | 1/* $FreeBSD: head/sys/dev/usb2/include/usb2_standard.h 186730 2009-01-04 00:12:01Z alfred $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 5 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 33 unchanged lines hidden (view full) --- 43 44/* 45 * Minimum time a device needs to be powered down to go through a 46 * power cycle. These values are not in the USB specification. 47 */ 48#define USB_POWER_DOWN_TIME 200 /* ms */ 49#define USB_PORT_POWER_DOWN_TIME 100 /* ms */ 50 | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 5 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 33 unchanged lines hidden (view full) --- 43 44/* 45 * Minimum time a device needs to be powered down to go through a 46 * power cycle. These values are not in the USB specification. 47 */ 48#define USB_POWER_DOWN_TIME 200 /* ms */ 49#define USB_PORT_POWER_DOWN_TIME 100 /* ms */ 50 |
51/* Definition of software USB power modes */ 52#define USB_POWER_MODE_OFF 0 /* turn off device */ 53#define USB_POWER_MODE_ON 1 /* always on */ 54#define USB_POWER_MODE_SAVE 2 /* automatic suspend and resume */ 55#define USB_POWER_MODE_SUSPEND 3 /* force suspend */ 56#define USB_POWER_MODE_RESUME 4 /* force resume */ 57 |
|
51#if 0 52/* These are the values from the USB specification. */ 53#define USB_PORT_RESET_DELAY 10 /* ms */ 54#define USB_PORT_ROOT_RESET_DELAY 50 /* ms */ 55#define USB_PORT_RESET_RECOVERY 10 /* ms */ 56#define USB_PORT_POWERUP_DELAY 100 /* ms */ | 58#if 0 59/* These are the values from the USB specification. */ 60#define USB_PORT_RESET_DELAY 10 /* ms */ 61#define USB_PORT_ROOT_RESET_DELAY 50 /* ms */ 62#define USB_PORT_RESET_RECOVERY 10 /* ms */ 63#define USB_PORT_POWERUP_DELAY 100 /* ms */ |
64#define USB_PORT_RESUME_DELAY 20 /* ms */ |
|
57#define USB_SET_ADDRESS_SETTLE 2 /* ms */ 58#define USB_RESUME_DELAY (20*5) /* ms */ 59#define USB_RESUME_WAIT 10 /* ms */ 60#define USB_RESUME_RECOVERY 10 /* ms */ 61#define USB_EXTRA_POWER_UP_TIME 0 /* ms */ 62#else 63/* Allow for marginal and non-conforming devices. */ 64#define USB_PORT_RESET_DELAY 50 /* ms */ 65#define USB_PORT_ROOT_RESET_DELAY 250 /* ms */ 66#define USB_PORT_RESET_RECOVERY 250 /* ms */ 67#define USB_PORT_POWERUP_DELAY 300 /* ms */ | 65#define USB_SET_ADDRESS_SETTLE 2 /* ms */ 66#define USB_RESUME_DELAY (20*5) /* ms */ 67#define USB_RESUME_WAIT 10 /* ms */ 68#define USB_RESUME_RECOVERY 10 /* ms */ 69#define USB_EXTRA_POWER_UP_TIME 0 /* ms */ 70#else 71/* Allow for marginal and non-conforming devices. */ 72#define USB_PORT_RESET_DELAY 50 /* ms */ 73#define USB_PORT_ROOT_RESET_DELAY 250 /* ms */ 74#define USB_PORT_RESET_RECOVERY 250 /* ms */ 75#define USB_PORT_POWERUP_DELAY 300 /* ms */ |
76#define USB_PORT_RESUME_DELAY (20*2) /* ms */ |
|
68#define USB_SET_ADDRESS_SETTLE 10 /* ms */ 69#define USB_RESUME_DELAY (50*5) /* ms */ 70#define USB_RESUME_WAIT 50 /* ms */ 71#define USB_RESUME_RECOVERY 50 /* ms */ 72#define USB_EXTRA_POWER_UP_TIME 20 /* ms */ 73#endif 74 75#define USB_MIN_POWER 100 /* mA */ --- 535 unchanged lines hidden --- | 77#define USB_SET_ADDRESS_SETTLE 10 /* ms */ 78#define USB_RESUME_DELAY (50*5) /* ms */ 79#define USB_RESUME_WAIT 50 /* ms */ 80#define USB_RESUME_RECOVERY 50 /* ms */ 81#define USB_EXTRA_POWER_UP_TIME 20 /* ms */ 82#endif 83 84#define USB_MIN_POWER 100 /* mA */ --- 535 unchanged lines hidden --- |