/* usb/lib/devreset.h
 *
 * (c) 2002 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB Library - device reset 
 *
 * $Id: devreset.h,v 1.4 2003/08/06 15:56:11 ben Exp $
 *
 * This Library file is part of the Simtec Electronics USB stack development
 *   suite.
 * Specific licence is granted to use this file by third parties for the
 *   development of USB device drivers.
*/

#ifndef __USB_LIB_DEVRESET_H
#define __USB_LIB_DEVRESET_H "$Id: devreset.h,v 1.4 2003/08/06 15:56:11 ben Exp $"

#define USBHUB_RESETFLAG_FULLRECONFIG	(0x01)

/* replug will simulate device removal and re-insertion. The waiting will
 * not be used in this case */
#define USBHUB_RESETFLAG_REPLUG        	(0x02)

/* note, the reset may take time to complete / start.
 * the waiting structure is written directly to, unlike the requests, so
 *  do not pass it to anything else
*/

extern int usblib_reset_device(usb_device_t device,
                               unsigned int flags,
                               usb_wait_t *wait);


#endif /* __USB_LIB_DEVRESET_H */
