e6236e975a4a5e9f0bebce4226586f391ac8cf41
[platform/core/system/deviced.git] / src / power / doze.h
1 /*
2  * deviced
3  *
4  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #ifndef __DOZE_H__
20 #define __DOZE_H__
21
22 /* To request pmqos start and stop for Doze */
23 #define DOZE_PMQOS_START        1
24 #define DOZE_PMQOS_STOP         0
25
26 void enter_doze(void);
27 void leave_doze(void);
28 int doze_init(void);
29 int doze_exit(void);
30 int doze_pmqos_request(int req);
31 #endif