// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2018-2020 * Allwinner Technology Co., Ltd. * wangwei * */ #ifndef _SYS_PARTITION_H #define _SYS_PARTITION_H #include #include #include #include int sunxi_probe_partition_map(void); int sunxi_partition_get_partno_byname(const char *part_name); int sunxi_partition_get_info(const char *part_name, disk_partition_t *info); uint sunxi_partition_get_offset_byname(const char *part_name); lbaint_t sunxi_partition_get_offset(int part_index); int sunxi_partition_get_info_byname(const char *part_name, uint *part_offset, uint *part_size); #define GPT_SIGNATURE "EFI PART" #endif