Module Name: src
Committed By: riastradh
Date: Wed Jul 24 03:18:05 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/dist/include/drm [riastradh-drm2]: drmP.h
Log Message:
Add drm_io_mapping_create_wc to drmP.h.
Linux's io_mapping_create_wc just takes a bus address and a size, but
we need to pass along extra information, namely the bus space tag,
which we shall pass via a struct drm_device.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.45 -r1.1.1.1.2.46 \
src/sys/external/bsd/drm2/dist/include/drm/drmP.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/dist/include/drm/drmP.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.45 src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.46
--- src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.45 Wed Jul 24 03:15:28 2013
+++ src/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 03:18:05 2013
@@ -2139,5 +2139,20 @@ DRM_WRITE64(struct drm_local_map *map, b
}
#endif /* defined(__NetBSD__) */
+#ifdef __NetBSD__
+
+/* XXX This is pretty kludgerific. */
+
+#include <linux/io-mapping.h>
+
+static inline struct io_mapping *
+drm_io_mapping_create_wc(struct drm_device *dev, resource_size_t addr,
+ unsigned long size)
+{
+ return bus_space_io_mapping_create_wc(dev->bst, addr, size);
+}
+
+#endif /* defined(__NetBSD__) */
+
#endif /* __KERNEL__ */
#endif