aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-10 05:27:04 -0400
committerDave Airlie <airlied@linux.ie>2005-07-10 05:27:04 -0400
commit836cf0465c422ee6d654060edd7c620d9cf0c09c (patch)
tree622ed9a2ca774818084ffdcfbf1622ef1735bb74 /drivers/char/drm/drmP.h
parentd01cff408057fa925b2f766fa1fd5a305fd1acbf (diff)
drm: cleanup buffer/map code
This is a patch from DRM CVS that cleans up some code that was in CVS that I never moved to the kernel, this patch produces the result of the cleanups and puts it into the kernel drm. From: Eric Anholt <anholt@freebsd.org>, Jon Smirl, Dave Airlie Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index a7fdcece6129..fb2af9279148 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -908,10 +908,11 @@ extern int drm_addbufs_agp(drm_device_t *dev, drm_buf_desc_t *request);
908extern int drm_addbufs_pci(drm_device_t *dev, drm_buf_desc_t *request); 908extern int drm_addbufs_pci(drm_device_t *dev, drm_buf_desc_t *request);
909extern int drm_addmap(drm_device_t *dev, unsigned int offset, 909extern int drm_addmap(drm_device_t *dev, unsigned int offset,
910 unsigned int size, drm_map_type_t type, 910 unsigned int size, drm_map_type_t type,
911 drm_map_flags_t flags, drm_map_t **map_ptr); 911 drm_map_flags_t flags, drm_local_map_t **map_ptr);
912extern int drm_addmap_ioctl(struct inode *inode, struct file *filp, 912extern int drm_addmap_ioctl(struct inode *inode, struct file *filp,
913 unsigned int cmd, unsigned long arg); 913 unsigned int cmd, unsigned long arg);
914extern int drm_rmmap(drm_device_t *dev, void *handle); 914extern int drm_rmmap(drm_device_t *dev, drm_local_map_t *map);
915extern int drm_rmmap_locked(drm_device_t *dev, drm_local_map_t *map);
915extern int drm_rmmap_ioctl(struct inode *inode, struct file *filp, 916extern int drm_rmmap_ioctl(struct inode *inode, struct file *filp,
916 unsigned int cmd, unsigned long arg); 917 unsigned int cmd, unsigned long arg);
917 918
@@ -926,6 +927,10 @@ extern int drm_freebufs( struct inode *inode, struct file *filp,
926 unsigned int cmd, unsigned long arg ); 927 unsigned int cmd, unsigned long arg );
927extern int drm_mapbufs( struct inode *inode, struct file *filp, 928extern int drm_mapbufs( struct inode *inode, struct file *filp,
928 unsigned int cmd, unsigned long arg ); 929 unsigned int cmd, unsigned long arg );
930extern unsigned long drm_get_resource_start(drm_device_t *dev,
931 unsigned int resource);
932extern unsigned long drm_get_resource_len(drm_device_t *dev,
933 unsigned int resource);
929 934
930 /* DMA support (drm_dma.h) */ 935 /* DMA support (drm_dma.h) */
931extern int drm_dma_setup(drm_device_t *dev); 936extern int drm_dma_setup(drm_device_t *dev);