Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2010 Advanced Micro Devices, Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  *
0022  * Authors: Alex Deucher
0023  */
0024 #ifndef __SI_REG_H__
0025 #define __SI_REG_H__
0026 
0027 /* SI */
0028 #define SI_DC_GPIO_HPD_MASK                      0x65b0
0029 #define SI_DC_GPIO_HPD_A                         0x65b4
0030 #define SI_DC_GPIO_HPD_EN                        0x65b8
0031 #define SI_DC_GPIO_HPD_Y                         0x65bc
0032 
0033 #define SI_GRPH_CONTROL                          0x6804
0034 #       define SI_GRPH_DEPTH(x)                  (((x) & 0x3) << 0)
0035 #       define SI_GRPH_DEPTH_8BPP                0
0036 #       define SI_GRPH_DEPTH_16BPP               1
0037 #       define SI_GRPH_DEPTH_32BPP               2
0038 #       define SI_GRPH_NUM_BANKS(x)              (((x) & 0x3) << 2)
0039 #       define SI_ADDR_SURF_2_BANK               0
0040 #       define SI_ADDR_SURF_4_BANK               1
0041 #       define SI_ADDR_SURF_8_BANK               2
0042 #       define SI_ADDR_SURF_16_BANK              3
0043 #       define SI_GRPH_Z(x)                      (((x) & 0x3) << 4)
0044 #       define SI_GRPH_BANK_WIDTH(x)             (((x) & 0x3) << 6)
0045 #       define SI_ADDR_SURF_BANK_WIDTH_1         0
0046 #       define SI_ADDR_SURF_BANK_WIDTH_2         1
0047 #       define SI_ADDR_SURF_BANK_WIDTH_4         2
0048 #       define SI_ADDR_SURF_BANK_WIDTH_8         3
0049 #       define SI_GRPH_FORMAT(x)                 (((x) & 0x7) << 8)
0050 /* 8 BPP */
0051 #       define SI_GRPH_FORMAT_INDEXED            0
0052 /* 16 BPP */
0053 #       define SI_GRPH_FORMAT_ARGB1555           0
0054 #       define SI_GRPH_FORMAT_ARGB565            1
0055 #       define SI_GRPH_FORMAT_ARGB4444           2
0056 #       define SI_GRPH_FORMAT_AI88               3
0057 #       define SI_GRPH_FORMAT_MONO16             4
0058 #       define SI_GRPH_FORMAT_BGRA5551           5
0059 /* 32 BPP */
0060 #       define SI_GRPH_FORMAT_ARGB8888           0
0061 #       define SI_GRPH_FORMAT_ARGB2101010        1
0062 #       define SI_GRPH_FORMAT_32BPP_DIG          2
0063 #       define SI_GRPH_FORMAT_8B_ARGB2101010     3
0064 #       define SI_GRPH_FORMAT_BGRA1010102        4
0065 #       define SI_GRPH_FORMAT_8B_BGRA1010102     5
0066 #       define SI_GRPH_FORMAT_RGB111110          6
0067 #       define SI_GRPH_FORMAT_BGR101111          7
0068 #       define SI_GRPH_BANK_HEIGHT(x)            (((x) & 0x3) << 11)
0069 #       define SI_ADDR_SURF_BANK_HEIGHT_1        0
0070 #       define SI_ADDR_SURF_BANK_HEIGHT_2        1
0071 #       define SI_ADDR_SURF_BANK_HEIGHT_4        2
0072 #       define SI_ADDR_SURF_BANK_HEIGHT_8        3
0073 #       define SI_GRPH_TILE_SPLIT(x)             (((x) & 0x7) << 13)
0074 #       define SI_ADDR_SURF_TILE_SPLIT_64B       0
0075 #       define SI_ADDR_SURF_TILE_SPLIT_128B      1
0076 #       define SI_ADDR_SURF_TILE_SPLIT_256B      2
0077 #       define SI_ADDR_SURF_TILE_SPLIT_512B      3
0078 #       define SI_ADDR_SURF_TILE_SPLIT_1KB       4
0079 #       define SI_ADDR_SURF_TILE_SPLIT_2KB       5
0080 #       define SI_ADDR_SURF_TILE_SPLIT_4KB       6
0081 #       define SI_GRPH_MACRO_TILE_ASPECT(x)      (((x) & 0x3) << 18)
0082 #       define SI_ADDR_SURF_MACRO_TILE_ASPECT_1  0
0083 #       define SI_ADDR_SURF_MACRO_TILE_ASPECT_2  1
0084 #       define SI_ADDR_SURF_MACRO_TILE_ASPECT_4  2
0085 #       define SI_ADDR_SURF_MACRO_TILE_ASPECT_8  3
0086 #       define SI_GRPH_ARRAY_MODE(x)             (((x) & 0x7) << 20)
0087 #       define SI_GRPH_ARRAY_LINEAR_GENERAL      0
0088 #       define SI_GRPH_ARRAY_LINEAR_ALIGNED      1
0089 #       define SI_GRPH_ARRAY_1D_TILED_THIN1      2
0090 #       define SI_GRPH_ARRAY_2D_TILED_THIN1      4
0091 #       define SI_GRPH_PIPE_CONFIG(x)        (((x) & 0x1f) << 24)
0092 #       define SI_ADDR_SURF_P2           0
0093 #       define SI_ADDR_SURF_P4_8x16      4
0094 #       define SI_ADDR_SURF_P4_16x16         5
0095 #       define SI_ADDR_SURF_P4_16x32         6
0096 #       define SI_ADDR_SURF_P4_32x32         7
0097 #       define SI_ADDR_SURF_P8_16x16_8x16    8
0098 #       define SI_ADDR_SURF_P8_16x32_8x16    9
0099 #       define SI_ADDR_SURF_P8_32x32_8x16    10
0100 #       define SI_ADDR_SURF_P8_16x32_16x16   11
0101 #       define SI_ADDR_SURF_P8_32x32_16x16   12
0102 #       define SI_ADDR_SURF_P8_32x32_16x32   13
0103 #       define SI_ADDR_SURF_P8_32x64_32x32   14
0104 
0105 #endif