diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-08-31 06:01:05 (GMT) |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-09-02 16:21:35 (GMT) |
commit | 4207a734c32cafd8ea603eb440d6a8e100e7d1d2 (patch) | |
tree | 0dbaee8a493988c0bab8c8d72fa8a26f0bb5b94e /drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h | |
parent | a60c42320b375e80e52e7861acd6b81c61f05166 (diff) | |
download | linux-4207a734c32cafd8ea603eb440d6a8e100e7d1d2.tar.xz |
drm/amdgpu: add count field for the SDMA NOP packet v2
This is added to support the burst NOP
v2: squash the typo fix
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h b/drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h index 099b7b5..e5ebd08 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h +++ b/drivers/gpu/drm/amd/amdgpu/tonga_sdma_pkt_open.h @@ -2236,5 +2236,10 @@ #define SDMA_PKT_NOP_HEADER_sub_op_shift 8 #define SDMA_PKT_NOP_HEADER_SUB_OP(x) (((x) & SDMA_PKT_NOP_HEADER_sub_op_mask) << SDMA_PKT_NOP_HEADER_sub_op_shift) +/*define for count field*/ +#define SDMA_PKT_NOP_HEADER_count_offset 0 +#define SDMA_PKT_NOP_HEADER_count_mask 0x00003FFF +#define SDMA_PKT_NOP_HEADER_count_shift 16 +#define SDMA_PKT_NOP_HEADER_COUNT(x) (((x) & SDMA_PKT_NOP_HEADER_count_mask) << SDMA_PKT_NOP_HEADER_count_shift) #endif /* __TONGA_SDMA_PKT_OPEN_H_ */ |