Add bezel for wearable target 38/200538/2
authorlokilee73 <changjoo.lee@samsung.com>
Tue, 26 Feb 2019 08:54:25 +0000 (17:54 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Tue, 26 Feb 2019 08:58:02 +0000 (17:58 +0900)
Change-Id: I1ba5453324fcf50f62dbf439ba303c87275580e1
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
hw/bezel.h [new file with mode: 0644]

diff --git a/hw/bezel.h b/hw/bezel.h
new file mode 100644 (file)
index 0000000..a908702
--- /dev/null
@@ -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