diff options
Diffstat (limited to 'include/chipset.h')
-rw-r--r-- | include/chipset.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h index c48eb733b8..04cd1d84c7 100644 --- a/include/chipset.h +++ b/include/chipset.h @@ -52,6 +52,18 @@ enum chipset_state_mask { int chipset_in_state(int state_mask); /** + * Check if chipset is in a given state or if the chipset task is currently + * transitioning to that state. For example, G3S5, S5, and S3S5 would all count + * as the S5 state. + * + * @param state_mask Combination of one or more CHIPSET_STATE_* flags. + * + * @return non-zero if the chipset is in one of the states specified in the + * mask. + */ +int chipset_in_or_transitioning_to_state(int state_mask); + +/** * Ask the chipset to exit the hard off state. * * Does nothing if the chipset has already left the state, or was not in the |