diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-03-20 05:44:20 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-03-20 05:44:20 +0000 |
commit | 68a6822ab1afd9bc48fb75f6d1da96d840b72ed0 (patch) | |
tree | f8ccb0109a659e6bc11c4d5910ee8e48b2ccfdf5 | |
parent | f8113d16a65a9b607ddb7d57575867c80a43ea2c (diff) |
add io_mapping_map_atomic_wc()
-rw-r--r-- | sys/dev/pci/drm/include/linux/io-mapping.h | 11 |
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 |