]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-i386/dma-mapping.h
libata: add @is_cmd to ata_tf_to_fis()
[linux-2.6-omap-h63xx.git] / include / asm-i386 / dma-mapping.h
index 81999a3ebe7c4c712ac91da21fc963e24c638270..f1d72d177f686f73aafd6b88f6c30fd848e0e792 100644 (file)
@@ -123,6 +123,8 @@ dma_mapping_error(dma_addr_t dma_addr)
        return 0;
 }
 
+extern int forbid_dac;
+
 static inline int
 dma_supported(struct device *dev, u64 mask)
 {
@@ -134,6 +136,10 @@ dma_supported(struct device *dev, u64 mask)
         if(mask < 0x00ffffff)
                 return 0;
 
+       /* Work around chipset bugs */
+       if (forbid_dac > 0 && mask > 0xffffffffULL)
+               return 0;
+
        return 1;
 }
 
@@ -156,10 +162,10 @@ dma_get_cache_alignment(void)
        return (1 << INTERNODE_CACHE_SHIFT);
 }
 
-#define dma_is_consistent(d)   (1)
+#define dma_is_consistent(d, h)        (1)
 
 static inline void
-dma_cache_sync(void *vaddr, size_t size,
+dma_cache_sync(struct device *dev, void *vaddr, size_t size,
               enum dma_data_direction direction)
 {
        flush_write_buffers();