From: lokilee73 Date: Tue, 26 Feb 2019 08:54:25 +0000 (+0900) Subject: Add bezel for wearable target X-Git-Tag: submit/tizen/20190306.005724~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=271c35ba999bd2909d1a352ed6ef9ae54745e377;p=platform%2Fcore%2Fsystem%2Flibdevice-node.git Add bezel for wearable target Change-Id: I1ba5453324fcf50f62dbf439ba303c87275580e1 Signed-off-by: lokilee73 --- 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 + +/** + * 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