Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 lines
707 B
C
23 lines
707 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_DRIVER_H__
|
|
#define __NVIF_DRIVER_H__
|
|
#include <nvif/os.h>
|
|
struct nvif_client;
|
|
|
|
struct nvif_driver {
|
|
const char *name;
|
|
int (*init)(const char *name, u64 device, const char *cfg,
|
|
const char *dbg, void **priv);
|
|
int (*suspend)(void *priv, bool runtime);
|
|
int (*resume)(void *priv);
|
|
int (*ioctl)(void *priv, void *data, u32 size, void **hack);
|
|
void __iomem *(*map)(void *priv, u64 handle, u32 size);
|
|
void (*unmap)(void *priv, void __iomem *ptr, u32 size);
|
|
};
|
|
|
|
int nvif_driver_init(const char *drv, const char *cfg, const char *dbg,
|
|
const char *name, u64 device, struct nvif_client *);
|
|
|
|
extern const struct nvif_driver nvif_driver_nvkm;
|
|
#endif
|