summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/imagination/pvr_rogue_fwif_resetframework.h
blob: 1db1f4c532bc6b07bbd78fb582350bc08f49dff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
/* Copyright (c) 2023 Imagination Technologies Ltd. */

#ifndef PVR_ROGUE_FWIF_RESETFRAMEWORK_H
#define PVR_ROGUE_FWIF_RESETFRAMEWORK_H

#include <linux/bits.h>
#include <linux/types.h>

#include "pvr_rogue_fwif_shared.h"

struct rogue_fwif_rf_registers {
	union {
		u64 cdmreg_cdm_cb_base;
		u64 cdmreg_cdm_ctrl_stream_base;
	};
	u64 cdmreg_cdm_cb_queue;
	u64 cdmreg_cdm_cb;
};

struct rogue_fwif_rf_cmd {
	/* THIS MUST BE THE LAST MEMBER OF THE CONTAINING STRUCTURE */
	struct rogue_fwif_rf_registers fw_registers __aligned(8);
};

#define ROGUE_FWIF_RF_CMD_SIZE sizeof(struct rogue_fwif_rf_cmd)

#endif /* PVR_ROGUE_FWIF_RESETFRAMEWORK_H */