Page MenuHomeFreeBSD

D43024.diff
No OneTemporary

D43024.diff

Index: sys/compat/linuxkpi/common/include/linux/iosys-map.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/iosys-map.h
+++ sys/compat/linuxkpi/common/include/linux/iosys-map.h
@@ -32,6 +32,17 @@
dbm->vaddr += n;
}
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 51801
+static inline void
+iosys_map_memcpy_to(struct iosys_map *dbm, size_t dbm_offset, const void *src,
+ size_t len)
+{
+ if (dbm->is_iomem)
+ memcpy_toio(dbm->vaddr_iomem + dbm_offset, src, len);
+ else
+ memcpy(dbm->vaddr + dbm_offset, src, len);
+}
+#else
static inline void
iosys_map_memcpy_to(struct iosys_map *dbm, const void *src, size_t len)
{
@@ -40,6 +51,7 @@
else
memcpy(dbm->vaddr, src, len);
}
+#endif
static inline bool
iosys_map_is_null(const struct iosys_map *dbm)

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 9:03 PM (8 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16212748
Default Alt Text
D43024.diff (842 B)

Event Timeline