-#define RDINDOOR(adapter) readl((adapter)->base + 0x20)
-#define RDOUTDOOR(adapter) readl((adapter)->base + 0x2C)
-#define WRINDOOR(adapter,value) writel(value, (adapter)->base + 0x20)
-#define WROUTDOOR(adapter,value) writel(value, (adapter)->base + 0x2C)
+#define RDINDOOR(adapter) readl((void*)((adapter)->base + 0x20))
+#define RDOUTDOOR(adapter) readl((void*)((adapter)->base + 0x2C))
+#define WRINDOOR(adapter,value) writel(value, (void *)((adapter)->base + 0x20))
+#define WROUTDOOR(adapter,value) writel(value, (void*)((adapter)->base + 0x2C))