mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 07:25:14 +07:00
4dd27f544c
In order to implement support for grabbing core dumps in remoteproc it's necessary to know the relocated base of the image, as the offsets from the virtual memory base might not be based on the physical address. Return the adjusted physical base address to the caller. Acked-by: Andy Gross <andy.gross@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
21 lines
526 B
C
21 lines
526 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __QCOM_MDT_LOADER_H__
|
|
#define __QCOM_MDT_LOADER_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define QCOM_MDT_TYPE_MASK (7 << 24)
|
|
#define QCOM_MDT_TYPE_HASH (2 << 24)
|
|
#define QCOM_MDT_RELOCATABLE BIT(27)
|
|
|
|
struct device;
|
|
struct firmware;
|
|
|
|
ssize_t qcom_mdt_get_size(const struct firmware *fw);
|
|
int qcom_mdt_load(struct device *dev, const struct firmware *fw,
|
|
const char *fw_name, int pas_id, void *mem_region,
|
|
phys_addr_t mem_phys, size_t mem_size,
|
|
phys_addr_t *reloc_base);
|
|
|
|
#endif
|