summaryrefslogtreecommitdiff
path: root/include/usb_charge.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_charge.h')
-rw-r--r--include/usb_charge.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_charge.h b/include/usb_charge.h
index 66e6611985..e67aba482e 100644
--- a/include/usb_charge.h
+++ b/include/usb_charge.h
@@ -34,4 +34,12 @@ enum usb_charge_mode {
*/
int usb_charge_set_mode(int usb_port_id, enum usb_charge_mode mode);
+/**
+ * Return a bitmask of which USB ports are enabled.
+ *
+ * If bit (1 << i) is set, port <i> is enabled. If it is clear, port <i> is
+ * in USB_CHARGE_MODE_DISABLED.
+ */
+int usb_charge_ports_enabled(void);
+
#endif /* __CROS_EC_USB_CHARGE_H */