summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/include/nvkm/subdev/vfn.h
blob: cc6d0796c265e3efd2ef92957f98c74bd74f74bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: MIT */
#ifndef __NVKM_VFN_H__
#define __NVKM_VFN_H__
#include <core/subdev.h>

struct nvkm_vfn {
	const struct nvkm_vfn_func *func;
	struct nvkm_subdev subdev;

	struct {
		u32 priv;
		u32 user;
	} addr;

	struct nvkm_intr intr;

	struct nvkm_device_oclass user;
};

int gv100_vfn_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_vfn **);
int tu102_vfn_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_vfn **);
int ga100_vfn_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_vfn **);
#endif