Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / power_hal / src / power_hal.cpp
1 /*
2  * @copyright Copyright (c) 2017-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "power_hal.h"
18
19 int PsmNaviResetPower(HANDLE h_app, PsmFactorT reset_factor) {
20   if (NULL == h_app) {
21     return -1;
22   }
23
24   return 0;
25 }
26
27 int PsmClrRamJudgeFlgPower(HANDLE h_app) {
28   if (NULL == h_app) {
29     return -1;
30   }
31
32   return 0;
33 }
34
35 int PsmGetDramBackupStatusPower(HANDLE h_app, PsmSysupDramT *p_dram1, PsmSysupDramT *p_dram2, PsmSysupDramT *p_dram3) {
36   if (NULL == h_app) {
37     return -1;
38   }
39
40   return 0;
41 }
42
43 int PsmGetStartStatusPower(HANDLE h_app, PsmStartStatusT *p_start_sts) {
44   if (NULL == h_app) {
45     return -1;
46   }
47
48   return 0;
49 }
50
51 int PsmGetSyscomStatusPower(HANDLE h_app, PsmComStsT *p_com_sts) {
52   if (NULL == h_app) {
53     return -1;
54   }
55
56   return 0;
57 }
58
59 int PsmGetDramPowerSupplyAbnormalityCheckResultPower(HANDLE h_app, PsmDramStsT *p_dram_sts) {
60   if (NULL == h_app) {
61     return -1;
62   }
63
64   return 0;
65 }
66
67 int PsmGetAccCustomizeSetting(HANDLE h_app, PsmAccCustomizeT* p_acc_customize) {
68   if (NULL == h_app) {
69     return -1;
70   }
71   *p_acc_customize = PSM_ACC_CUSTOMIZE_ON;
72   return 0;
73 }
74
75 int PsmChgAccCustomizeSetting(HANDLE h_app, PsmAccCustomizeT acc_customize) {
76   if (NULL == h_app) {
77     return -1;
78   }
79
80   return 0;
81 }
82
83 int PsmGetStartupFactor(HANDLE h_app, PsmFactorT* p_startup_factor) {
84   if (NULL == h_app) {
85     return -1;
86   }
87   *p_startup_factor = PSM_FACTOR_NONE;
88   return 0;
89 }
90
91 int PowerHalSetResetInfo(enum PowerHalResetInfoId id, uint32_t val) {
92   return 0;
93 }
94
95 int PowerHalGetResetInfo(enum PowerHalResetInfoId id, uint32_t *val) {
96   return 0;
97 }