forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/savage/savage_drv.h
....@@ -26,7 +26,11 @@
2626 #ifndef __SAVAGE_DRV_H__
2727 #define __SAVAGE_DRV_H__
2828
29
+#include <linux/io.h>
30
+
31
+#include <drm/drm_ioctl.h>
2932 #include <drm/drm_legacy.h>
33
+#include <drm/savage_drm.h>
3034
3135 #define DRIVER_AUTHOR "Felix Kuehling"
3236
....@@ -484,8 +488,10 @@
484488 /*
485489 * access to MMIO
486490 */
487
-#define SAVAGE_READ(reg) DRM_READ32( dev_priv->mmio, (reg) )
488
-#define SAVAGE_WRITE(reg) DRM_WRITE32( dev_priv->mmio, (reg) )
491
+#define SAVAGE_READ(reg) \
492
+ readl(((void __iomem *)dev_priv->mmio->handle) + (reg))
493
+#define SAVAGE_WRITE(reg) \
494
+ writel(val, ((void __iomem *)dev_priv->mmio->handle) + (reg))
489495
490496 /*
491497 * access to the burst command interface (BCI)