rv350d.h revision 254885
1183878Sraj/*
2183878Sraj * Copyright 2008 Advanced Micro Devices, Inc.
3183878Sraj * Copyright 2008 Red Hat Inc.
4183878Sraj * Copyright 2009 Jerome Glisse.
5183878Sraj *
6183878Sraj * Permission is hereby granted, free of charge, to any person obtaining a
7183878Sraj * copy of this software and associated documentation files (the "Software"),
8236159Skientzle * to deal in the Software without restriction, including without limitation
9183878Sraj * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10183878Sraj * and/or sell copies of the Software, and to permit persons to whom the
11183878Sraj * Software is furnished to do so, subject to the following conditions:
12183878Sraj *
13183878Sraj * The above copyright notice and this permission notice shall be included in
14183878Sraj * all copies or substantial portions of the Software.
15183878Sraj *
16183878Sraj * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17183878Sraj * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18183878Sraj * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19183878Sraj * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20183878Sraj * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21183878Sraj * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22183878Sraj * OTHER DEALINGS IN THE SOFTWARE.
23183878Sraj *
24183878Sraj * Authors: Dave Airlie
25183878Sraj *          Alex Deucher
26183878Sraj *          Jerome Glisse
27183878Sraj */
28183878Sraj#ifndef __RV350D_H__
29183878Sraj#define __RV350D_H__
30183878Sraj
31183878Sraj#include <sys/cdefs.h>
32183878Sraj__FBSDID("$FreeBSD: head/sys/dev/drm2/radeon/rv350d.h 254885 2013-08-25 19:37:15Z dumbbell $");
33183878Sraj
34183878Sraj/* RV350, RV380 registers */
35183878Sraj/* #define R_00000D_SCLK_CNTL                           0x00000D */
36183878Sraj#define   S_00000D_FORCE_VAP(x)                        (((x) & 0x1) << 21)
37183878Sraj#define   G_00000D_FORCE_VAP(x)                        (((x) >> 21) & 0x1)
38183878Sraj#define   C_00000D_FORCE_VAP                           0xFFDFFFFF
39183878Sraj#define   S_00000D_FORCE_SR(x)                         (((x) & 0x1) << 25)
40183878Sraj#define   G_00000D_FORCE_SR(x)                         (((x) >> 25) & 0x1)
41183878Sraj#define   C_00000D_FORCE_SR                            0xFDFFFFFF
42183878Sraj#define   S_00000D_FORCE_PX(x)                         (((x) & 0x1) << 26)
43183878Sraj#define   G_00000D_FORCE_PX(x)                         (((x) >> 26) & 0x1)
44183878Sraj#define   C_00000D_FORCE_PX                            0xFBFFFFFF
45183878Sraj#define   S_00000D_FORCE_TX(x)                         (((x) & 0x1) << 27)
46183878Sraj#define   G_00000D_FORCE_TX(x)                         (((x) >> 27) & 0x1)
47183878Sraj#define   C_00000D_FORCE_TX                            0xF7FFFFFF
48183878Sraj#define   S_00000D_FORCE_US(x)                         (((x) & 0x1) << 28)
49183878Sraj#define   G_00000D_FORCE_US(x)                         (((x) >> 28) & 0x1)
50183878Sraj#define   C_00000D_FORCE_US                            0xEFFFFFFF
51183878Sraj#define   S_00000D_FORCE_SU(x)                         (((x) & 0x1) << 30)
52183878Sraj#define   G_00000D_FORCE_SU(x)                         (((x) >> 30) & 0x1)
53183878Sraj#define   C_00000D_FORCE_SU                            0xBFFFFFFF
54183878Sraj
55183878Sraj#endif
56183878Sraj