summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-03-20 05:44:20 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-03-20 05:44:20 +0000
commit68a6822ab1afd9bc48fb75f6d1da96d840b72ed0 (patch)
treef8ccb0109a659e6bc11c4d5910ee8e48b2ccfdf5
parentf8113d16a65a9b607ddb7d57575867c80a43ea2c (diff)
add io_mapping_map_atomic_wc()
-rw-r--r--sys/dev/pci/drm/include/linux/io-mapping.h11
1 files changed, 11 insertions, 0 deletions
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