mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
drm/i915/wm: make struct intel_dbuf_state opaque type
With all the code touching struct intel_dbuf_state moved inside skl_watermark.c, we move the struct definition there too, and make the type opaque. This nicely reduces includes from skl_watermark.h. Reviewed-by: Imre Deak <imre.deak@intel.com> Link: https://lore.kernel.org/r/83ae5f022a1d6d83c031e5c079b04dc739102565.1750847509.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -39,6 +39,18 @@
|
||||
*/
|
||||
#define DSB_EXE_TIME 100
|
||||
|
||||
struct intel_dbuf_state {
|
||||
struct intel_global_state base;
|
||||
|
||||
struct skl_ddb_entry ddb[I915_MAX_PIPES];
|
||||
unsigned int weight[I915_MAX_PIPES];
|
||||
u8 slices[I915_MAX_PIPES];
|
||||
u8 enabled_slices;
|
||||
u8 active_pipes;
|
||||
u8 mdclk_cdclk_ratio;
|
||||
bool joined_mbus;
|
||||
};
|
||||
|
||||
#define to_intel_dbuf_state(global_state) \
|
||||
container_of_const((global_state), struct intel_dbuf_state, base)
|
||||
|
||||
|
||||
@@ -8,17 +8,16 @@
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "intel_display_limits.h"
|
||||
#include "intel_global_state.h"
|
||||
#include "intel_wm_types.h"
|
||||
|
||||
enum plane_id;
|
||||
struct intel_atomic_state;
|
||||
struct intel_bw_state;
|
||||
struct intel_crtc;
|
||||
struct intel_crtc_state;
|
||||
struct intel_dbuf_state;
|
||||
struct intel_display;
|
||||
struct intel_plane;
|
||||
struct intel_plane_state;
|
||||
struct skl_ddb_entry;
|
||||
struct skl_pipe_wm;
|
||||
struct skl_wm_level;
|
||||
|
||||
@@ -63,18 +62,6 @@ unsigned int skl_plane_relative_data_rate(const struct intel_crtc_state *crtc_st
|
||||
struct intel_plane *plane, int width,
|
||||
int height, int cpp);
|
||||
|
||||
struct intel_dbuf_state {
|
||||
struct intel_global_state base;
|
||||
|
||||
struct skl_ddb_entry ddb[I915_MAX_PIPES];
|
||||
unsigned int weight[I915_MAX_PIPES];
|
||||
u8 slices[I915_MAX_PIPES];
|
||||
u8 enabled_slices;
|
||||
u8 active_pipes;
|
||||
u8 mdclk_cdclk_ratio;
|
||||
bool joined_mbus;
|
||||
};
|
||||
|
||||
struct intel_dbuf_state *
|
||||
intel_atomic_get_dbuf_state(struct intel_atomic_state *state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user