mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user