]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/soc/qcom/mdt_loader.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / include / linux / soc / qcom / mdt_loader.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __QCOM_MDT_LOADER_H__
3 #define __QCOM_MDT_LOADER_H__
4
5 #include <linux/types.h>
6
7 #define QCOM_MDT_TYPE_MASK (7 << 24)
8 #define QCOM_MDT_TYPE_HASH (2 << 24)
9 #define QCOM_MDT_RELOCATABLE BIT(27)
10
11 struct device;
12 struct firmware;
13
14 ssize_t qcom_mdt_get_size(const struct firmware *fw);
15 int qcom_mdt_load(struct device *dev, const struct firmware *fw,
16 const char *fw_name, int pas_id, void *mem_region,
17 phys_addr_t mem_phys, size_t mem_size);
18
19 #endif