aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChunming Zhou <David1.Zhou@amd.com>2015-07-28 14:20:03 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-08-17 16:49:52 -0400
commitd03846af92750f83d36ff2110a0cee444979b2a2 (patch)
treeb598850bc172ca90736894874d1c8a16476e0934 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent21df89a5667de5fcd061753d3833e7dfcf5509d3 (diff)
drm/amd: Add CGS interfaces
CGS (Common Graphics Services) is an AMD cross component abstraction layer to designed to better encapsulate specific IP block drivers so different teams can effectively work on differnet IP block drivers independently. It provides a common interface for things like accessing registers, allocating GPU memory, and registering interrupt sources. The plan is to eventually move more and more IP drivers to this interface. The first user is the ACP IP driver. Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index baefa635169a..548e2bb72d99 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -42,6 +42,7 @@
42#include <ttm/ttm_module.h> 42#include <ttm/ttm_module.h>
43#include <ttm/ttm_execbuf_util.h> 43#include <ttm/ttm_execbuf_util.h>
44 44
45#include <drm/drmP.h>
45#include <drm/drm_gem.h> 46#include <drm/drm_gem.h>
46#include <drm/amdgpu_drm.h> 47#include <drm/amdgpu_drm.h>
47 48
@@ -1862,6 +1863,13 @@ extern int amdgpu_ctx_ioctl(struct drm_device *dev, void *data,
1862 struct drm_file *filp); 1863 struct drm_file *filp);
1863 1864
1864/* 1865/*
1866 * CGS
1867 */
1868void *amdgpu_cgs_create_device(struct amdgpu_device *adev);
1869void amdgpu_cgs_destroy_device(void *cgs_device);
1870
1871
1872/*
1865 * Core structure, functions and helpers. 1873 * Core structure, functions and helpers.
1866 */ 1874 */
1867typedef uint32_t (*amdgpu_rreg_t)(struct amdgpu_device*, uint32_t); 1875typedef uint32_t (*amdgpu_rreg_t)(struct amdgpu_device*, uint32_t);