summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sis/sis_drv.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2019-06-05 15:55:39 +0200
committerSam Ravnborg <sam@ravnborg.org>2019-06-05 20:29:57 +0200
commit1b36d506fc82c7615852eca149c6a533a5260a00 (patch)
treeaaff911df44d178b888d04fc5c8e5aeffc430f96 /drivers/gpu/drm/sis/sis_drv.h
parent4b013bb2d3a4a3104360746d2326d1408d179e72 (diff)
downloadlinux-1b36d506fc82c7615852eca149c6a533a5260a00.tar.bz2
drm/sis: drop drmP.h use
Drop use of the deprecated drmP.h header. Repalced with relevant header files and sorted header files in all files touched. Replaced DRM_{READ,WRITE} to avoid the drm_os_linux header. Build tested with allyesconfig, allmodconfig on various architectures. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Vetter <daniel@ffwll.ch> Cc: David Airlie <airlied@linux.ie> Link: https://patchwork.freedesktop.org/patch/msgid/20190605135539.12940-2-sam@ravnborg.org
Diffstat (limited to 'drivers/gpu/drm/sis/sis_drv.h')
-rw-r--r--drivers/gpu/drm/sis/sis_drv.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/sis/sis_drv.h b/drivers/gpu/drm/sis/sis_drv.h
index 328f8a750976..81339443b3b1 100644
--- a/drivers/gpu/drm/sis/sis_drv.h
+++ b/drivers/gpu/drm/sis/sis_drv.h
@@ -28,7 +28,9 @@
#ifndef _SIS_DRV_H_
#define _SIS_DRV_H_
+#include <drm/drm_ioctl.h>
#include <drm/drm_legacy.h>
+#include <drm/drm_mm.h>
/* General customization:
*/
@@ -46,12 +48,8 @@ enum sis_family {
SIS_CHIP_315 = 1,
};
-#include <drm/drm_mm.h>
-
-
-#define SIS_BASE (dev_priv->mmio)
-#define SIS_READ(reg) DRM_READ32(SIS_BASE, reg)
-#define SIS_WRITE(reg, val) DRM_WRITE32(SIS_BASE, reg, val)
+#define SIS_READ(reg) readl(((void __iomem *)dev_priv->mmio->handle) + (reg))
+#define SIS_WRITE(reg, val) writel(val, ((void __iomem *)dev_priv->mmio->handle) + (reg))
typedef struct drm_sis_private {
drm_local_map_t *mmio;