mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 04:39:02 +02:00
Add a typedef alias intel_reg_t for i915_reg_t, and use it exclusively in display code. The goal is to eventually define a distinct type for display, but for now just use an alias. In a handful of places include intel_display_reg_defs.h instead of i915_reg_defs.h to get the definition, and isolate the i915_reg_defs.h include there. Reviewed-by: Michał Grzelak <michal.grzelak@intel.com> Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/f5bb0122143c39ce7f9ce8a1605a7637e569f7f8.1777972548.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
22 lines
514 B
C
22 lines
514 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2026 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_MCHBAR_H__
|
|
#define __INTEL_MCHBAR_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <drm/intel/mchbar_regs.h>
|
|
|
|
#include "intel_display_reg_defs.h"
|
|
|
|
struct intel_display;
|
|
|
|
u16 intel_mchbar_read16(struct intel_display *display, intel_reg_t reg);
|
|
u32 intel_mchbar_read(struct intel_display *display, intel_reg_t reg);
|
|
u64 intel_mchbar_read64_2x32(struct intel_display *display, intel_reg_t reg);
|
|
|
|
#endif /* __INTEL_MCHBAR_H__ */
|