mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
49c13b4d2d
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
20 lines
498 B
C
20 lines
498 B
C
/* 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
|