]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2192667c3a4ac4b65c64d90f178f6b411af0e91
tree3361812b615a097d34989d4e830ae4ba565dc16d
parenta37500239fd56c8e34bb97fef86deec06d84a09d
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]