mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
drm/nouveau/nvdec: switch to instanced constructor
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
@@ -61,7 +61,6 @@ struct nvkm_device {
|
||||
} acpi;
|
||||
|
||||
struct nvkm_nvenc *nvenc[3];
|
||||
struct nvkm_nvdec *nvdec[3];
|
||||
struct nvkm_pm *pm;
|
||||
struct nvkm_engine *sec;
|
||||
struct nvkm_sec2 *sec2;
|
||||
@@ -109,7 +108,6 @@ struct nvkm_device_chip {
|
||||
#undef NVKM_LAYOUT_ONCE
|
||||
|
||||
int (*nvenc[3])(struct nvkm_device *, int idx, struct nvkm_nvenc **);
|
||||
int (*nvdec[3])(struct nvkm_device *, int idx, struct nvkm_nvdec **);
|
||||
int (*pm )(struct nvkm_device *, int idx, struct nvkm_pm **);
|
||||
int (*sec )(struct nvkm_device *, int idx, struct nvkm_engine **);
|
||||
int (*sec2 )(struct nvkm_device *, int idx, struct nvkm_sec2 **);
|
||||
|
||||
@@ -39,4 +39,5 @@ NVKM_LAYOUT_ONCE(NVKM_ENGINE_MSENC , struct nvkm_engine , msenc)
|
||||
NVKM_LAYOUT_ONCE(NVKM_ENGINE_MSPDEC , struct nvkm_engine , mspdec)
|
||||
NVKM_LAYOUT_ONCE(NVKM_ENGINE_MSPPP , struct nvkm_engine , msppp)
|
||||
NVKM_LAYOUT_ONCE(NVKM_ENGINE_MSVLD , struct nvkm_engine , msvld)
|
||||
NVKM_LAYOUT_INST(NVKM_ENGINE_NVDEC , struct nvkm_nvdec , nvdec, 3)
|
||||
NVKM_LAYOUT_ONCE(NVKM_ENGINE_VP , struct nvkm_engine , vp)
|
||||
|
||||
@@ -11,5 +11,5 @@ struct nvkm_nvdec {
|
||||
struct nvkm_falcon falcon;
|
||||
};
|
||||
|
||||
int gm107_nvdec_new(struct nvkm_device *, int, struct nvkm_nvdec **);
|
||||
int gm107_nvdec_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvdec **);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user