| .. | .. |
|---|
| 119 | 119 | #define HCD_FLAG_DEAD 6 /* controller has died? */ |
|---|
| 120 | 120 | #define HCD_FLAG_INTF_AUTHORIZED 7 /* authorize interfaces? */ |
|---|
| 121 | 121 | #define HCD_FLAG_DEV_AUTHORIZED 8 /* authorize devices? */ |
|---|
| 122 | +#define HCD_FLAG_POWER_ON 9 /* power on */ |
|---|
| 122 | 123 | |
|---|
| 123 | 124 | /* The flags can be tested using these macros; they are likely to |
|---|
| 124 | 125 | * be slightly faster than test_bit(). |
|---|
| .. | .. |
|---|
| 146 | 147 | #define HCD_DEV_AUTHORIZED(hcd) \ |
|---|
| 147 | 148 | ((hcd)->flags & (1U << HCD_FLAG_DEV_AUTHORIZED)) |
|---|
| 148 | 149 | |
|---|
| 150 | +#define HCD_POWER_ON(hcd) ((hcd)->flags & (1U << HCD_FLAG_POWER_ON)) |
|---|
| 151 | + |
|---|
| 149 | 152 | /* Flags that get set only during HCD registration or removal. */ |
|---|
| 150 | 153 | unsigned rh_registered:1;/* is root hub registered? */ |
|---|
| 151 | 154 | unsigned rh_pollable:1; /* may we poll the root hub? */ |
|---|