cbf63ffdc3
[ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240405152951.1531555-2-nunes.erico@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
19 lines
498 B
C
Executable file
19 lines
498 B
C
Executable file
/* SPDX-License-Identifier: GPL-2.0 OR MIT */
|
|
/* Copyright 2018-2019 Qiang Yu <yuq825@gmail.com> */
|
|
|
|
#ifndef __LIMA_BCAST_H__
|
|
#define __LIMA_BCAST_H__
|
|
|
|
struct lima_ip;
|
|
|
|
int lima_bcast_resume(struct lima_ip *ip);
|
|
void lima_bcast_suspend(struct lima_ip *ip);
|
|
int lima_bcast_init(struct lima_ip *ip);
|
|
void lima_bcast_fini(struct lima_ip *ip);
|
|
|
|
void lima_bcast_enable(struct lima_device *dev, int num_pp);
|
|
|
|
int lima_bcast_mask_irq(struct lima_ip *ip);
|
|
int lima_bcast_reset(struct lima_ip *ip);
|
|
|
|
#endif
|