linux/drivers/gpu/drm/radeon/r300d.h

/*
 * Copyright 2008 Advanced Micro Devices, Inc.
 * Copyright 2008 Red Hat Inc.
 * Copyright 2009 Jerome Glisse.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Dave Airlie
 *          Alex Deucher
 *          Jerome Glisse
 */
#ifndef __R300D_H__
#define __R300D_H__

#define CP_PACKET0
#define PACKET0_BASE_INDEX_SHIFT
#define PACKET0_BASE_INDEX_MASK
#define PACKET0_COUNT_SHIFT
#define PACKET0_COUNT_MASK
#define CP_PACKET1
#define CP_PACKET2
#define PACKET2_PAD_SHIFT
#define PACKET2_PAD_MASK
#define CP_PACKET3
#define PACKET3_IT_OPCODE_SHIFT
#define PACKET3_IT_OPCODE_MASK
#define PACKET3_COUNT_SHIFT
#define PACKET3_COUNT_MASK
/* PACKET3 op code */
#define PACKET3_NOP
#define PACKET3_3D_DRAW_VBUF
#define PACKET3_3D_DRAW_IMMD
#define PACKET3_3D_DRAW_INDX
#define PACKET3_3D_LOAD_VBPNTR
#define PACKET3_3D_CLEAR_ZMASK
#define PACKET3_INDX_BUFFER
#define PACKET3_3D_DRAW_VBUF_2
#define PACKET3_3D_DRAW_IMMD_2
#define PACKET3_3D_DRAW_INDX_2
#define PACKET3_3D_CLEAR_HIZ
#define PACKET3_3D_CLEAR_CMASK
#define PACKET3_BITBLT_MULTI

#define PACKET0(reg, n)
#define PACKET2(v)
#define PACKET3(op, n)

