1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2013-2021 Intel Corporation 4 */ 5 6 #ifndef _VLV_SIDEBAND_H_ 7 #define _VLV_SIDEBAND_H_ 8 9 #include <linux/types.h> 10 11 #include "vlv_sideband_reg.h" 12 13 enum pipe; 14 struct drm_i915_private; 15 16 enum { 17 VLV_IOSF_SB_BUNIT, 18 VLV_IOSF_SB_CCK, 19 VLV_IOSF_SB_CCU, 20 VLV_IOSF_SB_DPIO, 21 VLV_IOSF_SB_FLISDSI, 22 VLV_IOSF_SB_GPIO, 23 VLV_IOSF_SB_NC, 24 VLV_IOSF_SB_PUNIT, 25 }; 26 27 static inline void vlv_iosf_sb_get(struct drm_i915_private *i915, unsigned long ports) 28 { 29 } 30 static inline u32 vlv_iosf_sb_read(struct drm_i915_private *i915, u8 port, u32 reg) 31 { 32 return 0; 33 } 34 static inline void vlv_iosf_sb_write(struct drm_i915_private *i915, 35 u8 port, u32 reg, u32 val) 36 { 37 } 38 static inline void vlv_iosf_sb_put(struct drm_i915_private *i915, unsigned long ports) 39 { 40 } 41 static inline void vlv_bunit_get(struct drm_i915_private *i915) 42 { 43 } 44 static inline u32 vlv_bunit_read(struct drm_i915_private *i915, u32 reg) 45 { 46 return 0; 47 } 48 static inline void vlv_bunit_write(struct drm_i915_private *i915, u32 reg, u32 val) 49 { 50 } 51 static inline void vlv_bunit_put(struct drm_i915_private *i915) 52 { 53 } 54 static inline void vlv_cck_get(struct drm_i915_private *i915) 55 { 56 } 57 static inline u32 vlv_cck_read(struct drm_i915_private *i915, u32 reg) 58 { 59 return 0; 60 } 61 static inline void vlv_cck_write(struct drm_i915_private *i915, u32 reg, u32 val) 62 { 63 } 64 static inline void vlv_cck_put(struct drm_i915_private *i915) 65 { 66 } 67 static inline void vlv_ccu_get(struct drm_i915_private *i915) 68 { 69 } 70 static inline u32 vlv_ccu_read(struct drm_i915_private *i915, u32 reg) 71 { 72 return 0; 73 } 74 static inline void vlv_ccu_write(struct drm_i915_private *i915, u32 reg, u32 val) 75 { 76 } 77 static inline void vlv_ccu_put(struct drm_i915_private *i915) 78 { 79 } 80 static inline void vlv_dpio_get(struct drm_i915_private *i915) 81 { 82 } 83 static inline u32 vlv_dpio_read(struct drm_i915_private *i915, int pipe, int reg) 84 { 85 return 0; 86 } 87 static inline void vlv_dpio_write(struct drm_i915_private *i915, 88 int pipe, int reg, u32 val) 89 { 90 } 91 static inline void vlv_dpio_put(struct drm_i915_private *i915) 92 { 93 } 94 static inline void vlv_flisdsi_get(struct drm_i915_private *i915) 95 { 96 } 97 static inline u32 vlv_flisdsi_read(struct drm_i915_private *i915, u32 reg) 98 { 99 return 0; 100 } 101 static inline void vlv_flisdsi_write(struct drm_i915_private *i915, u32 reg, u32 val) 102 { 103 } 104 static inline void vlv_flisdsi_put(struct drm_i915_private *i915) 105 { 106 } 107 static inline void vlv_nc_get(struct drm_i915_private *i915) 108 { 109 } 110 static inline u32 vlv_nc_read(struct drm_i915_private *i915, u8 addr) 111 { 112 return 0; 113 } 114 static inline void vlv_nc_put(struct drm_i915_private *i915) 115 { 116 } 117 static inline void vlv_punit_get(struct drm_i915_private *i915) 118 { 119 } 120 static inline u32 vlv_punit_read(struct drm_i915_private *i915, u32 addr) 121 { 122 return 0; 123 } 124 static inline int vlv_punit_write(struct drm_i915_private *i915, u32 addr, u32 val) 125 { 126 return 0; 127 } 128 static inline void vlv_punit_put(struct drm_i915_private *i915) 129 { 130 } 131 132 #endif /* _VLV_SIDEBAND_H_ */ 133