| .. | .. |
|---|
| 26 | 26 | #ifndef __SAVAGE_DRV_H__ |
|---|
| 27 | 27 | #define __SAVAGE_DRV_H__ |
|---|
| 28 | 28 | |
|---|
| 29 | +#include <linux/io.h> |
|---|
| 30 | + |
|---|
| 31 | +#include <drm/drm_ioctl.h> |
|---|
| 29 | 32 | #include <drm/drm_legacy.h> |
|---|
| 33 | +#include <drm/savage_drm.h> |
|---|
| 30 | 34 | |
|---|
| 31 | 35 | #define DRIVER_AUTHOR "Felix Kuehling" |
|---|
| 32 | 36 | |
|---|
| .. | .. |
|---|
| 484 | 488 | /* |
|---|
| 485 | 489 | * access to MMIO |
|---|
| 486 | 490 | */ |
|---|
| 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)) |
|---|
| 489 | 495 | |
|---|
| 490 | 496 | /* |
|---|
| 491 | 497 | * access to the burst command interface (BCI) |
|---|