From c06a237e078d02c4750754caec779aa0389e30c5 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 20 Mar 2024 05:44:19 +0000 Subject: [PATCH] add io_mapping_map_atomic_wc() --- sys/dev/pci/drm/include/linux/io-mapping.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/dev/pci/drm/include/linux/io-mapping.h b/sys/dev/pci/drm/include/linux/io-mapping.h index 87930d29761..414d3d4d768 100644 --- a/sys/dev/pci/drm/include/linux/io-mapping.h +++ b/sys/dev/pci/drm/include/linux/io-mapping.h @@ -33,4 +33,15 @@ io_mapping_unmap_local(void *va) { } +static inline void * +io_mapping_map_atomic_wc(struct io_mapping *map, unsigned long off) +{ + return ((uint8_t *)map->iomem + off); +} + +static inline void +io_mapping_unmap_atomic(void *va) +{ +} + #endif -- 2.20.1