From: jsg Date: Wed, 20 Mar 2024 05:44:19 +0000 (+0000) Subject: add io_mapping_map_atomic_wc() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c06a237e078d02c4750754caec779aa0389e30c5;p=openbsd add io_mapping_map_atomic_wc() --- 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