summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/qcom_mdt_loader.h
blob: e513548e52ec66e352a7449c709a3083acce53e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __QCOM_MDT_LOADER_H__
#define __QCOM_MDT_LOADER_H__

#define QCOM_MDT_TYPE_MASK	(7 << 24)
#define QCOM_MDT_TYPE_HASH	(2 << 24)
#define QCOM_MDT_RELOCATABLE	BIT(27)

int qcom_mdt_load(struct rproc *rproc, const struct firmware *fw, const char *fw_name);

int qcom_mdt_parse(const struct firmware *fw, phys_addr_t *fw_addr, size_t *fw_size, bool *fw_relocate);

#endif