summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/bezel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/bezel.h b/hw/bezel.h
index 4be3bb9..d27e044 100644
--- a/hw/bezel.h
+++ b/hw/bezel.h
@@ -34,6 +34,13 @@ enum bezel_state {
BEZEL_TURNON,
};
+enum bezel_vib_state {
+ BEZEL_VIB_NONE = 0,
+ BEZEL_VIB_LIGHT,
+ BEZEL_VIB_MEDIUM,
+ BEZEL_VIB_STRONG,
+};
+
struct bezel_device {
struct hw_common common;
@@ -45,6 +52,10 @@ struct bezel_device {
/* Control software bezel state */
int (*get_sw_state)(enum bezel_state *state);
int (*set_sw_state)(enum bezel_state state);
+
+ /* Control bezel vibration state */
+ int (*get_vib_state)(enum bezel_vib_state *state);
+ int (*set_vib_state)(enum bezel_vib_state state);
};
#endif