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>
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
#ifndef __NVKM_DEVINIT_PRIV_H__
|
|
#define __NVKM_DEVINIT_PRIV_H__
|
|
#include <subdev/devinit.h>
|
|
|
|
struct nvkm_devinit_impl {
|
|
struct nvkm_oclass base;
|
|
void (*meminit)(struct nvkm_devinit *);
|
|
int (*pll_set)(struct nvkm_devinit *, u32 type, u32 freq);
|
|
u64 (*disable)(struct nvkm_devinit *);
|
|
u32 (*mmio)(struct nvkm_devinit *, u32);
|
|
int (*post)(struct nvkm_subdev *, bool);
|
|
};
|
|
|
|
#define nvkm_devinit_create(p,e,o,d) \
|
|
nvkm_devinit_create_((p), (e), (o), sizeof(**d), (void **)d)
|
|
#define nvkm_devinit_destroy(p) ({ \
|
|
struct nvkm_devinit *d = (p); \
|
|
_nvkm_devinit_dtor(nv_object(d)); \
|
|
})
|
|
#define nvkm_devinit_init(p) ({ \
|
|
struct nvkm_devinit *d = (p); \
|
|
_nvkm_devinit_init(nv_object(d)); \
|
|
})
|
|
#define nvkm_devinit_fini(p,s) ({ \
|
|
struct nvkm_devinit *d = (p); \
|
|
_nvkm_devinit_fini(nv_object(d), (s)); \
|
|
})
|
|
|
|
int nvkm_devinit_create_(struct nvkm_object *, struct nvkm_object *,
|
|
struct nvkm_oclass *, int, void **);
|
|
void _nvkm_devinit_dtor(struct nvkm_object *);
|
|
int _nvkm_devinit_init(struct nvkm_object *);
|
|
int _nvkm_devinit_fini(struct nvkm_object *, bool suspend);
|
|
#endif
|