summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2019-02-26 17:54:25 +0900
committerlokilee73 <changjoo.lee@samsung.com>2019-02-26 17:58:02 +0900
commit271c35ba999bd2909d1a352ed6ef9ae54745e377 (patch)
treeeb71f4349db70ecd0238753feb3b890a5bedfe45
parentc85f0a736fdebb805b5f12586b009ffa2a8f52e5 (diff)
downloadlibdevice-node-271c35ba999bd2909d1a352ed6ef9ae54745e377.tar.gz
libdevice-node-271c35ba999bd2909d1a352ed6ef9ae54745e377.tar.bz2
libdevice-node-271c35ba999bd2909d1a352ed6ef9ae54745e377.zip
Add bezel for wearable target
Change-Id: I1ba5453324fcf50f62dbf439ba303c87275580e1 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rw-r--r--hw/bezel.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/hw/bezel.h b/hw/bezel.h
new file mode 100644
index 0000000..a908702
--- /dev/null
+++ b/hw/bezel.h
@@ -0,0 +1,45 @@
+/*
+ * libdevice-node
+ *
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef __HW_BEZEL_H__
+#define __HW_BEZEL_H__
+
+#include <hw/common.h>
+
+/**
+ * The id of this device
+ */
+#define BEZEL_HARDWARE_DEVICE_ID "bezel"
+
+#define BEZEL_HARDWARE_DEVICE_VERSION MAKE_VERSION(0,1)
+
+enum bezel_state {
+ BEZEL_TURNOFF = 0,
+ BEZEL_TURNON,
+};
+
+struct bezel_device {
+ struct hw_common common;
+
+ /* Control display state */
+ int (*get_state)(enum bezel_state *state);
+ int (*set_state)(enum bezel_state state);
+};
+
+#endif