]> 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)
commitafe8326c634e621b507a3a133d9fb6ba695bead2
treecc64c605e6410088e63c1d6db01cf834d5cb00e2
parent53cc0f68f519f78be3363a4126f24fb891a29409
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