diff options
-rw-r--r-- | linux-core/savage.h | 9 | ||||
-rw-r--r-- | linux/savage.h | 9 | ||||
-rw-r--r-- | linux/savage_bci.c | 1 |
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"); |