Module Name: src
Committed By: riastradh
Date: Wed Jul 24 02:39:57 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/dist/include/drm [riastradh-drm2]: drmP.h
Log Message:
Add fields to struct drm_sg_mem for NetBSD bus_dma.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.34 -r1.1.1.1.2.35 \
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.34 src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.35
--- src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.34 Wed Jul 24 02:39:42 2013
+++ src/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 02:39:57 2013
@@ -618,9 +618,18 @@ struct drm_agp_head {
struct drm_sg_mem {
unsigned long handle;
void *virtual;
+#ifdef __NetBSD__
+ size_t sg_size;
+ bus_dma_tag_t sg_tag;
+ bus_dmamap_t sg_map;
+ unsigned int sg_nsegs;
+ unsigned int sg_nsegs_max;
+ bus_dma_segment_t sg_segs[];
+#else
int pages;
struct page **pagelist;
dma_addr_t *busaddr;
+#endif
};
struct drm_sigdata {