xref: /dflybsd-src/sys/dev/drm/radeon/rs100d.h (revision 57e252bfa9ffec9f583f486376e43c8b2c0b8809)
1*926deccbSFrançois Tigeot /*
2*926deccbSFrançois Tigeot  * Copyright 2008 Advanced Micro Devices, Inc.
3*926deccbSFrançois Tigeot  * Copyright 2008 Red Hat Inc.
4*926deccbSFrançois Tigeot  * Copyright 2009 Jerome Glisse.
5*926deccbSFrançois Tigeot  *
6*926deccbSFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
7*926deccbSFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
8*926deccbSFrançois Tigeot  * to deal in the Software without restriction, including without limitation
9*926deccbSFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10*926deccbSFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
11*926deccbSFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
12*926deccbSFrançois Tigeot  *
13*926deccbSFrançois Tigeot  * The above copyright notice and this permission notice shall be included in
14*926deccbSFrançois Tigeot  * all copies or substantial portions of the Software.
15*926deccbSFrançois Tigeot  *
16*926deccbSFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*926deccbSFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*926deccbSFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19*926deccbSFrançois Tigeot  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20*926deccbSFrançois Tigeot  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21*926deccbSFrançois Tigeot  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22*926deccbSFrançois Tigeot  * OTHER DEALINGS IN THE SOFTWARE.
23*926deccbSFrançois Tigeot  *
24*926deccbSFrançois Tigeot  * Authors: Dave Airlie
25*926deccbSFrançois Tigeot  *          Alex Deucher
26*926deccbSFrançois Tigeot  *          Jerome Glisse
27*926deccbSFrançois Tigeot  */
28*926deccbSFrançois Tigeot #ifndef __RS100D_H__
29*926deccbSFrançois Tigeot #define __RS100D_H__
30*926deccbSFrançois Tigeot 
31*926deccbSFrançois Tigeot /* Registers */
32*926deccbSFrançois Tigeot #define R_00015C_NB_TOM                              0x00015C
33*926deccbSFrançois Tigeot #define   S_00015C_MC_FB_START(x)                      (((x) & 0xFFFF) << 0)
34*926deccbSFrançois Tigeot #define   G_00015C_MC_FB_START(x)                      (((x) >> 0) & 0xFFFF)
35*926deccbSFrançois Tigeot #define   C_00015C_MC_FB_START                         0xFFFF0000
36*926deccbSFrançois Tigeot #define   S_00015C_MC_FB_TOP(x)                        (((x) & 0xFFFF) << 16)
37*926deccbSFrançois Tigeot #define   G_00015C_MC_FB_TOP(x)                        (((x) >> 16) & 0xFFFF)
38*926deccbSFrançois Tigeot #define   C_00015C_MC_FB_TOP                           0x0000FFFF
39*926deccbSFrançois Tigeot 
40*926deccbSFrançois Tigeot #endif
41