]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - drivers/gpu/drm/nouveau/include/nvif/driver.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / drivers / gpu / drm / nouveau / include / nvif / driver.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
a04d0423
BS
2#ifndef __NVIF_DRIVER_H__
3#define __NVIF_DRIVER_H__
04b88677
BS
4#include <nvif/os.h>
5struct nvif_client;
a04d0423
BS
6
7struct nvif_driver {
8 const char *name;
9 int (*init)(const char *name, u64 device, const char *cfg,
10 const char *dbg, void **priv);
11 void (*fini)(void *priv);
12 int (*suspend)(void *priv);
13 int (*resume)(void *priv);
14 int (*ioctl)(void *priv, bool super, void *data, u32 size, void **hack);
3cfb2fac
AV
15 void __iomem *(*map)(void *priv, u64 handle, u32 size);
16 void (*unmap)(void *priv, void __iomem *ptr, u32 size);
a04d0423
BS
17 bool keep;
18};
19
04b88677
BS
20int nvif_driver_init(const char *drv, const char *cfg, const char *dbg,
21 const char *name, u64 device, struct nvif_client *);
22
a04d0423 23extern const struct nvif_driver nvif_driver_nvkm;
27111a23 24extern const struct nvif_driver nvif_driver_drm;
a04d0423 25extern const struct nvif_driver nvif_driver_lib;
34acf100 26extern const struct nvif_driver nvif_driver_null;
a04d0423 27#endif