forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/i915/i915_pvinfo.h
....@@ -24,6 +24,8 @@
2424 #ifndef _I915_PVINFO_H_
2525 #define _I915_PVINFO_H_
2626
27
+#include <linux/types.h>
28
+
2729 /* The MMIO offset of the shared info between guest and host emulator */
2830 #define VGT_PVINFO_PAGE 0x78000
2931 #define VGT_PVINFO_SIZE 0x1000
....@@ -52,7 +54,7 @@
5254 /*
5355 * VGT capabilities type
5456 */
55
-#define VGT_CAPS_FULL_48BIT_PPGTT BIT(2)
57
+#define VGT_CAPS_FULL_PPGTT BIT(2)
5658 #define VGT_CAPS_HWSP_EMULATION BIT(3)
5759 #define VGT_CAPS_HUGE_GTT BIT(4)
5860
....@@ -110,8 +112,9 @@
110112 u32 rsv7[0x200 - 24]; /* pad to one page */
111113 } __packed;
112114
113
-#define vgtif_reg(x) \
114
- _MMIO((VGT_PVINFO_PAGE + offsetof(struct vgt_if, x)))
115
+#define vgtif_offset(x) (offsetof(struct vgt_if, x))
116
+
117
+#define vgtif_reg(x) _MMIO(VGT_PVINFO_PAGE + vgtif_offset(x))
115118
116119 /* vGPU display status to be used by the host side */
117120 #define VGT_DRV_DISPLAY_NOT_READY 0