diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-14 16:35:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-14 16:35:10 +0000 |
commit | c50f2a170433a0f85212c81374bbb62806ad3768 (patch) | |
tree | a2a1f5aad769298908aeb89c0634bd8eb2a12680 /nuttx/include/nuttx/usb/usbhost.h | |
parent | a27081f6dd44ec2fa6fa02a2c08af2c6730591c8 (diff) | |
download | nuttx-c50f2a170433a0f85212c81374bbb62806ad3768.tar.gz nuttx-c50f2a170433a0f85212c81374bbb62806ad3768.tar.bz2 nuttx-c50f2a170433a0f85212c81374bbb62806ad3768.zip |
Add MS class skeleton
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3174 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/usb/usbhost.h')
-rw-r--r-- | nuttx/include/nuttx/usb/usbhost.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h index 867843170..972584fd1 100644 --- a/nuttx/include/nuttx/usb/usbhost.h +++ b/nuttx/include/nuttx/usb/usbhost.h @@ -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) } |