11bd4fe43Sopenharmony_ci/** 21bd4fe43Sopenharmony_ci * @file hi_partition_table.h 31bd4fe43Sopenharmony_ci * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 41bd4fe43Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 51bd4fe43Sopenharmony_ci * you may not use this file except in compliance with the License. 61bd4fe43Sopenharmony_ci * You may obtain a copy of the License at 71bd4fe43Sopenharmony_ci * 81bd4fe43Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 91bd4fe43Sopenharmony_ci * 101bd4fe43Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 111bd4fe43Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 121bd4fe43Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 131bd4fe43Sopenharmony_ci * See the License for the specific language governing permissions and 141bd4fe43Sopenharmony_ci * limitations under the License. 151bd4fe43Sopenharmony_ci */ 161bd4fe43Sopenharmony_ci 171bd4fe43Sopenharmony_ci/** @defgroup iot_flash_partiton FLASH Partition Management 181bd4fe43Sopenharmony_ci * @ingroup system 191bd4fe43Sopenharmony_ci */ 201bd4fe43Sopenharmony_ci#ifndef __HI_PARTITION_TABLE_H__ 211bd4fe43Sopenharmony_ci#define __HI_PARTITION_TABLE_H__ 221bd4fe43Sopenharmony_ci#include <hi_types.h> 231bd4fe43Sopenharmony_ci 241bd4fe43Sopenharmony_ci#define HI_FLASH_PARTITON_MAX 12 251bd4fe43Sopenharmony_ci/** 261bd4fe43Sopenharmony_ci * @ingroup iot_flash_partiton 271bd4fe43Sopenharmony_ci * 281bd4fe43Sopenharmony_ci * Partition entry ID. CNcomment:分区项ID。CNend 291bd4fe43Sopenharmony_ci */ 301bd4fe43Sopenharmony_citypedef enum { 311bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_BOOT = 0, /**< Boot partition ID.CNcomment:BOOT分区ID.CNend */ 321bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_FACTORY_NV, /**< Factory NV working partition ID.CNcomment:工厂NV分区ID.CNend */ 331bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_NORMAL_NV, /**< NORMAL NV partition ID.CNcomment:非工厂NV分区ID.CNend */ 341bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_NORMAL_NV_BACKUP, /**< NORMAL backup NV partition ID.CNcomment:非工厂NV备份分区ID,必须和非工厂区连续.CNend */ 351bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_KERNEL_A, /**< Kernel A running partition ID.CNcomment:内核A区ID.CNend */ 361bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_KERNEL_B, /**< Kernel B runing partition ID.CNcomment:内核B区ID.CNend */ 371bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_HILINK, /**< HILINK partition ID.CNcomment:HILINK分区ID(未使用HILINK可不需要).CNend */ 381bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_FILE_SYSTEM, /**< File system partition ID.CNcomment:文件系统区ID.CNend */ 391bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_USR_RESERVE, /**< User Reserved partition.CNcomment:用户保留区ID.CNend */ 401bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_HILINK_PKI, /**< HiLink PKI partition.CNcomment: HILINK PKI证书ID(未使用HILINK可不需要). CNend */ 411bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_CRASH_INFO, /**< Crash log partition.CNcomment:死机存储区ID.CNend */ 421bd4fe43Sopenharmony_ci HI_FLASH_PARTITON_BOOT_BACK, /**< Boot backup partition.CNcomment:备份boot区ID. CNend */ 431bd4fe43Sopenharmony_ci} hi_flash_partition_table_id; 441bd4fe43Sopenharmony_ci 451bd4fe43Sopenharmony_ci/** 461bd4fe43Sopenharmony_ci * @ingroup iot_flash_partiton 471bd4fe43Sopenharmony_ci * 481bd4fe43Sopenharmony_ci * Flash partition management. CNcomment:Flash分区表项。CNend 491bd4fe43Sopenharmony_ci */ 501bd4fe43Sopenharmony_citypedef struct { 511bd4fe43Sopenharmony_ci hi_u32 addr : 24; /**< Flash partition address.The value is 16 MB.If the address is in reverse order, 521bd4fe43Sopenharmony_ci the value is the end low address.CNcomment:Flash分区地址,限制为16MB, 531bd4fe43Sopenharmony_ci 如果为倒序,存放为结束的低地址值 CNend */ 541bd4fe43Sopenharmony_ci hi_u32 id : 7; /**< Flash partition ID.CNcomment:Flash区ID.CNend */ 551bd4fe43Sopenharmony_ci hi_u32 dir : 1; /**< Flash area storage direction.0:regular.1: reversed.CNcomment:Flash区存放方向。 561bd4fe43Sopenharmony_ci 0:分区内容正序;1:倒序末地址 CNend */ 571bd4fe43Sopenharmony_ci 581bd4fe43Sopenharmony_ci hi_u32 size : 24; /**< Size of the parition(Unit:byte).CNcomment:Flash分区大小(单位:byte)CNend */ 591bd4fe43Sopenharmony_ci hi_u32 reserve : 8; /**< Reserved. CNcomment:保留区CNend */ 601bd4fe43Sopenharmony_ci 611bd4fe43Sopenharmony_ci hi_u32 addition; /**< Supplementary information about the flash partition, such as the address of the 621bd4fe43Sopenharmony_ci Ram.CNcomment:Flash分区补充信息,如Ram对应地址等 CNend */ 631bd4fe43Sopenharmony_ci} hi_flash_partition_info; 641bd4fe43Sopenharmony_ci 651bd4fe43Sopenharmony_ci 661bd4fe43Sopenharmony_ci/** 671bd4fe43Sopenharmony_ci * @ingroup iot_flash_partiton 681bd4fe43Sopenharmony_ci * 691bd4fe43Sopenharmony_ci * Flash partition table. CNcomment:Flash分区表。CNend 701bd4fe43Sopenharmony_ci */ 711bd4fe43Sopenharmony_citypedef struct { 721bd4fe43Sopenharmony_ci hi_flash_partition_info table[HI_FLASH_PARTITON_MAX]; /**< Flash partition entry information.CNcomment: 731bd4fe43Sopenharmony_ci Flash分区表项描述 CNend */ 741bd4fe43Sopenharmony_ci} hi_flash_partition_table; 751bd4fe43Sopenharmony_ci 761bd4fe43Sopenharmony_ci/** 771bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 781bd4fe43Sopenharmony_ci* @brief Obtains the flash partition table. CNcomment:获取Flash分区表。CNend 791bd4fe43Sopenharmony_ci* 801bd4fe43Sopenharmony_ci* @par 描述: 811bd4fe43Sopenharmony_ci* Obtains the flash partition table. CNcomment:获取Flash分区表。CNend 821bd4fe43Sopenharmony_ci* 831bd4fe43Sopenharmony_ci* @attention None 841bd4fe43Sopenharmony_ci* @param None 851bd4fe43Sopenharmony_ci* 861bd4fe43Sopenharmony_ci* @retval #hi_flash_partition_table Pointer to partition table information. CNcomment:分区表指针。CNend 871bd4fe43Sopenharmony_ci* @par 依赖: 881bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 891bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 901bd4fe43Sopenharmony_ci* @see None 911bd4fe43Sopenharmony_ci*/ 921bd4fe43Sopenharmony_cihi_flash_partition_table *hi_get_partition_table(hi_void); 931bd4fe43Sopenharmony_ci 941bd4fe43Sopenharmony_ci/** 951bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 961bd4fe43Sopenharmony_ci* @brief Initializes the flash partition table. CNcomment:Flash分区表初始化。CNend 971bd4fe43Sopenharmony_ci* 981bd4fe43Sopenharmony_ci* @par 描述: 991bd4fe43Sopenharmony_ci* Initializes the flash partition table. CNcomment:Flash分区表初始化。CNend 1001bd4fe43Sopenharmony_ci* 1011bd4fe43Sopenharmony_ci* @attention None 1021bd4fe43Sopenharmony_ci* @param None 1031bd4fe43Sopenharmony_ci* 1041bd4fe43Sopenharmony_ci* @retval #0 Success 1051bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 1061bd4fe43Sopenharmony_ci* @par 依赖: 1071bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 1081bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 1091bd4fe43Sopenharmony_ci* @see None 1101bd4fe43Sopenharmony_ci*/ 1111bd4fe43Sopenharmony_cihi_u32 hi_flash_partition_init(hi_void); 1121bd4fe43Sopenharmony_ci 1131bd4fe43Sopenharmony_ci/** 1141bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 1151bd4fe43Sopenharmony_ci* @brief Get HiLink partition table'addr and size. CNcomment:获取HiLink分区地址和大小。CNend 1161bd4fe43Sopenharmony_ci* 1171bd4fe43Sopenharmony_ci* @par 描述: 1181bd4fe43Sopenharmony_ci* Get HiLink partition table'addr and size. CNcomment:获取HiLink分区地址和大小。CNend 1191bd4fe43Sopenharmony_ci* 1201bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 1211bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of HiLink partition.CNcomment:HiLink分区地址。CNend 1221bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of HiLink partitioin, in bytes.CNcomment:HiLink分区大小,单位byte。CNend 1231bd4fe43Sopenharmony_ci* 1241bd4fe43Sopenharmony_ci* @retval #0 Success 1251bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 1261bd4fe43Sopenharmony_ci* @par 依赖: 1271bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 1281bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 1291bd4fe43Sopenharmony_ci* @see None 1301bd4fe43Sopenharmony_ci*/ 1311bd4fe43Sopenharmony_cihi_u32 hi_get_hilink_partition_table(hi_u32 *addr, hi_u32 *size); 1321bd4fe43Sopenharmony_ci 1331bd4fe43Sopenharmony_ci/** 1341bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 1351bd4fe43Sopenharmony_ci* @brief Get HiLink PKI partition table'addr and size. CNcomment:获取HiLink PKI 分区地址和大小。CNend 1361bd4fe43Sopenharmony_ci* 1371bd4fe43Sopenharmony_ci* @par 描述: 1381bd4fe43Sopenharmony_ci* Get HiLink PKI partition table'addr and size. CNcomment:获取HiLink PKI 分区地址和大小。CNend 1391bd4fe43Sopenharmony_ci* 1401bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 1411bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of HiLink PKI partition.CNcomment:HiLink PKI分区地址。CNend 1421bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of HiLink PKI partitioin, in bytes.CNcomment:HiLink PKI分区大小,单位byte。CNend 1431bd4fe43Sopenharmony_ci* 1441bd4fe43Sopenharmony_ci* @retval #0 Success 1451bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 1461bd4fe43Sopenharmony_ci* @par 依赖: 1471bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 1481bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 1491bd4fe43Sopenharmony_ci* @see None 1501bd4fe43Sopenharmony_ci*/ 1511bd4fe43Sopenharmony_cihi_u32 hi_get_hilink_pki_partition_table(hi_u32 *addr, hi_u32 *size); 1521bd4fe43Sopenharmony_ci 1531bd4fe43Sopenharmony_ci 1541bd4fe43Sopenharmony_ci/** 1551bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 1561bd4fe43Sopenharmony_ci* @brief Get Crash info partition table'addr and size. CNcomment:获取死机信息分区地址和大小。CNend 1571bd4fe43Sopenharmony_ci* 1581bd4fe43Sopenharmony_ci* @par 描述: 1591bd4fe43Sopenharmony_ci* Get Crash info partition table'addr and size. CNcomment:获取死机信息分区地址和大小。CNend 1601bd4fe43Sopenharmony_ci* 1611bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 1621bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of Crash info partition.CNcomment:死机信息分区地址。CNend 1631bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of Crash info partitioin, in bytes.CNcomment:死机信息分区大小,单位byte。CNend 1641bd4fe43Sopenharmony_ci* 1651bd4fe43Sopenharmony_ci* @retval #0 Success 1661bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 1671bd4fe43Sopenharmony_ci* @par 依赖: 1681bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 1691bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 1701bd4fe43Sopenharmony_ci* @see None 1711bd4fe43Sopenharmony_ci*/ 1721bd4fe43Sopenharmony_cihi_u32 hi_get_crash_partition_table(hi_u32 *addr, hi_u32 *size); 1731bd4fe43Sopenharmony_ci 1741bd4fe43Sopenharmony_ci/** 1751bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 1761bd4fe43Sopenharmony_ci* @brief Get File system partition table'addr and size. CNcomment:获取文件系统分区地址和大小。CNend 1771bd4fe43Sopenharmony_ci* 1781bd4fe43Sopenharmony_ci* @par 描述: 1791bd4fe43Sopenharmony_ci* Get File system partition table'addr and size. CNcomment:获取文件系统分区地址和大小。CNend 1801bd4fe43Sopenharmony_ci* 1811bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 1821bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of File system partition.CNcomment:文件系统分区地址。CNend 1831bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of HiLink partitioin, in bytes.CNcomment:文件系统分区大小,单位byte。CNend 1841bd4fe43Sopenharmony_ci* 1851bd4fe43Sopenharmony_ci* @retval #0 Success 1861bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 1871bd4fe43Sopenharmony_ci* @par 依赖: 1881bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 1891bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 1901bd4fe43Sopenharmony_ci* @see None 1911bd4fe43Sopenharmony_ci*/ 1921bd4fe43Sopenharmony_cihi_u32 hi_get_fs_partition_table(hi_u32 *addr, hi_u32 *size); 1931bd4fe43Sopenharmony_ci 1941bd4fe43Sopenharmony_ci/** 1951bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 1961bd4fe43Sopenharmony_ci* @brief Get Normal NV partition table'addr and size. CNcomment:获取非工厂区分区地址和大小。CNend 1971bd4fe43Sopenharmony_ci* 1981bd4fe43Sopenharmony_ci* @par 描述: 1991bd4fe43Sopenharmony_ci* Get Normal NV partition table'addr and size. CNcomment:获取非工厂区分区地址和大小。CNend 2001bd4fe43Sopenharmony_ci* 2011bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 2021bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of Normal NV partition.CNcomment:非工厂区分区地址。CNend 2031bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of Normal NV partitioin, in bytes.CNcomment:非工厂区分区大小,单位byte。CNend 2041bd4fe43Sopenharmony_ci* 2051bd4fe43Sopenharmony_ci* @retval #0 Success 2061bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 2071bd4fe43Sopenharmony_ci* @par 依赖: 2081bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 2091bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 2101bd4fe43Sopenharmony_ci* @see None 2111bd4fe43Sopenharmony_ci*/ 2121bd4fe43Sopenharmony_cihi_u32 hi_get_normal_nv_partition_table(hi_u32 *addr, hi_u32 *size); 2131bd4fe43Sopenharmony_ci 2141bd4fe43Sopenharmony_ci/** 2151bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 2161bd4fe43Sopenharmony_ci* @brief Get Normal NV backup partition table'addr and size. CNcomment:获取非工厂备份区分区地址和大小。CNend 2171bd4fe43Sopenharmony_ci* 2181bd4fe43Sopenharmony_ci* @par 描述: 2191bd4fe43Sopenharmony_ci* Get Normal NV backup partition table'addr and size. CNcomment:获取非工厂备份区分区地址和大小。CNend 2201bd4fe43Sopenharmony_ci* 2211bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 2221bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of Normal NV backup partition.CNcomment:非工厂备份区分区地址。CNend 2231bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of Normal NV backup partitioin, in bytes.CNcomment:非工厂备份区分区大小,单位byte。CNend 2241bd4fe43Sopenharmony_ci* 2251bd4fe43Sopenharmony_ci* @retval #0 Success 2261bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 2271bd4fe43Sopenharmony_ci* @par 依赖: 2281bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 2291bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 2301bd4fe43Sopenharmony_ci* @see None 2311bd4fe43Sopenharmony_ci*/ 2321bd4fe43Sopenharmony_cihi_u32 hi_get_normal_nv_backup_partition_table(hi_u32 *addr, hi_u32 *size); 2331bd4fe43Sopenharmony_ci 2341bd4fe43Sopenharmony_ci/** 2351bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 2361bd4fe43Sopenharmony_ci* @brief Get User's reserved NV partition table'addr and size. CNcomment:获取用户保留区分区地址和大小。CNend 2371bd4fe43Sopenharmony_ci* 2381bd4fe43Sopenharmony_ci* @par 描述: 2391bd4fe43Sopenharmony_ci* Get User's reserved NV partition table'addr and size. CNcomment:获取用户保留区分区地址和大小。CNend 2401bd4fe43Sopenharmony_ci* 2411bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 2421bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of user partition.CNcomment:用户保留区分区地址。CNend 2431bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of user partitioin, in bytes.CNcomment:用户保留区分区大小,单位byte。CNend 2441bd4fe43Sopenharmony_ci* 2451bd4fe43Sopenharmony_ci* @retval #0 Success 2461bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 2471bd4fe43Sopenharmony_ci* @par 依赖: 2481bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 2491bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 2501bd4fe43Sopenharmony_ci* @see None 2511bd4fe43Sopenharmony_ci*/ 2521bd4fe43Sopenharmony_cihi_u32 hi_get_usr_partition_table(hi_u32 *addr, hi_u32 *size); 2531bd4fe43Sopenharmony_ci 2541bd4fe43Sopenharmony_ci/** 2551bd4fe43Sopenharmony_ci* @ingroup iot_flash_partiton 2561bd4fe43Sopenharmony_ci* @brief Get Factory bin'addr and size. CNcomment:获取产测BIN 地址和大小。CNend 2571bd4fe43Sopenharmony_ci* 2581bd4fe43Sopenharmony_ci* @par 描述: 2591bd4fe43Sopenharmony_ci* Get Factory bin'addr and size.. CNcomment:获取产测BIN 地址和大小。CNend 2601bd4fe43Sopenharmony_ci* 2611bd4fe43Sopenharmony_ci* @attention Call after hi_flash_partition_init. CNcomment:在hi_flash_partition_init之后调用。CNend 2621bd4fe43Sopenharmony_ci* @param addr [OUT] type #hi_u32*, Address of factory bin.CNcomment:产测BIN 地址。CNend 2631bd4fe43Sopenharmony_ci* @param size [OUT] type #hi_u32*, Size of factory bin, in bytes.CNcomment:产测bin 大小,单位byte。CNend 2641bd4fe43Sopenharmony_ci* 2651bd4fe43Sopenharmony_ci* @retval #0 Success 2661bd4fe43Sopenharmony_ci* @retval #Other Failure. For details, see hi_errno.h. 2671bd4fe43Sopenharmony_ci* @par 依赖: 2681bd4fe43Sopenharmony_ci* @li hi_partition_table.h:Describes flash partition APIs. 2691bd4fe43Sopenharmony_ciCNcomment:文件用于描述Flash分区相关接口。CNend 2701bd4fe43Sopenharmony_ci* @see None 2711bd4fe43Sopenharmony_ci*/ 2721bd4fe43Sopenharmony_cihi_u32 hi_get_factory_bin_partition_table(hi_u32 *addr, hi_u32 *size); 2731bd4fe43Sopenharmony_ci 2741bd4fe43Sopenharmony_ci#endif 2751bd4fe43Sopenharmony_ci 276