summaryrefslogtreecommitdiff
path: root/nvif/driver.h
blob: ea5b1b880fb6a4ceb3ea0611eb486941c62be9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __NVIF_DRIVER_H__
#define __NVIF_DRIVER_H__

struct nvif_driver {
	const char *name;
	int (*init)(const char *name, u64 device, const char *cfg,
		    const char *dbg, void **priv);
	void (*fini)(void *priv);
	int (*suspend)(void *priv);
	int (*resume)(void *priv);
	int (*ioctl)(void *priv, bool super, void *data, u32 size, void **hack);
	void *(*map)(void *priv, u64 handle, u32 size);
	void (*unmap)(void *priv, void *ptr, u32 size);
	bool keep;
};

extern const struct nvif_driver nvif_driver_nvkm;
extern const struct nvif_driver nvif_driver_lib;

#endif