/* usb/lib/reg-dev.h
 *
 * (c) 2003 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB Library: Header file for device registration utils
 *
 * $Id: reg-dev.h,v 1.2 2003/10/20 13:24:09 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_DEV_REG_H
#define __USB_LIB_DEV_REG_H "$Id: reg-dev.h,v 1.2 2003/10/20 13:24:09 ben Exp $"

/** Create an new device
@memo Create an new device, given information about it
@param hc Host-controller to register this endpoint on
@param dev_no Pointer to device number
@param dev_reg Device registration information
@param result Pointer to result 
*/

usb_device_t usblib_device_register(struct usb_hc_s *hc,
		                    unsigned long *dev_no,
		                    struct usb2_devreg_s *dev_reg,
		                    int *result);

#endif /* __USB_LIB_DEV_REG_H */
