hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
kernel/include/linux/usb/hcd.h
....@@ -119,6 +119,7 @@
119119 #define HCD_FLAG_DEAD 6 /* controller has died? */
120120 #define HCD_FLAG_INTF_AUTHORIZED 7 /* authorize interfaces? */
121121 #define HCD_FLAG_DEV_AUTHORIZED 8 /* authorize devices? */
122
+#define HCD_FLAG_POWER_ON 9 /* power on */
122123
123124 /* The flags can be tested using these macros; they are likely to
124125 * be slightly faster than test_bit().
....@@ -146,6 +147,8 @@
146147 #define HCD_DEV_AUTHORIZED(hcd) \
147148 ((hcd)->flags & (1U << HCD_FLAG_DEV_AUTHORIZED))
148149
150
+#define HCD_POWER_ON(hcd) ((hcd)->flags & (1U << HCD_FLAG_POWER_ON))
151
+
149152 /* Flags that get set only during HCD registration or removal. */
150153 unsigned rh_registered:1;/* is root hub registered? */
151154 unsigned rh_pollable:1; /* may we poll the root hub? */