X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fdma-mapping.h;fp=include%2Fasm-i386%2Fdma-mapping.h;h=410430ccb9e01ec6a96f51c22bce7fdc758b3c36;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=70f62048f04adc7d9643656d3093a0863a9d59da;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9;p=linux-2.6.git diff --git a/include/asm-i386/dma-mapping.h b/include/asm-i386/dma-mapping.h index 70f62048f..410430ccb 100644 --- a/include/asm-i386/dma-mapping.h +++ b/include/asm-i386/dma-mapping.h @@ -2,6 +2,8 @@ #define _ASM_I386_DMA_MAPPING_H #include +#include +#include #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) @@ -51,7 +53,7 @@ dma_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction) { BUG_ON(direction == DMA_NONE); - return (dma_addr_t)(page_to_pfn(page)) * PAGE_SIZE + offset; + return page_to_phys(page) + offset; } static inline void