mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
On some newer platforms the device ignore the configure request to disable ZLP, causing the Firehose program request to stall, when the device is waiting for a ZLP to end a transfer. Mitigate this by circumventing the qcserial driver and drive the USB traffic directly using USBFS. The tool will attempt to detach qcserial from the device, in case it's already attached, so no changes are needed in the kernel or system configuration. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
25 lines
526 B
C
25 lines
526 B
C
#ifndef __PROGRAM_H__
|
|
#define __PROGRAM_H__
|
|
|
|
#include <stdbool.h>
|
|
#include "qdl.h"
|
|
|
|
struct program {
|
|
unsigned sector_size;
|
|
unsigned file_offset;
|
|
const char *filename;
|
|
const char *label;
|
|
unsigned num_sectors;
|
|
unsigned partition;
|
|
const char *start_sector;
|
|
|
|
struct program *next;
|
|
};
|
|
|
|
int program_load(const char *program_file);
|
|
int program_execute(struct qdl_device *qdl, int (*apply)(struct qdl_device *qdl, struct program *program, int fd),
|
|
const char *incdir);
|
|
int program_find_bootable_partition(void);
|
|
|
|
#endif
|