aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2015-04-16 15:36:06 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-06-03 21:03:10 -0400
commitc481a6802e156a3666f1820674ed0c0828787bfa (patch)
tree9d1a06cb5e4a7a9c49ff68984326f6c8318f0bf1
parent683595a6f3c32d86952b57495bdecab370606b09 (diff)
drm/amdgpu: add VCE 3.0 register headers
These are register headers for the VCE (Video Codec Engine) block on the GPU. Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Jammy Zhou <Jammy.Zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_d.h73
-rw-r--r--drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_sh_mask.h120
2 files changed, 193 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_d.h b/drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_d.h
new file mode 100644
index 000000000000..3e698b7f42a2
--- /dev/null
+++ b/drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_d.h
@@ -0,0 +1,73 @@
1/*
2 * VCE_3_0 Register documentation
3 *
4 * Copyright (C) 2014 Advanced Micro Devices, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#ifndef VCE_3_0_D_H
25#define VCE_3_0_D_H
26
27#define mmVCE_STATUS 0x8001
28#define mmVCE_VCPU_CNTL 0x8005
29#define mmVCE_VCPU_CACHE_OFFSET0 0x8009
30#define mmVCE_VCPU_CACHE_SIZE0 0x800a
31#define mmVCE_VCPU_CACHE_OFFSET1 0x800b
32#define mmVCE_VCPU_CACHE_SIZE1 0x800c
33#define mmVCE_VCPU_CACHE_OFFSET2 0x800d
34#define mmVCE_VCPU_CACHE_SIZE2 0x800e
35#define mmVCE_SOFT_RESET 0x8048
36#define mmVCE_RB_BASE_LO2 0x805b
37#define mmVCE_RB_BASE_HI2 0x805c
38#define mmVCE_RB_SIZE2 0x805d
39#define mmVCE_RB_RPTR2 0x805e
40#define mmVCE_RB_WPTR2 0x805f
41#define mmVCE_RB_BASE_LO 0x8060
42#define mmVCE_RB_BASE_HI 0x8061
43#define mmVCE_RB_SIZE 0x8062
44#define mmVCE_RB_RPTR 0x8063
45#define mmVCE_RB_WPTR 0x8064
46#define mmVCE_RB_ARB_CTRL 0x809f
47#define mmVCE_CLOCK_GATING_A 0x80be
48#define mmVCE_CLOCK_GATING_B 0x80bf
49#define mmVCE_RB_BASE_LO3 0x80d4
50#define mmVCE_RB_BASE_HI3 0x80d5
51#define mmVCE_RB_SIZE3 0x80d6
52#define mmVCE_RB_RPTR3 0x80d7
53#define mmVCE_RB_WPTR3 0x80d8
54#define mmVCE_UENC_DMA_DCLK_CTRL 0x8390
55#define mmVCE_UENC_CLOCK_GATING 0x81ef
56#define mmVCE_UENC_REG_CLOCK_GATING 0x81f0
57#define mmVCE_UENC_CLOCK_GATING_2 0x8210
58#define mmVCE_SYS_INT_EN 0x8540
59#define mmVCE_SYS_INT_STATUS 0x8541
60#define mmVCE_SYS_INT_ACK 0x8541
61#define mmVCE_LMI_VCPU_CACHE_40BIT_BAR 0x8597
62#define mmVCE_LMI_CTRL2 0x859d
63#define mmVCE_LMI_SWAP_CNTL3 0x859e
64#define mmVCE_LMI_CTRL 0x85a6
65#define mmVCE_LMI_STATUS 0x85a7
66#define mmVCE_LMI_VM_CTRL 0x85a8
67#define mmVCE_LMI_SWAP_CNTL 0x85ad
68#define mmVCE_LMI_SWAP_CNTL1 0x85ae
69#define mmVCE_LMI_SWAP_CNTL2 0x85b3
70#define mmVCE_LMI_MISC_CTRL 0x85b5
71#define mmVCE_LMI_CACHE_CTRL 0x85bd
72
73#endif /* VCE_3_0_D_H */
diff --git a/drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_sh_mask.h b/drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_sh_mask.h
new file mode 100644
index 000000000000..235dc13561e9
--- /dev/null
+++ b/drivers/gpu/drm/amd/include/asic_reg/vce/vce_3_0_sh_mask.h
@@ -0,0 +1,120 @@
1/*
2 * VCE_3_0 Register documentation
3 *
4 * Copyright (C) 2014 Advanced Micro Devices, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#ifndef VCE_3_0_SH_MASK_H
25#define VCE_3_0_SH_MASK_H
26
27#define VCE_STATUS__JOB_BUSY_MASK 0x1
28#define VCE_STATUS__JOB_BUSY__SHIFT 0x0
29#define VCE_STATUS__VCPU_REPORT_MASK 0xfe
30#define VCE_STATUS__VCPU_REPORT__SHIFT 0x1
31#define VCE_STATUS__UENC_BUSY_MASK 0x100
32#define VCE_STATUS__UENC_BUSY__SHIFT 0x8
33#define VCE_STATUS__VCE_CONFIGURATION_MASK 0xc00000
34#define VCE_STATUS__VCE_CONFIGURATION__SHIFT 0x16
35#define VCE_STATUS__VCE_INSTANCE_ID_MASK 0x3000000
36#define VCE_STATUS__VCE_INSTANCE_ID__SHIFT 0x18
37#define VCE_VCPU_CNTL__CLK_EN_MASK 0x1
38#define VCE_VCPU_CNTL__CLK_EN__SHIFT 0x0
39#define VCE_VCPU_CNTL__RBBM_SOFT_RESET_MASK 0x40000
40#define VCE_VCPU_CNTL__RBBM_SOFT_RESET__SHIFT 0x12
41#define VCE_VCPU_CACHE_OFFSET0__OFFSET_MASK 0xfffffff
42#define VCE_VCPU_CACHE_OFFSET0__OFFSET__SHIFT 0x0
43#define VCE_VCPU_CACHE_SIZE0__SIZE_MASK 0xffffff
44#define VCE_VCPU_CACHE_SIZE0__SIZE__SHIFT 0x0
45#define VCE_VCPU_CACHE_OFFSET1__OFFSET_MASK 0xfffffff
46#define VCE_VCPU_CACHE_OFFSET1__OFFSET__SHIFT 0x0
47#define VCE_VCPU_CACHE_SIZE1__SIZE_MASK 0xffffff
48#define VCE_VCPU_CACHE_SIZE1__SIZE__SHIFT 0x0
49#define VCE_VCPU_CACHE_OFFSET2__OFFSET_MASK 0xfffffff
50#define VCE_VCPU_CACHE_OFFSET2__OFFSET__SHIFT 0x0
51#define VCE_VCPU_CACHE_SIZE2__SIZE_MASK 0xffffff
52#define VCE_VCPU_CACHE_SIZE2__SIZE__SHIFT 0x0
53#define VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK 0x1
54#define VCE_SOFT_RESET__ECPU_SOFT_RESET__SHIFT 0x0
55#define VCE_RB_BASE_LO2__RB_BASE_LO_MASK 0xffffffc0
56#define VCE_RB_BASE_LO2__RB_BASE_LO__SHIFT 0x6
57#define VCE_RB_BASE_HI2__RB_BASE_HI_MASK 0xffffffff
58#define VCE_RB_BASE_HI2__RB_BASE_HI__SHIFT 0x0
59#define VCE_RB_SIZE2__RB_SIZE_MASK 0x7ffff0
60#define VCE_RB_SIZE2__RB_SIZE__SHIFT 0x4
61#define VCE_RB_RPTR2__RB_RPTR_MASK 0x7ffff0
62#define VCE_RB_RPTR2__RB_RPTR__SHIFT 0x4
63#define VCE_RB_WPTR2__RB_WPTR_MASK 0x7ffff0
64#define VCE_RB_WPTR2__RB_WPTR__SHIFT 0x4
65#define VCE_RB_BASE_LO__RB_BASE_LO_MASK 0xffffffc0
66#define VCE_RB_BASE_LO__RB_BASE_LO__SHIFT 0x6
67#define VCE_RB_BASE_HI__RB_BASE_HI_MASK 0xffffffff
68#define VCE_RB_BASE_HI__RB_BASE_HI__SHIFT 0x0
69#define VCE_RB_SIZE__RB_SIZE_MASK 0x7ffff0
70#define VCE_RB_SIZE__RB_SIZE__SHIFT 0x4
71#define VCE_RB_RPTR__RB_RPTR_MASK 0x7ffff0
72#define VCE_RB_RPTR__RB_RPTR__SHIFT 0x4
73#define VCE_RB_WPTR__RB_WPTR_MASK 0x7ffff0
74#define VCE_RB_WPTR__RB_WPTR__SHIFT 0x4
75#define VCE_RB_ARB_CTRL__VCE_CGTT_OVERRIDE_MASK 0x10000
76#define VCE_RB_ARB_CTRL__VCE_CGTT_OVERRIDE__SHIFT 0x10
77#define VCE_RB_BASE_LO3__RB_BASE_LO_MASK 0xffffffc0
78#define VCE_RB_BASE_LO3__RB_BASE_LO__SHIFT 0x6
79#define VCE_RB_BASE_HI3__RB_BASE_HI_MASK 0xffffffff
80#define VCE_RB_BASE_HI3__RB_BASE_HI__SHIFT 0x0
81#define VCE_RB_SIZE3__RB_SIZE_MASK 0x7ffff0
82#define VCE_RB_SIZE3__RB_SIZE__SHIFT 0x4
83#define VCE_RB_RPTR3__RB_RPTR_MASK 0x7ffff0
84#define VCE_RB_RPTR3__RB_RPTR__SHIFT 0x4
85#define VCE_RB_WPTR3__RB_WPTR_MASK 0x7ffff0
86#define VCE_RB_WPTR3__RB_WPTR__SHIFT 0x4
87#define VCE_UENC_DMA_DCLK_CTRL__WRDMCLK_FORCEON_MASK 0x1
88#define VCE_UENC_DMA_DCLK_CTRL__WRDMCLK_FORCEON__SHIFT 0x0
89#define VCE_UENC_DMA_DCLK_CTRL__RDDMCLK_FORCEON_MASK 0x2
90#define VCE_UENC_DMA_DCLK_CTRL__RDDMCLK_FORCEON__SHIFT 0x1
91#define VCE_UENC_DMA_DCLK_CTRL__REGCLK_FORCEON_MASK 0x4
92#define VCE_UENC_DMA_DCLK_CTRL__REGCLK_FORCEON__SHIFT 0x2
93#define VCE_SYS_INT_EN__VCE_SYS_INT_TRAP_INTERRUPT_EN_MASK 0x8
94#define VCE_SYS_INT_EN__VCE_SYS_INT_TRAP_INTERRUPT_EN__SHIFT 0x3
95#define VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT_MASK 0x8
96#define VCE_SYS_INT_STATUS__VCE_SYS_INT_TRAP_INTERRUPT_INT__SHIFT 0x3
97#define VCE_SYS_INT_ACK__VCE_SYS_INT_TRAP_INTERRUPT_ACK_MASK 0x8
98#define VCE_SYS_INT_ACK__VCE_SYS_INT_TRAP_INTERRUPT_ACK__SHIFT 0x3
99#define VCE_LMI_VCPU_CACHE_40BIT_BAR__BAR_MASK 0xffffffff
100#define VCE_LMI_VCPU_CACHE_40BIT_BAR__BAR__SHIFT 0x0
101#define VCE_LMI_CTRL2__STALL_ARB_UMC_MASK 0x100
102#define VCE_LMI_CTRL2__STALL_ARB_UMC__SHIFT 0x8
103#define VCE_LMI_SWAP_CNTL3__RD_MC_CID_SWAP_MASK 0x3
104#define VCE_LMI_SWAP_CNTL3__RD_MC_CID_SWAP__SHIFT 0x0
105#define VCE_LMI_CTRL__VCPU_DATA_COHERENCY_EN_MASK 0x200000
106#define VCE_LMI_CTRL__VCPU_DATA_COHERENCY_EN__SHIFT 0x15
107#define VCE_LMI_SWAP_CNTL__VCPU_W_MC_SWAP_MASK 0x3
108#define VCE_LMI_SWAP_CNTL__VCPU_W_MC_SWAP__SHIFT 0x0
109#define VCE_LMI_SWAP_CNTL__WR_MC_CID_SWAP_MASK 0x3ffc
110#define VCE_LMI_SWAP_CNTL__WR_MC_CID_SWAP__SHIFT 0x2
111#define VCE_LMI_SWAP_CNTL1__VCPU_R_MC_SWAP_MASK 0x3
112#define VCE_LMI_SWAP_CNTL1__VCPU_R_MC_SWAP__SHIFT 0x0
113#define VCE_LMI_SWAP_CNTL1__RD_MC_CID_SWAP_MASK 0x3ffc
114#define VCE_LMI_SWAP_CNTL1__RD_MC_CID_SWAP__SHIFT 0x2
115#define VCE_LMI_SWAP_CNTL2__WR_MC_CID_SWAP_MASK 0xff
116#define VCE_LMI_SWAP_CNTL2__WR_MC_CID_SWAP__SHIFT 0x0
117#define VCE_LMI_CACHE_CTRL__VCPU_EN_MASK 0x1
118#define VCE_LMI_CACHE_CTRL__VCPU_EN__SHIFT 0x0
119
120#endif /* VCE_3_0_SH_MASK_H */