mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
Add missing SPDX license identifiers to source files. Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
35 lines
903 B
C
35 lines
903 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
#ifndef __PROGRAM_H__
|
|
#define __PROGRAM_H__
|
|
|
|
#include <stdbool.h>
|
|
#include "qdl.h"
|
|
|
|
struct program {
|
|
unsigned int pages_per_block;
|
|
unsigned int sector_size;
|
|
unsigned int file_offset;
|
|
const char *filename;
|
|
const char *label;
|
|
unsigned int num_sectors;
|
|
unsigned int partition;
|
|
const char *start_sector;
|
|
unsigned int last_sector;
|
|
|
|
bool is_nand;
|
|
bool is_erase;
|
|
|
|
struct program *next;
|
|
};
|
|
|
|
int program_load(const char *program_file, bool is_nand);
|
|
int program_execute(struct qdl_device *qdl, int (*apply)(struct qdl_device *qdl, struct program *program, int fd),
|
|
const char *incdir, bool allow_missing);
|
|
int erase_execute(struct qdl_device *qdl, int (*apply)(struct qdl_device *qdl, struct program *program));
|
|
int program_find_bootable_partition(bool *multiple_found);
|
|
int program_is_sec_partition_flashed(void);
|
|
|
|
void free_programs(void);
|
|
|
|
#endif
|