summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@amd.com>2014-01-28 14:43:19 +0200
committerOded Gabbay <oded.gabbay@amd.com>2014-01-28 14:43:19 +0200
commitebff8453d3a57a2405c4d96d9f9c4f4acc7d4d79 (patch)
tree155a699d345df5c2721255bd61510be2e37822ac /drivers/gpu/drm/radeon/radeon.h
parent28b57b856b635ea0d44f1281e2efdc963c100ea3 (diff)
downloadlinux-0-day-ebff8453d3a57a2405c4d96d9f9c4f4acc7d4d79.tar.gz
linux-0-day-ebff8453d3a57a2405c4d96d9f9c4f4acc7d4d79.tar.xz
drm/radeon: Report doorbell configuration to amdkfd
radeon and amdkfd share the doorbell aperture. radeon sets it up, takes the doorbells required for its own rings and reports the setup to amdkfd. radeon reserved doorbells are at the start of the doorbell aperture. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 908f349a63620..f6cb42ea43a6b 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -701,6 +701,10 @@ struct radeon_doorbell {
int radeon_doorbell_get(struct radeon_device *rdev, u32 *page);
void radeon_doorbell_free(struct radeon_device *rdev, u32 doorbell);
+void radeon_doorbell_get_kfd_info(struct radeon_device *rdev,
+ phys_addr_t *aperture_base,
+ size_t *aperture_size,
+ size_t *start_offset);
/*
* IRQS.