summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-09-07 13:44:36 +0200
committerChristian König <christian.koenig@amd.com>2020-09-08 10:43:30 +0200
commit54d04ea8cdbd143496e4f5cc9c0a9f86c0e55a2e (patch)
tree189c73b8584412722829922f5e963ca514887e65 /include/drm
parent1ff67ce49875f289d63e426b63c6561aa63fa888 (diff)
downloadlinux-stable-54d04ea8cdbd143496e4f5cc9c0a9f86c0e55a2e.tar.gz
linux-stable-54d04ea8cdbd143496e4f5cc9c0a9f86c0e55a2e.tar.bz2
linux-stable-54d04ea8cdbd143496e4f5cc9c0a9f86c0e55a2e.zip
drm/ttm: merge offset and base in ttm_bus_placement
This is used by TTM to communicate the physical address which should be used with ioremap(), ioremap_wc(). We don't need to separate the base and offset in any way here. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/389457/
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_resource.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h
index 406baa8f0068..7b8a3157fbb3 100644
--- a/include/drm/ttm/ttm_resource.h
+++ b/include/drm/ttm/ttm_resource.h
@@ -148,16 +148,14 @@ struct ttm_resource_manager {
* struct ttm_bus_placement
*
* @addr: mapped virtual address
- * @base: bus base address
+ * @offset: physical addr
* @is_iomem: is this io memory ?
- * @offset: offset from the base address
*
* Structure indicating the bus placement of an object.
*/
struct ttm_bus_placement {
void *addr;
- phys_addr_t base;
- unsigned long offset;
+ phys_addr_t offset;
bool is_iomem;
};