mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
While already powerful, it's quite often one wants to read and write some specific GPT partition, and manually resolving the sectors and plugging these into either a XML file or the command line is tedious and error prone. Allow partition names in the address specifier of the "read" and "write" command line actions, and when these are used read the GPTs across all physical partitions to resolve the physical partition, start sector and sector count for the operation. This allow us to do things like: qdl prog_firehose.elf write abl_a abl2esp.elf write abl_b abl2esp.elf Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
11 lines
251 B
C
11 lines
251 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
#ifndef __GPT_H__
|
|
#define __GPT_H__
|
|
|
|
struct qdl_device;
|
|
|
|
int gpt_find_by_name(struct qdl_device *qdl, const char *name, int *partition,
|
|
unsigned int *start_sector, unsigned int *num_sectors);
|
|
|
|
#endif
|