]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/cgs: add an interface to access PCI resources
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2015 16:25:43 +0000 (11:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Jan 2016 14:52:43 +0000 (09:52 -0500)
commit22399c2c05b94e6a66fb2daa1f5dead978e368a0
treecc64c605e6410088e63c1d6db01cf834d5cb00e2
parentaf8ab811102310a5c8c2011dec53d7f15139d3c8
drm/amdgpu/cgs: add an interface to access PCI resources

This provides an interface to get access to the base address
of PCI resources (MMIO, DOORBELL, etc.).  Only MMIO and
DOORBELL are implemented right now.  This is necessary to
properly utilize shared drivers on platform devices.  IP
modules can use this interface to get the base address
of the resource and add any additional offset and set the
size when setting up the platform driver(s).

Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/include/cgs_common.h