Composite: Add some structure definitions missed in first application of the patch.

This commit is contained in:
Gregory Nutt
2017-06-01 16:35:16 -06:00
parent ef33329e3a
commit 049ccbfcbe
2 changed files with 48 additions and 4 deletions
+43
View File
@@ -196,6 +196,49 @@
/* USB Controller Structures ********************************************************/
/* usbdev_description_s - describes the low level bindings of an usb device */
struct usbdev_description_s
{
int ninterfaces; /* Number of interfaces in the configuration */
int ifnobase; /* Offset to Interface-IDs */
int nstrings; /* Number of Strings */
int strbase; /* Offset to String Numbers */
int nendpoints; /* Number of Endpoints referenced in the following allay */
int epno[5]; /* Array holding the endpoint configuration for this device */
};
#ifdef CONFIG_USBDEV_COMPOSITE
struct composite_devdesc_s
{
#ifdef CONFIG_USBDEV_DUALSPEED
CODE int16_t (*mkconfdesc)(FAR uint8_t *buf,
FAR struct usbdev_description_s *devdesc,
uint8_t speed, uint8_t type);
#else
CODE int16_t (*mkconfdesc)(FAR uint8_t *buf,
FAR struct usbdev_description_s *devdesc);
#endif
CODE int (*mkstrdesc)(uint8_t id, FAR struct usb_strdesc_s *strdesc);
CODE int (*classobject)(int minor,
FAR struct usbdev_description_s *devdesc,
FAR struct usbdevclass_driver_s **classdev);
CODE void (*uninitialize)(FAR struct usbdevclass_driver_s *classdev);
int nconfigs; /* Number of configurations supported */
int configid; /* The only supported configuration ID */
int cfgdescsize; /* The size of the config descriptor */
int minor;
struct usbdev_description_s devdesc;
};
#endif
/* struct usbdev_req_s - describes one i/o request */
struct usbdev_ep_s;