drm/i915/dram: hide the dram structs better
Finish the job started in d28ae3b281
("drm/i915: split out
intel_dram.[ch] from i915_drv.c") by moving struct dram_dimm_info and
dram_channel_info inside intel_dram.c, the only user of the structs.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200227145359.17543-1-jani.nikula@intel.com
This commit is contained in:
parent
0053552735
commit
b28bba8997
|
@ -1244,16 +1244,6 @@ struct drm_i915_private {
|
|||
*/
|
||||
};
|
||||
|
||||
struct dram_dimm_info {
|
||||
u8 size, width, ranks;
|
||||
};
|
||||
|
||||
struct dram_channel_info {
|
||||
struct dram_dimm_info dimm_l, dimm_s;
|
||||
u8 ranks;
|
||||
bool is_16gb_dimm;
|
||||
};
|
||||
|
||||
static inline struct drm_i915_private *to_i915(const struct drm_device *dev)
|
||||
{
|
||||
return container_of(dev, struct drm_i915_private, drm);
|
||||
|
|
|
@ -6,6 +6,16 @@
|
|||
#include "i915_drv.h"
|
||||
#include "intel_dram.h"
|
||||
|
||||
struct dram_dimm_info {
|
||||
u8 size, width, ranks;
|
||||
};
|
||||
|
||||
struct dram_channel_info {
|
||||
struct dram_dimm_info dimm_l, dimm_s;
|
||||
u8 ranks;
|
||||
bool is_16gb_dimm;
|
||||
};
|
||||
|
||||
#define DRAM_TYPE_STR(type) [INTEL_DRAM_ ## type] = #type
|
||||
|
||||
static const char *intel_dram_type_str(enum intel_dram_type type)
|
||||
|
|
Loading…
Reference in New Issue