Add MS class skeleton

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3174 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-12-14 16:35:10 +00:00
parent ada8f95fec
commit ce984b707a
2 changed files with 149 additions and 2 deletions
+21 -2
View File
@@ -113,7 +113,7 @@ struct usbhost_registry_s
* provide those instances in write-able memory (RAM).
*/
struct usbhsot_registry_s flink;
struct usbhost_registry_s flink;
/* This is a callback into the class implementation. It is used to (1) create
* a new instance of the USB host class state and to (2) bind a USB host driver
@@ -122,7 +122,7 @@ struct usbhost_registry_s
* simultaneously connected (see the CLASS_CREATE() macro above).
*/
struct usbhost_class_s *(*create)(struct usbhost_driver_s *drvr);
struct usbhost_class_s *(*create)(struct usbhost_driver_s *drvr);
/* This information uniquely identifies the USB host class implementation that
* goes with a specific USB device.
@@ -191,6 +191,25 @@ EXTERN int usbhost_registerclass(struct usbhost_registry_s *class);
EXTERN const struct usbhost_registry_s *usbhost_findclass(const struct usbhost_id_s *id);
/****************************************************************************
* Name: usbhost_storageinit
*
* Description:
* Initialize the USB host storage class. This function should be called
* be platform-specific code in order to initialize and register support
* for the USB host storage class.
*
* Input Parameters:
* None
*
* Returned Values:
* On success this function will return zero (OK); A negated errno value
* will be returned on failure.
*
****************************************************************************/
EXTERN int usbhost_storageinit(void);
#undef EXTERN
#if defined(__cplusplus)
}