Commit 88f489d2 authored by Sam Ravnborg's avatar Sam Ravnborg

drm/radeon: prepare header files for drmP.h removal

While removing drmP.h from all .c files the list of
header files are also sorted alphabetically.
To allow this adjust the header files to pull in
the dependencies they needed to allow this.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190608080241.4958-6-sam@ravnborg.org
parent 2ed9aa0f
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
#ifndef __BTC_DPM_H__ #ifndef __BTC_DPM_H__
#define __BTC_DPM_H__ #define __BTC_DPM_H__
#include "radeon.h"
#include "rv770_dpm.h"
#define BTC_RLP_UVD_DFLT 20 #define BTC_RLP_UVD_DFLT 20
#define BTC_RMP_UVD_DFLT 50 #define BTC_RMP_UVD_DFLT 50
#define BTC_LHP_UVD_DFLT 50 #define BTC_LHP_UVD_DFLT 50
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define __CI_DPM_H__ #define __CI_DPM_H__
#include "ppsmc.h" #include "ppsmc.h"
#include "radeon.h"
#define SMU__NUM_SCLK_DPM_STATE 8 #define SMU__NUM_SCLK_DPM_STATE 8
#define SMU__NUM_MCLK_DPM_LEVELS 6 #define SMU__NUM_MCLK_DPM_LEVELS 6
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* *
*/ */
#include "clearstate_defs.h"
static const u32 SECT_CONTEXT_def_1[] = static const u32 SECT_CONTEXT_def_1[] =
{ {
0x00000000, // DB_RENDER_CONTROL 0x00000000, // DB_RENDER_CONTROL
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* *
*/ */
#include "clearstate_defs.h"
static const unsigned int ci_SECT_CONTEXT_def_1[] = static const unsigned int ci_SECT_CONTEXT_def_1[] =
{ {
0x00000000, // DB_RENDER_CONTROL 0x00000000, // DB_RENDER_CONTROL
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* *
*/ */
#include "clearstate_defs.h"
static const u32 si_SECT_CONTEXT_def_1[] = static const u32 si_SECT_CONTEXT_def_1[] =
{ {
0x00000000, // DB_RENDER_CONTROL 0x00000000, // DB_RENDER_CONTROL
......
/* SPDX-License-Identifier: MIT */ /* SPDX-License-Identifier: MIT */
#include "radeon.h"
#define R100_TRACK_MAX_TEXTURE 3 #define R100_TRACK_MAX_TEXTURE 3
#define R200_TRACK_MAX_TEXTURE 6 #define R200_TRACK_MAX_TEXTURE 6
#define R300_TRACK_MAX_TEXTURE 16 #define R300_TRACK_MAX_TEXTURE 16
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#ifndef __R600_DPM_H__ #ifndef __R600_DPM_H__
#define __R600_DPM_H__ #define __R600_DPM_H__
#include "radeon.h"
#define R600_ASI_DFLT 10000 #define R600_ASI_DFLT 10000
#define R600_BSP_DFLT 0x41EB #define R600_BSP_DFLT 0x41EB
#define R600_BSU_DFLT 0x2 #define R600_BSU_DFLT 0x2
......
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
#define _RADEON_TRACE_H_ #define _RADEON_TRACE_H_
#include <linux/stringify.h> #include <linux/stringify.h>
#include <linux/types.h>
#include <linux/tracepoint.h> #include <linux/tracepoint.h>
#include <linux/types.h>
#include <drm/drm_file.h>
#undef TRACE_SYSTEM #undef TRACE_SYSTEM
#define TRACE_SYSTEM radeon #define TRACE_SYSTEM radeon
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#ifndef __RV770_DPM_H__ #ifndef __RV770_DPM_H__
#define __RV770_DPM_H__ #define __RV770_DPM_H__
#include "radeon.h"
#include "rv770_smc.h" #include "rv770_smc.h"
struct rv770_clock_registers { struct rv770_clock_registers {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define __SUMO_DPM_H__ #define __SUMO_DPM_H__
#include "atom.h" #include "atom.h"
#include "radeon.h"
#define SUMO_MAX_HARDWARE_POWERLEVELS 5 #define SUMO_MAX_HARDWARE_POWERLEVELS 5
#define SUMO_PM_NUMBER_OF_TC 15 #define SUMO_PM_NUMBER_OF_TC 15
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment