drm/nouveau/core: add firmware handling functions
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 18 Jan 2016 06:07:09 +0000 (15:07 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:11:06 +0000 (10:11 +1000)
commit046fdb2a595e1d78847fde6b625f94537b0ff365
tree3361812b615a097d34989d4e830ae4ba565dc16d
parentf0db6e3be9eb47f1bca0bdff4ba39db03975d988
drm/nouveau/core: add firmware handling functions

Add two functions nvkm_firmware_get() and nvkm_firmware_put() to load a
firmware file and free its resources, respectively. Since firmware files
are becoming a necessity for new GPUs, and their location has been
standardized to nvidia/chip/, this will prevent duplicate and
error-prone name-generation code.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/core/Kbuild
drivers/gpu/drm/nouveau/nvkm/core/firmware.c [new file with mode: 0644]