Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108610607
D43024.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
842 B
Referenced Files
None
Subscribers
None
D43024.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43024: linuxkpi: Add destination offset argument to iosys_map_memcpy_to()
Attached
Detach File
Event Timeline
Log In to Comment