diff options
| author | Sourojeet A <siri@racha.ca> | 2026-06-04 16:52:44 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2026-06-04 16:56:58 +0000 |
| commit | b551429ad65d73a717c7bfc589cfbe62773a8cb1 (patch) | |
| tree | 9b4012d1125019fc050114e6bf71b543eae0bc35 | |
| parent | fa3f69fa4cabf50d667631b4b8083673bccc874f (diff) | |
linuxkpi: Add dma_unmap_page_attrs
This will be used by amdgpu as of Linux 6.13.
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/dma-mapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h index 5e5d40ef8339..45dfcf350fa2 100644 --- a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h +++ b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h @@ -199,6 +199,13 @@ dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, direction, attrs)); } +static inline void +dma_unmap_page_attrs(struct device *dev, dma_addr_t dma_address, size_t size, + enum dma_data_direction direction, unsigned long attrs) +{ + lkpi_dma_unmap(dev, dma_address, size, direction, attrs); +} + /* linux_dma_(un)map_sg_attrs does not support attrs yet */ #define dma_map_sg_attrs(dev, sgl, nents, dir, attrs) \ linux_dma_map_sg_attrs(dev, sgl, nents, dir, attrs) |
