[PSDK]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 29 Jun 2017 08:09:44 +0000 (08:09 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 29 Jun 2017 08:09:44 +0000 (08:09 +0000)
- Add USB_HUB_CHANGE and USB_HUB_STATUS_AND_CHANGE

svn path=/trunk/; revision=75229

reactos/sdk/include/psdk/usb200.h

index 63ed4d9..182df19 100644 (file)
@@ -196,6 +196,27 @@ typedef union _USB_HUB_STATUS {
 
 C_ASSERT(sizeof(USB_HUB_STATUS) == sizeof(USHORT));
 
 
 C_ASSERT(sizeof(USB_HUB_STATUS) == sizeof(USHORT));
 
+typedef union _USB_HUB_CHANGE {
+  USHORT AsUshort16;
+  struct {
+    USHORT LocalPowerChange:1;
+    USHORT OverCurrentChange:1;
+    USHORT Reserved:14;
+  };
+} USB_HUB_CHANGE, *PUSB_HUB_CHANGE;
+
+C_ASSERT(sizeof(USB_HUB_CHANGE) == sizeof(USHORT));
+
+typedef union _USB_HUB_STATUS_AND_CHANGE {
+  ULONG AsUlong32;
+  struct {
+    USB_HUB_STATUS HubStatus;
+    USB_HUB_CHANGE HubChange;
+  };
+} USB_HUB_STATUS_AND_CHANGE, *PUSB_HUB_STATUS_AND_CHANGE;
+
+C_ASSERT(sizeof(USB_HUB_STATUS_AND_CHANGE) == sizeof(ULONG));
+
 #define USB_DEVICE_CLASS_RESERVED             0x00
 #define USB_DEVICE_CLASS_AUDIO                0x01
 #define USB_DEVICE_CLASS_COMMUNICATIONS       0x02
 #define USB_DEVICE_CLASS_RESERVED             0x00
 #define USB_DEVICE_CLASS_AUDIO                0x01
 #define USB_DEVICE_CLASS_COMMUNICATIONS       0x02