The namespace of NVKM is being changed to nvkm_ instead of nouveau_, which will be used for the DRM part of the driver. This is being done in order to make it very clear as to what part of the driver a given symbol belongs to, and as a minor step towards splitting the DRM driver out to be able to stand on its own (for virt). Because there's already a large amount of churn here anyway, this is as good a time as any to also switch to NVIDIA's device and chipset naming to ease collaboration with them. A comparison of objdump disassemblies proves no code changes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
29 lines
779 B
C
29 lines
779 B
C
#ifndef __NVKM_FUSE_H__
|
|
#define __NVKM_FUSE_H__
|
|
#include <core/subdev.h>
|
|
#include <core/device.h>
|
|
|
|
struct nvkm_fuse {
|
|
struct nvkm_subdev base;
|
|
};
|
|
|
|
static inline struct nvkm_fuse *
|
|
nvkm_fuse(void *obj)
|
|
{
|
|
return (void *)nvkm_subdev(obj, NVDEV_SUBDEV_FUSE);
|
|
}
|
|
|
|
#define nvkm_fuse_create(p, e, o, d) \
|
|
nvkm_fuse_create_((p), (e), (o), sizeof(**d), (void **)d)
|
|
|
|
int nvkm_fuse_create_(struct nvkm_object *, struct nvkm_object *,
|
|
struct nvkm_oclass *, int, void **);
|
|
void _nvkm_fuse_dtor(struct nvkm_object *);
|
|
int _nvkm_fuse_init(struct nvkm_object *);
|
|
#define _nvkm_fuse_fini _nvkm_subdev_fini
|
|
|
|
extern struct nvkm_oclass nv50_fuse_oclass;
|
|
extern struct nvkm_oclass gf100_fuse_oclass;
|
|
extern struct nvkm_oclass gm107_fuse_oclass;
|
|
#endif
|