summaryrefslogtreecommitdiff
path: root/common/usbx_device_classes/inc
diff options
context:
space:
mode:
authorScott Larson <[email protected]>2021-01-07 16:53:02 -0800
committerScott Larson <[email protected]>2021-01-07 16:53:02 -0800
commit9823f3857d7eb54c8416d9eab316aab0257130f9 (patch)
tree65690334fd54075e35169ff3d34040c66ba0dbe2 /common/usbx_device_classes/inc
parentd8014ecb428bb2d5cf50cba68dd8e7022ee35171 (diff)
update to v6.1.3v6.1.3_rel
Diffstat (limited to 'common/usbx_device_classes/inc')
-rw-r--r--common/usbx_device_classes/inc/ux_device_class_hid.h17
-rw-r--r--common/usbx_device_classes/inc/ux_device_class_storage.h10
2 files changed, 23 insertions, 4 deletions
diff --git a/common/usbx_device_classes/inc/ux_device_class_hid.h b/common/usbx_device_classes/inc/ux_device_class_hid.h
index 05e3833..fc86bdd 100644
--- a/common/usbx_device_classes/inc/ux_device_class_hid.h
+++ b/common/usbx_device_classes/inc/ux_device_class_hid.h
@@ -26,7 +26,7 @@
/* COMPONENT DEFINITION RELEASE */
/* */
/* ux_device_class_hid.h PORTABLE C */
-/* 6.1 */
+/* 6.1.3 */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -46,6 +46,10 @@
/* TX symbols instead of using */
/* them directly, */
/* resulting in version 6.1 */
+/* 12-31-2020 Chaoqiong Xiao Modified comment(s), */
+/* added Get/Set Protocol */
+/* request support, */
+/* resulting in version 6.1.3 */
/* */
/**************************************************************************/
@@ -79,6 +83,11 @@
#define UX_DEVICE_CLASS_HID_REPORT_TYPE_OUTPUT 0x2
#define UX_DEVICE_CLASS_HID_REPORT_TYPE_FEATURE 0x3
+/* Define HID Protocols. */
+
+#define UX_DEVICE_CLASS_HID_PROTOCOL_BOOT 0
+#define UX_DEVICE_CLASS_HID_PROTOCOL_REPORT 1
+
/* Define HID event info structure. */
#ifndef UX_DEVICE_CLASS_HID_EVENT_BUFFER_LENGTH
@@ -130,6 +139,7 @@ typedef struct UX_SLAVE_CLASS_HID_STRUCT
UX_EVENT_FLAGS_GROUP ux_device_class_hid_event_flags_group;
ULONG ux_device_class_hid_event_idle_rate;
ULONG ux_device_class_hid_event_wait_timeout;
+ ULONG ux_device_class_hid_protocol;
UX_SLAVE_CLASS_HID_EVENT *ux_device_class_hid_event_array;
UX_SLAVE_CLASS_HID_EVENT *ux_device_class_hid_event_array_head;
UX_SLAVE_CLASS_HID_EVENT *ux_device_class_hid_event_array_tail;
@@ -171,8 +181,7 @@ UINT _ux_device_class_hid_report_set(UX_SLAVE_CLASS_HID *hid, ULONG descriptor_
ULONG request_index, ULONG host_length);
UINT _ux_device_class_hid_report_get(UX_SLAVE_CLASS_HID *hid, ULONG descriptor_type,
ULONG request_index, ULONG host_length);
-
-
+
/* Define Device HID Class API prototypes. */
#define ux_device_class_hid_entry _ux_device_class_hid_entry
@@ -181,5 +190,7 @@ UINT _ux_device_class_hid_report_get(UX_SLAVE_CLASS_HID *hid, ULONG descriptor_
#define ux_device_class_hid_report_set _ux_device_class_hid_report_set
#define ux_device_class_hid_report_get _ux_device_class_hid_report_get
+#define ux_device_class_hid_protocol_get(hid) (hid -> ux_device_class_hid_protocol)
+
#endif
diff --git a/common/usbx_device_classes/inc/ux_device_class_storage.h b/common/usbx_device_classes/inc/ux_device_class_storage.h
index e658da8..c55bbec 100644
--- a/common/usbx_device_classes/inc/ux_device_class_storage.h
+++ b/common/usbx_device_classes/inc/ux_device_class_storage.h
@@ -26,7 +26,7 @@
/* COMPONENT DEFINITION RELEASE */
/* */
/* ux_device_class_storage.h PORTABLE C */
-/* 6.1 */
+/* 6.1.3 */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -44,6 +44,9 @@
/* 09-30-2020 Chaoqiong Xiao Modified comment(s), */
/* optimized command logic, */
/* resulting in version 6.1 */
+/* 12-31-2020 Chaoqiong Xiao Modified comment(s), */
+/* fixed USB CV test issues, */
+/* resulting in version 6.1.3 */
/* */
/**************************************************************************/
@@ -450,6 +453,11 @@ typedef struct UX_SLAVE_CLASS_STORAGE_STRUCT
UX_SLAVE_INTERFACE *ux_slave_class_storage_interface;
ULONG ux_slave_class_storage_number_lun;
UX_SLAVE_CLASS_STORAGE_LUN ux_slave_class_storage_lun[UX_MAX_SLAVE_LUN];
+ ULONG ux_slave_class_storage_host_length;
+ UCHAR ux_slave_class_storage_cbw_flags;
+ UCHAR ux_slave_class_storage_cbw_lun;
+ UCHAR ux_slave_class_storage_reserved[2];
+ ULONG ux_slave_class_storage_csw_residue;
ULONG ux_slave_class_storage_csw_status;
VOID (*ux_slave_class_storage_instance_activate)(VOID *);
VOID (*ux_slave_class_storage_instance_deactivate)(VOID *);