diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2019-05-22 16:15:54 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2019-06-07 15:13:58 +1000 |
commit | 475cf02b834599c8a7a21a1e2d11449b7217d856 (patch) | |
tree | 886daff7d3eb003d450374fdebf59770b9434bcb /drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h | |
parent | 8854eed1a4f588d75b96ae13c38d41156dbd3e54 (diff) |
drm/nouveau/core: support versioned firmware loading
We have a need for this now with updated SEC2 LS FW images that have an
incompatible interface from the previous version.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h b/drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h index d0fe98bd50fd..54da9c6bc8d5 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h @@ -3,7 +3,10 @@ #define __NVKM_FIRMWARE_H__ #include <core/subdev.h> +int nvkm_firmware_get_version(const struct nvkm_subdev *, const char *fwname, + int min_version, int max_version, + const struct firmware **); int nvkm_firmware_get(const struct nvkm_subdev *, const char *fwname, - const struct firmware **fw); -void nvkm_firmware_put(const struct firmware *fw); + const struct firmware **); +void nvkm_firmware_put(const struct firmware *); #endif |