/* Registers */
#define R_000148_MC_FB_LOCATION
#define S_000148_MC_FB_START(x)
#define G_000148_MC_FB_START(x)
#define C_000148_MC_FB_START
#define S_000148_MC_FB_TOP(x)
#define G_000148_MC_FB_TOP(x)
#define C_000148_MC_FB_TOP
#define R_00014C_MC_AGP_LOCATION
#define S_00014C_MC_AGP_START(x)
#define G_00014C_MC_AGP_START(x)
#define C_00014C_MC_AGP_START
#define S_00014C_MC_AGP_TOP(x)
#define G_00014C_MC_AGP_TOP(x)
#define C_00014C_MC_AGP_TOP
#define R_00015C_AGP_BASE_2
#define S_00015C_AGP_BASE_ADDR_2(x)
#define G_00015C_AGP_BASE_ADDR_2(x)
#define C_00015C_AGP_BASE_ADDR_2
#define R_000170_AGP_BASE
#define S_000170_AGP_BASE_ADDR(x)
#define G_000170_AGP_BASE_ADDR(x)
#define C_000170_AGP_BASE_ADDR
#define R_0007C0_CP_STAT
#define S_0007C0_MRU_BUSY(x)
#define G_0007C0_MRU_BUSY(x)
#define C_0007C0_MRU_BUSY
#define S_0007C0_MWU_BUSY(x)
#define G_0007C0_MWU_BUSY(x)
#define C_0007C0_MWU_BUSY
#define S_0007C0_RSIU_BUSY(x)
#define G_0007C0_RSIU_BUSY(x)
#define C_0007C0_RSIU_BUSY
#define S_0007C0_RCIU_BUSY(x)
#define G_0007C0_RCIU_BUSY(x)
#define C_0007C0_RCIU_BUSY
#define S_0007C0_CSF_PRIMARY_BUSY(x)
#define G_0007C0_CSF_PRIMARY_BUSY(x)
#define C_0007C0_CSF_PRIMARY_BUSY
#define S_0007C0_CSF_INDIRECT_BUSY(x)
#define G_0007C0_CSF_INDIRECT_BUSY(x)
#define C_0007C0_CSF_INDIRECT_BUSY
#define S_0007C0_CSQ_PRIMARY_BUSY(x)
#define G_0007C0_CSQ_PRIMARY_BUSY(x)
#define C_0007C0_CSQ_PRIMARY_BUSY
#define S_0007C0_CSQ_INDIRECT_BUSY(x)
#define G_0007C0_CSQ_INDIRECT_BUSY(x)
#define C_0007C0_CSQ_INDIRECT_BUSY
#define S_0007C0_CSI_BUSY(x)
#define G_0007C0_CSI_BUSY(x)
#define C_0007C0_CSI_BUSY
#define S_0007C0_CSF_INDIRECT2_BUSY(x)
#define G_0007C0_CSF_INDIRECT2_BUSY(x)
#define C_0007C0_CSF_INDIRECT2_BUSY
#define S_0007C0_CSQ_INDIRECT2_BUSY(x)
#define G_0007C0_CSQ_INDIRECT2_BUSY(x)
#define C_0007C0_CSQ_INDIRECT2_BUSY
#define S_0007C0_GUIDMA_BUSY(x)
#define G_0007C0_GUIDMA_BUSY(x)
#define C_0007C0_GUIDMA_BUSY
#define S_0007C0_VIDDMA_BUSY(x)
#define G_0007C0_VIDDMA_BUSY(x)
#define C_0007C0_VIDDMA_BUSY
#define S_0007C0_CMDSTRM_BUSY(x)
#define G_0007C0_CMDSTRM_BUSY(x)
#define C_0007C0_CMDSTRM_BUSY
#define S_0007C0_CP_BUSY(x)
#define G_0007C0_CP_BUSY(x)
#define C_0007C0_CP_BUSY
#define R_000E40_RBBM_STATUS
#define S_000E40_CMDFIFO_AVAIL(x)
#define G_000E40_CMDFIFO_AVAIL(x)
#define C_000E40_CMDFIFO_AVAIL
#define S_000E40_HIRQ_ON_RBB(x)
#define G_000E40_HIRQ_ON_RBB(x)
#define C_000E40_HIRQ_ON_RBB
#define S_000E40_CPRQ_ON_RBB(x)
#define G_000E40_CPRQ_ON_RBB(x)
#define C_000E40_CPRQ_ON_RBB
#define S_000E40_CFRQ_ON_RBB(x)
#define G_000E40_CFRQ_ON_RBB(x)
#define C_000E40_CFRQ_ON_RBB
#define S_000E40_HIRQ_IN_RTBUF(x)
#define G_000E40_HIRQ_IN_RTBUF(x)
#define C_000E40_HIRQ_IN_RTBUF
#define S_000E40_CPRQ_IN_RTBUF(x)
#define G_000E40_CPRQ_IN_RTBUF(x)
#define C_000E40_CPRQ_IN_RTBUF
#define S_000E40_CFRQ_IN_RTBUF(x)
#define G_000E40_CFRQ_IN_RTBUF(x)
#define C_000E40_CFRQ_IN_RTBUF
#define S_000E40_CF_PIPE_BUSY(x)
#define G_000E40_CF_PIPE_BUSY(x)
#define C_000E40_CF_PIPE_BUSY
#define S_000E40_ENG_EV_BUSY(x)
#define G_000E40_ENG_EV_BUSY(x)
#define C_000E40_ENG_EV_BUSY
#define S_000E40_CP_CMDSTRM_BUSY(x)
#define G_000E40_CP_CMDSTRM_BUSY(x)
#define C_000E40_CP_CMDSTRM_BUSY
#define S_000E40_E2_BUSY(x)
#define G_000E40_E2_BUSY(x)
#define C_000E40_E2_BUSY
#define S_000E40_RB2D_BUSY(x)
#define G_000E40_RB2D_BUSY(x)
#define C_000E40_RB2D_BUSY
#define S_000E40_RB3D_BUSY(x)
#define G_000E40_RB3D_BUSY(x)
#define C_000E40_RB3D_BUSY
#define S_000E40_VAP_BUSY(x)
#define G_000E40_VAP_BUSY(x)
#define C_000E40_VAP_BUSY
#define S_000E40_RE_BUSY(x)
#define G_000E40_RE_BUSY(x)
#define C_000E40_RE_BUSY
#define S_000E40_TAM_BUSY(x)
#define G_000E40_TAM_BUSY(x)
#define C_000E40_TAM_BUSY
#define S_000E40_TDM_BUSY(x)
#define G_000E40_TDM_BUSY(x)
#define C_000E40_TDM_BUSY
#define S_000E40_PB_BUSY(x)
#define G_000E40_PB_BUSY(x)
#define C_000E40_PB_BUSY
#define S_000E40_TIM_BUSY(x)
#define G_000E40_TIM_BUSY(x)
#define C_000E40_TIM_BUSY
#define S_000E40_GA_BUSY(x)
#define G_000E40_GA_BUSY(x)
#define C_000E40_GA_BUSY
#define S_000E40_CBA2D_BUSY(x)
#define G_000E40_CBA2D_BUSY(x)
#define C_000E40_CBA2D_BUSY
#define S_000E40_GUI_ACTIVE(x)
#define G_000E40_GUI_ACTIVE(x)
#define C_000E40_GUI_ACTIVE
#define R_0000F0_RBBM_SOFT_RESET
#define S_0000F0_SOFT_RESET_CP(x)
#define G_0000F0_SOFT_RESET_CP(x)
#define C_0000F0_SOFT_RESET_CP
#define S_0000F0_SOFT_RESET_HI(x)
#define G_0000F0_SOFT_RESET_HI(x)
#define C_0000F0_SOFT_RESET_HI
#define S_0000F0_SOFT_RESET_VAP(x)
#define G_0000F0_SOFT_RESET_VAP(x)
#define C_0000F0_SOFT_RESET_VAP
#define S_0000F0_SOFT_RESET_RE(x)
#define G_0000F0_SOFT_RESET_RE(x)
#define C_0000F0_SOFT_RESET_RE
#define S_0000F0_SOFT_RESET_PP(x)
#define G_0000F0_SOFT_RESET_PP(x)
#define C_0000F0_SOFT_RESET_PP
#define S_0000F0_SOFT_RESET_E2(x)
#define G_0000F0_SOFT_RESET_E2(x)
#define C_0000F0_SOFT_RESET_E2
#define S_0000F0_SOFT_RESET_RB(x)
#define G_0000F0_SOFT_RESET_RB(x)
#define C_0000F0_SOFT_RESET_RB
#define S_0000F0_SOFT_RESET_HDP(x)
#define G_0000F0_SOFT_RESET_HDP(x)
#define C_0000F0_SOFT_RESET_HDP
#define S_0000F0_SOFT_RESET_MC(x)
#define G_0000F0_SOFT_RESET_MC(x)
#define C_0000F0_SOFT_RESET_MC
#define S_0000F0_SOFT_RESET_AIC(x)
#define G_0000F0_SOFT_RESET_AIC(x)
#define C_0000F0_SOFT_RESET_AIC
#define S_0000F0_SOFT_RESET_VIP(x)
#define G_0000F0_SOFT_RESET_VIP(x)
#define C_0000F0_SOFT_RESET_VIP
#define S_0000F0_SOFT_RESET_DISP(x)
#define G_0000F0_SOFT_RESET_DISP(x)
#define C_0000F0_SOFT_RESET_DISP
#define S_0000F0_SOFT_RESET_CG(x)
#define G_0000F0_SOFT_RESET_CG(x)
#define C_0000F0_SOFT_RESET_CG
#define S_0000F0_SOFT_RESET_GA(x)
#define G_0000F0_SOFT_RESET_GA(x)
#define C_0000F0_SOFT_RESET_GA
#define S_0000F0_SOFT_RESET_IDCT(x)
#define G_0000F0_SOFT_RESET_IDCT(x)
#define C_0000F0_SOFT_RESET_IDCT

