intel_sbi.h 492 B

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