Remove unneeded PCI compatibility code
[madwifi/.git] / ath / if_ath_ahb.h
index 44a156f7018906e8980c84e362191a2e325997f3..5d11939c027d8649edc860724264c8e1ccd68c64 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <asm/io.h>
 #include <asm/uaccess.h>
+#include <linux/dma-mapping.h>
 
 #define AR531X_WLAN0_NUM       0
 #define AR531X_WLAN1_NUM       1
 #define AR531X_BD_MAGIC 0x35333131   /* "5311", for all 531x platforms */
 
 /* Allow compiling on non-mips platforms for code verification */
-#ifndef __mips__
-#define CAC_ADDR(addr) (addr)
-#define UNCAC_ADDR(addr) (addr)
+#ifndef KSEG1ADDR
 #define KSEG1ADDR(addr) (addr)
-#define dma_cache_wback_inv(start,size)        \
-       do { (void) (start); (void) (size); } while (0)
 #endif
 
-#define bus_dma_sync_single    dma_sync_single
+#define bus_dma_sync_single    dma_sync_single_for_cpu
 #define bus_map_single         dma_map_single
 #define bus_unmap_single       dma_unmap_single
 #define bus_alloc_consistent(_hwdev, _sz, _hdma)               \