/* usb/lib/pipe-utils.h
 *
 * (c) 2002 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB Library: pipe utility functions
 *
 * $Id: pipe-utils.h,v 1.8 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_PIPE_UTILS_H
#define __USB_LIB_PIPE_UTILS_H "$Id: pipe-utils.h,v 1.8 2003/08/06 15:56:11 ben Exp $"

#include "usb/pipe.h"

/** Obtains the default pipe on an endpoint
@param device pointer to device struct
@param controller pointer to controler struct
@param endpoint pointer to store endpoint reference for the pipe
*/
usb_pipe_t* usb_get_default_pipe(void *device,
				 void *controller,
				 struct usb_endpoint_s ** endpoint);

#endif /* __USB_LIB_PIPE_UTILS_H */
