/* usb/lib/reg-ep.h
 *
 * (c) 2003 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB Library: Header file for endpoint registration utils
 *
 * $Id: reg-ep.h,v 1.3 2003/10/20 22:00:17 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_EP_REGS_H
#define __USB_LIB_EP_REGS_H "$Id: reg-ep.h,v 1.3 2003/10/20 22:00:17 ben Exp $"

/** Create an new endpoint
@memo Create an new endpoint, given information about it
@param dev Device this endpoint belongs to
@param ep_no Endpoint number, in USB stack format.
@param ep_descr Pointer to USB1.1/2.0 endpoint descriptor
@param result Pointer to 
*/
extern usb_endpoint_t usblib_endpoint_register(usb_device_t dev, 
					       unsigned long ep_no,
					       void *ep_descr,
					       int *result);

#endif /* __USB_LIB_EP_REGS_H */
