1254885Sdumbbell/* 2254885Sdumbbell * Copyright 2008 Advanced Micro Devices, Inc. 3254885Sdumbbell * Copyright 2008 Red Hat Inc. 4254885Sdumbbell * Copyright 2009 Jerome Glisse. 5254885Sdumbbell * 6254885Sdumbbell * Permission is hereby granted, free of charge, to any person obtaining a 7254885Sdumbbell * copy of this software and associated documentation files (the "Software"), 8254885Sdumbbell * to deal in the Software without restriction, including without limitation 9254885Sdumbbell * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10254885Sdumbbell * and/or sell copies of the Software, and to permit persons to whom the 11254885Sdumbbell * Software is furnished to do so, subject to the following conditions: 12254885Sdumbbell * 13254885Sdumbbell * The above copyright notice and this permission notice shall be included in 14254885Sdumbbell * all copies or substantial portions of the Software. 15254885Sdumbbell * 16254885Sdumbbell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17254885Sdumbbell * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18254885Sdumbbell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19254885Sdumbbell * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 20254885Sdumbbell * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21254885Sdumbbell * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22254885Sdumbbell * OTHER DEALINGS IN THE SOFTWARE. 23254885Sdumbbell * 24254885Sdumbbell * Authors: Dave Airlie 25254885Sdumbbell * Alex Deucher 26254885Sdumbbell * Jerome Glisse 27254885Sdumbbell */ 28254885Sdumbbell#ifndef __RV250D_H__ 29254885Sdumbbell#define __RV250D_H__ 30254885Sdumbbell 31254885Sdumbbell#include <sys/cdefs.h> 32254885Sdumbbell__FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/radeon/rv250d.h 254885 2013-08-25 19:37:15Z dumbbell $"); 33254885Sdumbbell 34254885Sdumbbell#define R_00000D_SCLK_CNTL_M6 0x00000D 35254885Sdumbbell#define S_00000D_SCLK_SRC_SEL(x) (((x) & 0x7) << 0) 36254885Sdumbbell#define G_00000D_SCLK_SRC_SEL(x) (((x) >> 0) & 0x7) 37254885Sdumbbell#define C_00000D_SCLK_SRC_SEL 0xFFFFFFF8 38254885Sdumbbell#define S_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 3) 39254885Sdumbbell#define G_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) >> 3) & 0x1) 40254885Sdumbbell#define C_00000D_CP_MAX_DYN_STOP_LAT 0xFFFFFFF7 41254885Sdumbbell#define S_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 4) 42254885Sdumbbell#define G_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) >> 4) & 0x1) 43254885Sdumbbell#define C_00000D_HDP_MAX_DYN_STOP_LAT 0xFFFFFFEF 44254885Sdumbbell#define S_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 5) 45254885Sdumbbell#define G_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) >> 5) & 0x1) 46254885Sdumbbell#define C_00000D_TV_MAX_DYN_STOP_LAT 0xFFFFFFDF 47254885Sdumbbell#define S_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 6) 48254885Sdumbbell#define G_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) >> 6) & 0x1) 49254885Sdumbbell#define C_00000D_E2_MAX_DYN_STOP_LAT 0xFFFFFFBF 50254885Sdumbbell#define S_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 7) 51254885Sdumbbell#define G_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) >> 7) & 0x1) 52254885Sdumbbell#define C_00000D_SE_MAX_DYN_STOP_LAT 0xFFFFFF7F 53254885Sdumbbell#define S_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 8) 54254885Sdumbbell#define G_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) >> 8) & 0x1) 55254885Sdumbbell#define C_00000D_IDCT_MAX_DYN_STOP_LAT 0xFFFFFEFF 56254885Sdumbbell#define S_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 9) 57254885Sdumbbell#define G_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) >> 9) & 0x1) 58254885Sdumbbell#define C_00000D_VIP_MAX_DYN_STOP_LAT 0xFFFFFDFF 59254885Sdumbbell#define S_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 10) 60254885Sdumbbell#define G_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) >> 10) & 0x1) 61254885Sdumbbell#define C_00000D_RE_MAX_DYN_STOP_LAT 0xFFFFFBFF 62254885Sdumbbell#define S_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 11) 63254885Sdumbbell#define G_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) >> 11) & 0x1) 64254885Sdumbbell#define C_00000D_PB_MAX_DYN_STOP_LAT 0xFFFFF7FF 65254885Sdumbbell#define S_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 12) 66254885Sdumbbell#define G_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) >> 12) & 0x1) 67254885Sdumbbell#define C_00000D_TAM_MAX_DYN_STOP_LAT 0xFFFFEFFF 68254885Sdumbbell#define S_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 13) 69254885Sdumbbell#define G_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) >> 13) & 0x1) 70254885Sdumbbell#define C_00000D_TDM_MAX_DYN_STOP_LAT 0xFFFFDFFF 71254885Sdumbbell#define S_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 14) 72254885Sdumbbell#define G_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) >> 14) & 0x1) 73254885Sdumbbell#define C_00000D_RB_MAX_DYN_STOP_LAT 0xFFFFBFFF 74254885Sdumbbell#define S_00000D_FORCE_DISP2(x) (((x) & 0x1) << 15) 75254885Sdumbbell#define G_00000D_FORCE_DISP2(x) (((x) >> 15) & 0x1) 76254885Sdumbbell#define C_00000D_FORCE_DISP2 0xFFFF7FFF 77254885Sdumbbell#define S_00000D_FORCE_CP(x) (((x) & 0x1) << 16) 78254885Sdumbbell#define G_00000D_FORCE_CP(x) (((x) >> 16) & 0x1) 79254885Sdumbbell#define C_00000D_FORCE_CP 0xFFFEFFFF 80254885Sdumbbell#define S_00000D_FORCE_HDP(x) (((x) & 0x1) << 17) 81254885Sdumbbell#define G_00000D_FORCE_HDP(x) (((x) >> 17) & 0x1) 82254885Sdumbbell#define C_00000D_FORCE_HDP 0xFFFDFFFF 83254885Sdumbbell#define S_00000D_FORCE_DISP1(x) (((x) & 0x1) << 18) 84254885Sdumbbell#define G_00000D_FORCE_DISP1(x) (((x) >> 18) & 0x1) 85254885Sdumbbell#define C_00000D_FORCE_DISP1 0xFFFBFFFF 86254885Sdumbbell#define S_00000D_FORCE_TOP(x) (((x) & 0x1) << 19) 87254885Sdumbbell#define G_00000D_FORCE_TOP(x) (((x) >> 19) & 0x1) 88254885Sdumbbell#define C_00000D_FORCE_TOP 0xFFF7FFFF 89254885Sdumbbell#define S_00000D_FORCE_E2(x) (((x) & 0x1) << 20) 90254885Sdumbbell#define G_00000D_FORCE_E2(x) (((x) >> 20) & 0x1) 91254885Sdumbbell#define C_00000D_FORCE_E2 0xFFEFFFFF 92254885Sdumbbell#define S_00000D_FORCE_SE(x) (((x) & 0x1) << 21) 93254885Sdumbbell#define G_00000D_FORCE_SE(x) (((x) >> 21) & 0x1) 94254885Sdumbbell#define C_00000D_FORCE_SE 0xFFDFFFFF 95254885Sdumbbell#define S_00000D_FORCE_IDCT(x) (((x) & 0x1) << 22) 96254885Sdumbbell#define G_00000D_FORCE_IDCT(x) (((x) >> 22) & 0x1) 97254885Sdumbbell#define C_00000D_FORCE_IDCT 0xFFBFFFFF 98254885Sdumbbell#define S_00000D_FORCE_VIP(x) (((x) & 0x1) << 23) 99254885Sdumbbell#define G_00000D_FORCE_VIP(x) (((x) >> 23) & 0x1) 100254885Sdumbbell#define C_00000D_FORCE_VIP 0xFF7FFFFF 101254885Sdumbbell#define S_00000D_FORCE_RE(x) (((x) & 0x1) << 24) 102254885Sdumbbell#define G_00000D_FORCE_RE(x) (((x) >> 24) & 0x1) 103254885Sdumbbell#define C_00000D_FORCE_RE 0xFEFFFFFF 104254885Sdumbbell#define S_00000D_FORCE_PB(x) (((x) & 0x1) << 25) 105254885Sdumbbell#define G_00000D_FORCE_PB(x) (((x) >> 25) & 0x1) 106254885Sdumbbell#define C_00000D_FORCE_PB 0xFDFFFFFF 107254885Sdumbbell#define S_00000D_FORCE_TAM(x) (((x) & 0x1) << 26) 108254885Sdumbbell#define G_00000D_FORCE_TAM(x) (((x) >> 26) & 0x1) 109254885Sdumbbell#define C_00000D_FORCE_TAM 0xFBFFFFFF 110254885Sdumbbell#define S_00000D_FORCE_TDM(x) (((x) & 0x1) << 27) 111254885Sdumbbell#define G_00000D_FORCE_TDM(x) (((x) >> 27) & 0x1) 112254885Sdumbbell#define C_00000D_FORCE_TDM 0xF7FFFFFF 113254885Sdumbbell#define S_00000D_FORCE_RB(x) (((x) & 0x1) << 28) 114254885Sdumbbell#define G_00000D_FORCE_RB(x) (((x) >> 28) & 0x1) 115254885Sdumbbell#define C_00000D_FORCE_RB 0xEFFFFFFF 116254885Sdumbbell#define S_00000D_FORCE_TV_SCLK(x) (((x) & 0x1) << 29) 117254885Sdumbbell#define G_00000D_FORCE_TV_SCLK(x) (((x) >> 29) & 0x1) 118254885Sdumbbell#define C_00000D_FORCE_TV_SCLK 0xDFFFFFFF 119254885Sdumbbell#define S_00000D_FORCE_SUBPIC(x) (((x) & 0x1) << 30) 120254885Sdumbbell#define G_00000D_FORCE_SUBPIC(x) (((x) >> 30) & 0x1) 121254885Sdumbbell#define C_00000D_FORCE_SUBPIC 0xBFFFFFFF 122254885Sdumbbell#define S_00000D_FORCE_OV0(x) (((x) & 0x1) << 31) 123254885Sdumbbell#define G_00000D_FORCE_OV0(x) (((x) >> 31) & 0x1) 124254885Sdumbbell#define C_00000D_FORCE_OV0 0x7FFFFFFF 125254885Sdumbbell 126254885Sdumbbell#endif 127