aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-09-17 09:29:28 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-09-26 22:09:22 -0400
commit1ffdeca64856e0149e7fb341617f47cb038df543 (patch)
treeeab2c608b0234a632de60d4598c33e8702a8d902 /drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
parent1f8969463bca23327eedadab0fef0d28c9b6f29f (diff)
drm/amdgpu: move more defines into amdgpu_irq.h
Everything that isn't related to the IH ring. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
index fd2bbaa20ab4..9ce8c93ec19b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
@@ -24,12 +24,8 @@
24#ifndef __AMDGPU_IH_H__ 24#ifndef __AMDGPU_IH_H__
25#define __AMDGPU_IH_H__ 25#define __AMDGPU_IH_H__
26 26
27#include "soc15_ih_clientid.h"
28
29struct amdgpu_device; 27struct amdgpu_device;
30 28struct amdgpu_iv_entry;
31#define AMDGPU_IH_CLIENTID_LEGACY 0
32#define AMDGPU_IH_CLIENTID_MAX SOC15_IH_CLIENTID_MAX
33 29
34/* 30/*
35 * R6xx+ IH ring 31 * R6xx+ IH ring
@@ -51,22 +47,6 @@ struct amdgpu_ih_ring {
51 dma_addr_t rb_dma_addr; /* only used when use_bus_addr = true */ 47 dma_addr_t rb_dma_addr; /* only used when use_bus_addr = true */
52}; 48};
53 49
54#define AMDGPU_IH_SRC_DATA_MAX_SIZE_DW 4
55
56struct amdgpu_iv_entry {
57 unsigned client_id;
58 unsigned src_id;
59 unsigned ring_id;
60 unsigned vmid;
61 unsigned vmid_src;
62 uint64_t timestamp;
63 unsigned timestamp_src;
64 unsigned pasid;
65 unsigned pasid_src;
66 unsigned src_data[AMDGPU_IH_SRC_DATA_MAX_SIZE_DW];
67 const uint32_t *iv_entry;
68};
69
70/* provided by the ih block */ 50/* provided by the ih block */
71struct amdgpu_ih_funcs { 51struct amdgpu_ih_funcs {
72 /* ring read/write ptr handling, called from interrupt context */ 52 /* ring read/write ptr handling, called from interrupt context */