--- /dev/null
+/*
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * 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 __HAL_DEVICE_BOARD_INTERFACE_1_H__
+#define __HAL_DEVICE_BOARD_INTERFACE_1_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _hal_backend_device_board_funcs {
+ /* Serial number of this device */
+ int (*get_device_serial_number)(char *buffer, const int max_len);
+ int (*get_device_revision)(int *revision);
+
+ int (*set_boot_success)(void);
+ int (*clear_boot_mode)(void);
+ int (*get_boot_mode)(char *buffer, const int max_len);
+ int (*get_boot_reason)(char *buffer, const int max_len);
+
+ int (*get_current_partition)(char *partition_ab);
+ int (*switch_partition)(char partition_ab);
+ int (*set_partition_ab_cloned)(void);
+ int (*clear_partition_ab_cloned)(void);
+ int (*get_partition_ab_cloned)(int *cloned);
+ int (*set_partition_status)(char partition_ab, const char *status);
+ int (*get_partition_status)(char partition_ab, char *buffer, const int max_len);
+
+ int (*set_upgrade_status)(int status);
+ int (*get_upgrade_status)(int *status);
+} hal_backend_device_board_funcs;
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __HAL_DEVICE_BOARD_INTERFACE_1_H__ */
*/
-#ifndef __HAL_BOARD_INTERFACE_H__
-#define __HAL_BOARD_INTERFACE_H__
+#ifndef __HAL_DEVICE_BOARD_INTERFACE_H__
+#define __HAL_DEVICE_BOARD_INTERFACE_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "hal-device-board-interface-1.h"
-typedef struct _hal_backend_device_board_funcs {
- /* Serial number of this device */
- int (*get_device_serial_number)(char *buffer, const int max_len);
- int (*get_device_revision)(int *revision);
-
- int (*set_boot_success)(void);
- int (*clear_boot_mode)(void);
- int (*get_boot_mode)(char *buffer, const int max_len);
- int (*get_boot_reason)(char *buffer, const int max_len);
-
- int (*get_current_partition)(char *partition_ab);
- int (*switch_partition)(char partition_ab);
- int (*set_partition_ab_cloned)(void);
- int (*clear_partition_ab_cloned)(void);
- int (*get_partition_ab_cloned)(int *cloned);
- int (*set_partition_status)(char partition_ab, const char *status);
- int (*get_partition_status)(char partition_ab, char *buffer, const int max_len);
-
- int (*set_upgrade_status)(int status);
- int (*get_upgrade_status)(int *status);
-
-} hal_backend_device_board_funcs;
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __HAL_BOARD_INTERFACE_H__ */
+#endif /* __HAL_DEVICE_BOARD_INTERFACE_H__ */