#define R_00000D_SCLK_CNTL
#define S_00000D_SCLK_SRC_SEL(x)
#define G_00000D_SCLK_SRC_SEL(x)
#define C_00000D_SCLK_SRC_SEL
#define S_00000D_CP_MAX_DYN_STOP_LAT(x)
#define G_00000D_CP_MAX_DYN_STOP_LAT(x)
#define C_00000D_CP_MAX_DYN_STOP_LAT
#define S_00000D_HDP_MAX_DYN_STOP_LAT(x)
#define G_00000D_HDP_MAX_DYN_STOP_LAT(x)
#define C_00000D_HDP_MAX_DYN_STOP_LAT
#define S_00000D_TV_MAX_DYN_STOP_LAT(x)
#define G_00000D_TV_MAX_DYN_STOP_LAT(x)
#define C_00000D_TV_MAX_DYN_STOP_LAT
#define S_00000D_E2_MAX_DYN_STOP_LAT(x)
#define G_00000D_E2_MAX_DYN_STOP_LAT(x)
#define C_00000D_E2_MAX_DYN_STOP_LAT
#define S_00000D_SE_MAX_DYN_STOP_LAT(x)
#define G_00000D_SE_MAX_DYN_STOP_LAT(x)
#define C_00000D_SE_MAX_DYN_STOP_LAT
#define S_00000D_IDCT_MAX_DYN_STOP_LAT(x)
#define G_00000D_IDCT_MAX_DYN_STOP_LAT(x)
#define C_00000D_IDCT_MAX_DYN_STOP_LAT
#define S_00000D_VIP_MAX_DYN_STOP_LAT(x)
#define G_00000D_VIP_MAX_DYN_STOP_LAT(x)
#define C_00000D_VIP_MAX_DYN_STOP_LAT
#define S_00000D_RE_MAX_DYN_STOP_LAT(x)
#define G_00000D_RE_MAX_DYN_STOP_LAT(x)
#define C_00000D_RE_MAX_DYN_STOP_LAT
#define S_00000D_PB_MAX_DYN_STOP_LAT(x)
#define G_00000D_PB_MAX_DYN_STOP_LAT(x)
#define C_00000D_PB_MAX_DYN_STOP_LAT
#define S_00000D_TAM_MAX_DYN_STOP_LAT(x)
#define G_00000D_TAM_MAX_DYN_STOP_LAT(x)
#define C_00000D_TAM_MAX_DYN_STOP_LAT
#define S_00000D_TDM_MAX_DYN_STOP_LAT(x)
#define G_00000D_TDM_MAX_DYN_STOP_LAT(x)
#define C_00000D_TDM_MAX_DYN_STOP_LAT
#define S_00000D_RB_MAX_DYN_STOP_LAT(x)
#define G_00000D_RB_MAX_DYN_STOP_LAT(x)
#define C_00000D_RB_MAX_DYN_STOP_LAT
#define S_00000D_FORCE_DISP2(x)
#define G_00000D_FORCE_DISP2(x)
#define C_00000D_FORCE_DISP2
#define S_00000D_FORCE_CP(x)
#define G_00000D_FORCE_CP(x)
#define C_00000D_FORCE_CP
#define S_00000D_FORCE_HDP(x)
#define G_00000D_FORCE_HDP(x)
#define C_00000D_FORCE_HDP
#define S_00000D_FORCE_DISP1(x)
#define G_00000D_FORCE_DISP1(x)
#define C_00000D_FORCE_DISP1
#define S_00000D_FORCE_TOP(x)
#define G_00000D_FORCE_TOP(x)
#define C_00000D_FORCE_TOP
#define S_00000D_FORCE_E2(x)
#define G_00000D_FORCE_E2(x)
#define C_00000D_FORCE_E2
#define S_00000D_FORCE_SE(x)
#define G_00000D_FORCE_SE(x)
#define C_00000D_FORCE_SE
#define S_00000D_FORCE_IDCT(x)
#define G_00000D_FORCE_IDCT(x)
#define C_00000D_FORCE_IDCT
#define S_00000D_FORCE_VIP(x)
#define G_00000D_FORCE_VIP(x)
#define C_00000D_FORCE_VIP
#define S_00000D_FORCE_RE(x)
#define G_00000D_FORCE_RE(x)
#define C_00000D_FORCE_RE
#define S_00000D_FORCE_PB(x)
#define G_00000D_FORCE_PB(x)
#define C_00000D_FORCE_PB
#define S_00000D_FORCE_TAM(x)
#define G_00000D_FORCE_TAM(x)
#define C_00000D_FORCE_TAM
#define S_00000D_FORCE_TDM(x)
#define G_00000D_FORCE_TDM(x)
#define C_00000D_FORCE_TDM
#define S_00000D_FORCE_RB(x)
#define G_00000D_FORCE_RB(x)
#define C_00000D_FORCE_RB
#define S_00000D_FORCE_TV_SCLK(x)
#define G_00000D_FORCE_TV_SCLK(x)
#define C_00000D_FORCE_TV_SCLK
#define S_00000D_FORCE_SUBPIC(x)
#define G_00000D_FORCE_SUBPIC(x)
#define C_00000D_FORCE_SUBPIC
#define S_00000D_FORCE_OV0(x)
#define G_00000D_FORCE_OV0(x)
#define C_00000D_FORCE_OV0

#endif