mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 10:02:31 -04:00
This is just refactoring to allow the lower layers to distinguish
between suspend and runtime suspend.
GSP 570 needs to set a flag with the GPU is going into GCOFF,
this flag taken from the opengpu driver is set whenever runtime
suspend is enterning GCOFF but not for normal suspend paths.
This just refactors the code, a subsequent patch use the information.
Fixes: 53dac06238 ("drm/nouveau/gsp: add support for 570.144")
Cc: <stable@vger.kernel.org>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Tested-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patch.msgid.link/20260203052431.2219998-3-airlied@gmail.com
19 lines
455 B
C
19 lines
455 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_CLIENT_H__
|
|
#define __NVIF_CLIENT_H__
|
|
|
|
#include <nvif/object.h>
|
|
|
|
struct nvif_client {
|
|
struct nvif_object object;
|
|
const struct nvif_driver *driver;
|
|
};
|
|
|
|
int nvif_client_ctor(struct nvif_client *parent, const char *name, struct nvif_client *);
|
|
void nvif_client_dtor(struct nvif_client *);
|
|
int nvif_client_suspend(struct nvif_client *, bool);
|
|
int nvif_client_resume(struct nvif_client *);
|
|
|
|
/*XXX*/
|
|
#endif
|