add io_mapping_map_atomic_wc()
authorjsg <jsg@openbsd.org>
Wed, 20 Mar 2024 05:44:19 +0000 (05:44 +0000)
committerjsg <jsg@openbsd.org>
Wed, 20 Mar 2024 05:44:19 +0000 (05:44 +0000)
sys/dev/pci/drm/include/linux/io-mapping.h

index 87930d2..414d3d4 100644 (file)
@@ -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