X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=ath%2Fif_ath_ahb.h;fp=ath%2Fif_ath_ahb.h;h=d32abe238a78b5726ced066d6adcca2925786c93;hb=10560f6b2a709090a4389af33c98cc8abbbe03bf;hp=a6f8b4d246695b2b9feca4d148ade7e3207310ea;hpb=0de09d5a5ae6260e8cfb477173f5bc045d3d99e3;p=madwifi%2F.git diff --git a/ath/if_ath_ahb.h b/ath/if_ath_ahb.h index a6f8b4d..d32abe2 100644 --- a/ath/if_ath_ahb.h +++ b/ath/if_ath_ahb.h @@ -102,6 +102,15 @@ #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) +#define KSEG1ADDR(addr) (addr) +#define dma_cache_wback_inv(start,size) \ + do { (void) (start); (void) (size); } while (0) +#endif + /* set bus cachesize in 4B word units */ static __inline void bus_dma_sync_single(void *hwdev, dma_addr_t dma_handle, size_t size, int direction) @@ -135,11 +144,4 @@ void bus_free_consistent(void *, size_t, void *, dma_addr_t); #define sysRegRead(phys) (*(volatile u_int32_t *)phys) -/* Allow compiling on non-mips platforms for code verification */ -#ifndef __mips__ -#define CAC_ADDR(addr) (addr) -#define UNCAC_ADDR(addr) (addr) -#define KSEG1ADDR(addr) (addr) -#endif - #endif /* _DEV_ATH_AHB_H_ */