xref: /linux/drivers/gpu/drm/i915/intel_sbi.h (revision a4eb44a6435d6d8f9e642407a4a06f65eb90ca04)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2013-2021 Intel Corporation
4  */
5 
6 #ifndef _INTEL_SBI_H_
7 #define _INTEL_SBI_H_
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 
13 enum intel_sbi_destination {
14 	SBI_ICLK,
15 	SBI_MPHY,
16 };
17 
18 u32 intel_sbi_read(struct drm_i915_private *i915, u16 reg,
19 		   enum intel_sbi_destination destination);
20 void intel_sbi_write(struct drm_i915_private *i915, u16 reg, u32 value,
21 		     enum intel_sbi_destination destination);
22 
23 #endif /* _INTEL_SBI_H_ */
24