summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Karrenbauer <karrenbauer@users.sourceforge.net>2003-05-09 13:04:23 +0000
committerAndreas Karrenbauer <karrenbauer@users.sourceforge.net>2003-05-09 13:04:23 +0000
commit11f48d1bfbf4e78f344256f1a551d3910c878256 (patch)
tree9519eb4ef832a6db06a0bd6adb17f69d09668be3
parentaf65bd519557e42551bc92330fde892ed086e745 (diff)
- added defines for AGP/DMA ( Felix Kühling )savage-0-0-1-branch
- added some drm_info output
-rw-r--r--linux-core/savage.h9
-rw-r--r--linux/savage.h9
-rw-r--r--linux/savage_bci.c1
3 files changed, 19 insertions, 0 deletions
diff --git a/linux-core/savage.h b/linux-core/savage.h
index bf167712..c3fe9170 100644
--- a/linux-core/savage.h
+++ b/linux-core/savage.h
@@ -48,4 +48,13 @@
[DRM_IOCTL_NR(DRM_IOCTL_SAVAGE_BCI_INIT)] = { savage_bci_init, 1, 1 }, \
[DRM_IOCTL_NR(DRM_IOCTL_SAVAGE_VERTEX)] = { savage_bci_vertex, 1, 0 }, \
+/* DMA customization.
+ */
+#define __HAVE_DMA 1
+
+/* Buffer customization:
+ */
+#define DRIVER_AGP_BUFFERS_MAP( dev ) \
+ ((drm_savage_private_t *)((dev)->dev_private))->buffers
+
#endif
diff --git a/linux/savage.h b/linux/savage.h
index bf167712..c3fe9170 100644
--- a/linux/savage.h
+++ b/linux/savage.h
@@ -48,4 +48,13 @@
[DRM_IOCTL_NR(DRM_IOCTL_SAVAGE_BCI_INIT)] = { savage_bci_init, 1, 1 }, \
[DRM_IOCTL_NR(DRM_IOCTL_SAVAGE_VERTEX)] = { savage_bci_vertex, 1, 0 }, \
+/* DMA customization.
+ */
+#define __HAVE_DMA 1
+
+/* Buffer customization:
+ */
+#define DRIVER_AGP_BUFFERS_MAP( dev ) \
+ ((drm_savage_private_t *)((dev)->dev_private))->buffers
+
#endif
diff --git a/linux/savage_bci.c b/linux/savage_bci.c
index 349e4a65..89300bd3 100644
--- a/linux/savage_bci.c
+++ b/linux/savage_bci.c
@@ -142,6 +142,7 @@ static int savage_do_init_bci( drm_device_t *dev, drm_savage_init_t *init )
return DRM_ERR(EINVAL);
}
+ DRM_INFO( "looking for dma buffer region ...\n" );
DRM_FIND_MAP( dev_priv->buffers, init->buffers_offset );
if(!dev_priv->buffers) {
DRM_ERROR("could not find dma buffer region!\n");