106 lines · c
1/*2 * Copyright 2010 Advanced Micro Devices, Inc.3 *4 * Permission is hereby granted, free of charge, to any person obtaining a5 * copy of this software and associated documentation files (the "Software"),6 * to deal in the Software without restriction, including without limitation7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,8 * and/or sell copies of the Software, and to permit persons to whom the9 * Software is furnished to do so, subject to the following conditions:10 *11 * The above copyright notice and this permission notice shall be included in12 * all copies or substantial portions of the Software.13 *14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR20 * OTHER DEALINGS IN THE SOFTWARE.21 *22 * Authors: Alex Deucher23 */24#ifndef __SI_REG_H__25#define __SI_REG_H__26 27/* SI */28#define SI_DC_GPIO_HPD_MASK 0x65b029#define SI_DC_GPIO_HPD_A 0x65b430#define SI_DC_GPIO_HPD_EN 0x65b831#define SI_DC_GPIO_HPD_Y 0x65bc32 33#define SI_GRPH_CONTROL 0x680434# define SI_GRPH_DEPTH(x) (((x) & 0x3) << 0)35# define SI_GRPH_DEPTH_8BPP 036# define SI_GRPH_DEPTH_16BPP 137# define SI_GRPH_DEPTH_32BPP 238# define SI_GRPH_NUM_BANKS(x) (((x) & 0x3) << 2)39# define SI_ADDR_SURF_2_BANK 040# define SI_ADDR_SURF_4_BANK 141# define SI_ADDR_SURF_8_BANK 242# define SI_ADDR_SURF_16_BANK 343# define SI_GRPH_Z(x) (((x) & 0x3) << 4)44# define SI_GRPH_BANK_WIDTH(x) (((x) & 0x3) << 6)45# define SI_ADDR_SURF_BANK_WIDTH_1 046# define SI_ADDR_SURF_BANK_WIDTH_2 147# define SI_ADDR_SURF_BANK_WIDTH_4 248# define SI_ADDR_SURF_BANK_WIDTH_8 349# define SI_GRPH_FORMAT(x) (((x) & 0x7) << 8)50/* 8 BPP */51# define SI_GRPH_FORMAT_INDEXED 052/* 16 BPP */53# define SI_GRPH_FORMAT_ARGB1555 054# define SI_GRPH_FORMAT_ARGB565 155# define SI_GRPH_FORMAT_ARGB4444 256# define SI_GRPH_FORMAT_AI88 357# define SI_GRPH_FORMAT_MONO16 458# define SI_GRPH_FORMAT_BGRA5551 559/* 32 BPP */60# define SI_GRPH_FORMAT_ARGB8888 061# define SI_GRPH_FORMAT_ARGB2101010 162# define SI_GRPH_FORMAT_32BPP_DIG 263# define SI_GRPH_FORMAT_8B_ARGB2101010 364# define SI_GRPH_FORMAT_BGRA1010102 465# define SI_GRPH_FORMAT_8B_BGRA1010102 566# define SI_GRPH_FORMAT_RGB111110 667# define SI_GRPH_FORMAT_BGR101111 768# define SI_GRPH_BANK_HEIGHT(x) (((x) & 0x3) << 11)69# define SI_ADDR_SURF_BANK_HEIGHT_1 070# define SI_ADDR_SURF_BANK_HEIGHT_2 171# define SI_ADDR_SURF_BANK_HEIGHT_4 272# define SI_ADDR_SURF_BANK_HEIGHT_8 373# define SI_GRPH_TILE_SPLIT(x) (((x) & 0x7) << 13)74# define SI_ADDR_SURF_TILE_SPLIT_64B 075# define SI_ADDR_SURF_TILE_SPLIT_128B 176# define SI_ADDR_SURF_TILE_SPLIT_256B 277# define SI_ADDR_SURF_TILE_SPLIT_512B 378# define SI_ADDR_SURF_TILE_SPLIT_1KB 479# define SI_ADDR_SURF_TILE_SPLIT_2KB 580# define SI_ADDR_SURF_TILE_SPLIT_4KB 681# define SI_GRPH_MACRO_TILE_ASPECT(x) (((x) & 0x3) << 18)82# define SI_ADDR_SURF_MACRO_TILE_ASPECT_1 083# define SI_ADDR_SURF_MACRO_TILE_ASPECT_2 184# define SI_ADDR_SURF_MACRO_TILE_ASPECT_4 285# define SI_ADDR_SURF_MACRO_TILE_ASPECT_8 386# define SI_GRPH_ARRAY_MODE(x) (((x) & 0x7) << 20)87# define SI_GRPH_ARRAY_LINEAR_GENERAL 088# define SI_GRPH_ARRAY_LINEAR_ALIGNED 189# define SI_GRPH_ARRAY_1D_TILED_THIN1 290# define SI_GRPH_ARRAY_2D_TILED_THIN1 491# define SI_GRPH_PIPE_CONFIG(x) (((x) & 0x1f) << 24)92# define SI_ADDR_SURF_P2 093# define SI_ADDR_SURF_P4_8x16 494# define SI_ADDR_SURF_P4_16x16 595# define SI_ADDR_SURF_P4_16x32 696# define SI_ADDR_SURF_P4_32x32 797# define SI_ADDR_SURF_P8_16x16_8x16 898# define SI_ADDR_SURF_P8_16x32_8x16 999# define SI_ADDR_SURF_P8_32x32_8x16 10100# define SI_ADDR_SURF_P8_16x32_16x16 11101# define SI_ADDR_SURF_P8_32x32_16x16 12102# define SI_ADDR_SURF_P8_32x32_16x32 13103# define SI_ADDR_SURF_P8_32x64_32x32 14104 105#endif106