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