diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-03 08:43:51 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-06-03 16:00:08 +0200 |
commit | c30700db9eaabb35e0b123301df35a6846e6b6b4 (patch) | |
tree | 96e4e6018c0b6e92289aee5093082c6322ab7abf /include/linux/dma-noncoherent.h | |
parent | 67f30ad19c4b329dbe47e1563b2017203bd02e34 (diff) | |
download | linux-stable-c30700db9eaabb35e0b123301df35a6846e6b6b4.tar.gz linux-stable-c30700db9eaabb35e0b123301df35a6846e6b6b4.tar.bz2 linux-stable-c30700db9eaabb35e0b123301df35a6846e6b6b4.zip |
dma-direct: provide generic support for uncached kernel segments
A few architectures support uncached kernel segments. In that case we get
an uncached mapping for a given physica address by using an offset in the
uncached segement. Implement support for this scheme in the generic
dma-direct code instead of duplicating it in arch hooks.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/dma-noncoherent.h')
-rw-r--r-- | include/linux/dma-noncoherent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/dma-noncoherent.h b/include/linux/dma-noncoherent.h index 9741767e400f..7e0126a04e02 100644 --- a/include/linux/dma-noncoherent.h +++ b/include/linux/dma-noncoherent.h @@ -80,4 +80,7 @@ static inline void arch_dma_prep_coherent(struct page *page, size_t size) } #endif /* CONFIG_ARCH_HAS_DMA_PREP_COHERENT */ +void *uncached_kernel_address(void *addr); +void *cached_kernel_address(void *addr); + #endif /* _LINUX_DMA_NONCOHERENT_H */ |