mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-30 17:46:42 +00:00

With users both in i915 core and display, struct drm_device is the common denominator for the VLV IOSF SB users. Also use drm_device for the helpers on the display side to keep the static inlines as simple as possible. We can drop a number of dependencies on i915_drv.h with this. v2,v3: Rebase Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://lore.kernel.org/r/c1d013ed88ce2e3e5bdc15ce3bf01a3960b1e817.1747061743.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
43 lines
846 B
C
43 lines
846 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2013-2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _VLV_IOSF_SB_H_
|
|
#define _VLV_IOSF_SB_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "vlv_iosf_sb_reg.h"
|
|
|
|
struct drm_device;
|
|
|
|
enum vlv_iosf_sb_unit {
|
|
VLV_IOSF_SB_BUNIT,
|
|
VLV_IOSF_SB_CCK,
|
|
VLV_IOSF_SB_CCU,
|
|
VLV_IOSF_SB_DPIO,
|
|
VLV_IOSF_SB_DPIO_2,
|
|
VLV_IOSF_SB_FLISDSI,
|
|
VLV_IOSF_SB_GPIO,
|
|
VLV_IOSF_SB_NC,
|
|
VLV_IOSF_SB_PUNIT,
|
|
};
|
|
|
|
static inline void vlv_iosf_sb_get(struct drm_device *drm, unsigned long ports)
|
|
{
|
|
}
|
|
static inline u32 vlv_iosf_sb_read(struct drm_device *drm, enum vlv_iosf_sb_unit unit, u32 addr)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int vlv_iosf_sb_write(struct drm_device *drm, enum vlv_iosf_sb_unit unit, u32 addr, u32 val)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void vlv_iosf_sb_put(struct drm_device *drm, unsigned long ports)
|
|
{
|
|
}
|
|
|
|
#endif /* _VLV_IOSF_SB_H_ */
|